From nobody Mon Nov 29 08:42:54 2021 X-Original-To: hackers@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 0C0AA18BF376 for ; Mon, 29 Nov 2021 08:42:58 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2f4d5dBGz3sVK for ; Mon, 29 Nov 2021 08:42:57 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=UkDKsgYjQwlHFFEScuRWUqG0Um9vCwLqu0XO0dR1CZU=; b=eEZsdJnaY18c1OcFHv0gnKN9q/1qL/XO3ue2KtShAQwlrIBqh4fUS1WfWEO8wdMe0rK0C78skEzpQBtQVv7zOc76zb3uz8II3JXTtLIbI+kxa+MO4x7PVCEwKKyQe8KflEfoh/sic+HxFuf6krYSfdpgOcCnqsQXBXclONRjQRCJP4Gf2Cl2FmP2VNJpXQLOs8uP7DcYWf+1Sc7RityM8pGAwvsH178cZxiOgSwHsM4kaoiloYomO810O8vpb99QQpHawRfqHH8pcrgBZn6lTsYcKuqn2XnywguBAT90sJ1LOSOXeRdr/p9ZwtNWoq4UMFxMppedersfH2B8ckplBA==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1mrcFS-000Gne-SG; Mon, 29 Nov 2021 10:42:54 +0200 Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: usb serial - need quirk? From: Daniel Braniss In-Reply-To: Date: Mon, 29 Nov 2021 10:42:54 +0200 Cc: freebsd- Content-Transfer-Encoding: quoted-printable Message-Id: References: <11EBCD70-3259-4E4D-8B9C-9F25364BC73C@cs.huji.ac.il> <20F9C20E-BB89-4FC1-A339-171447368AD2@dons.net.au> To: Daniel O'Connor X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4J2f4d5dBGz3sVK X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 29 Nov 2021, at 10:16, Daniel O'Connor wrote: >=20 >=20 >=20 >> On 29 Nov 2021, at 18:09, Daniel Braniss wrote: >>=20 >>> On 29 Nov 2021, at 09:24, Daniel O'Connor = wrote: >>>=20 >>> I had a look at the ESP32-C3 datasheet and it *does* have a USB = interface built in and it talks about a CDC-ACM virtual serial port = which matches what you see. >>>=20 >>> The only ACM quirk I can see is UQ_ASSUME_CM_OVER_DATA so you could = try that I suppose.. >>=20 >>=20 >>> (See the usb_quirk man page) >>>=20 >> i=E2=80=99ll try this ASAP, thanks >>=20 >> BTW, looking at the m5 stamp c3 diagram, I can=E2=80=99t see how the = usb-typec is connected to the esp32c3 >> from the esp32c3 docs, it=E2=80=99s gpio9 that needs to be grounded = to flash, and I don=E2=80=99t see that happening when >> using the onboard usb. >> oh well, >=20 > The schematic at = https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/i= mg/product_pics/core/stamp_c3/stamp_c3_sch_01.webp it has a CH9102F and = some googling suggests it presents as a CDC ACM device. >=20 > It looks like it has RTS and DTR hooked up so they can reset and drive = GPIO9 for programming. >=20 > Unfortunately I can't see anything obvious about why it doesn't work = :( well, I tried adding the quirk but no change, so using a different = ttl2usb works - though needs manual=20 intervention to ground pin 9 - im ok, I need to flash via serial only = once, since after that I can use OTA (unless I screwup and it panics :-) BTW: who ever is interested in the esp-idf the master version now = installs and works almost out of the box on FreeBSD 13.0 thanks, danny >=20 > -- > Daniel O'Connor > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum >=20