From nobody Tue Jan 14 22:37:28 2025 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YXkXS21Lwz5kWfb for ; Tue, 14 Jan 2025 22:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YXkXS1C9hz3LjR for ; Tue, 14 Jan 2025 22:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736894248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0yIbzF52bM5WKu4rBxX88pSqR2n60lmvzIR8iBxj4YQ=; b=rbO0Z5pTMKg1C4yROJBdOIxNsjHmVSRRWYjdRUY0FoNeeLOyiBJmPCoLgtB37xJ1o4ewUn 1qy+rOiX0QycmfML49cf3J3oDlepu/RdPThgODVYAir84deqn+uZw7v0b7X2HYP8YNc0hN h5LUOfs8cywYHaBDyFJL6eOPNkW1q2nkYk1mKx7OoFOz/aruFjkpvZmaa1pohXEOxsMblb FPg/CIZOIvThHDGdCZvPfRye6HeQCYqWjrY0u256/w3/hrXtGNrmsMn/iaOpCJLQ+AvKJy rflJEYS8Vj06RziKQVyGbKYjd/LxqjzhGALvOHV2SViyJaoL7gJ7ddhXceJUuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736894248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0yIbzF52bM5WKu4rBxX88pSqR2n60lmvzIR8iBxj4YQ=; b=JkDtyH2XU1YeTgGrFiHa5bC7fcvzWYaZMviOgS6ZPvQ3XvOuXEDbkujjeohi52YZtH0wXO FbdJioQ8homhSpAe6C/D4VTPwkyU3RP2HAlzR7FQMmNoLJUzzeA9RsQ+4BZRwxDD/kYyv0 w6h/bLEUH1Xl/tnxrmyGYLxTsUjaLVb7DcGHkL76vmgyMqmSN9/48ovpHXd7Mtv30vzKIi JhPvzTF4XXdehFBR+7H4IPa+BO3nSWlh3DtqRW+jwxpMOTHTQb4I0RlD4o2lNiJu/7JbxD daATrHEiQDx8R6yt0d+warDGULfXNdZy2KVwFL1wiGfxKO55Uc2mpCcgPjqnNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736894248; a=rsa-sha256; cv=none; b=A0Wjjd/HQt862acOZJoiYPD/xQhKH3Q42hBjUijB8SNCGpfwBLxfLRPb9Waol31xSGOOcb YMGllgyJNWOS5UhT8RH8Nz+E4ZkRc/WaQ4C50JkxR8SPTuYjdpSXXONgsfpicKDdq/4+XR TE+MlPUJL2zoYfOCtIzL7Xb5YWuuGVGL5Y7emB33XHAbKv+5RcIq+O6w2pDg+rWelanzRo vM4n21cZmv6U/oVfttQ3/e2Uxu32JMCjPGkPnsZZo9afDopjF8sMTl6g7RmAS+Y7+8FtIj vyns7r1V3jUoP4wiezrg30hR9Nf4rZr5mVIHBpGhyNJy5ShTFaPxmuOKVR5kHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YXkXS0cqjz4qs for ; Tue, 14 Jan 2025 22:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50EMbRwU021848 for ; Tue, 14 Jan 2025 22:37:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50EMbRGS021847 for usb@FreeBSD.org; Tue, 14 Jan 2025 22:37:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 284042] FTDI: UART breaks JTAG Date: Tue, 14 Jan 2025 22:37:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tomek@cedro.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-usb@freebsd.org Sender: owner-freebsd-usb@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284042 --- Comment #7 from Tomasz "CeDeROM" CEDRO --- Very cool that modern uftdi can disable JATG port not to be grabbed by ucom= it was not there back then. From my initial report it seems it was working as = ucom then jtag then ucom then jtag.. so probably a bug in uftdi / ucom :-( Accor= ding to FT2232H datasheet it is possible to configure two channels independently= so one works as UART and the other one works as MPSSE in theory they should not disturb each other. https://ftdichip.com/wp-content/uploads/2024/09/DS_FT2232H.pdf Regarding USB-Serial-JTAG the ESP32-C3 and ESP-C6 (RISC-V CPU) indeed has s= ome minimalistic implementation. But if you look at ESP32-S3 TRM Chapter 33 Page 1247: > The CPU JTAG signals can be routed to the USB Serial/JTAG Controller or e= xternal GPIO pads using eFuses > and when the user program has started, software control as well. At that = time, the JTAG signals from the USB > Serial/JTAG can also be routed to the GPIO matrix. This allows debugging = a secondary SoC via JTAG using the > ESP32-S3 USB Serial/JTAG Controller. It would not be RISC-V CPU but the probe can be built that way utilizing ES= P's JTAG Command Processor. What is more both channels use CDC-ACM so it should= be also possible to expose this simple serial transport over BLE or WIFI. Wish= I had time to play around with it. Unfortunately I could not find anyone interested in funding this kind of research. Maybe you can make it happen := -) https://www.espressif.com/sites/default/files/documentation/esp32-s3_techni= cal_reference_manual_en.pdf --=20 You are receiving this mail because: You are the assignee for the bug.=