From nobody Mon Nov 29 07:05:12 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 3FD6518B2C3C for ; Mon, 29 Nov 2021 07:05:19 +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 4J2bvy6sTPz54jZ for ; Mon, 29 Nov 2021 07:05:18 +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=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=kw+WYW8oSJH/nJlEjKp82M6V+HxThuGZ2IM7U8j2IpA=; b=a7RG3JR2woX6bMw25bdUwj370HAjI1TrbxGXua0kxhpl6Tl5a1VAyUZqB/XR0p2HbBBoG1/Hd/iiKwalL84Ufgp53WfhtF/kxBrpsVbn7iBpUSZzKn7GIXwLsfq+Mb1uW77K1zqPTfbiAI+MIp+wyMvOSbXn8fZQ6CRwyfcEQghr0IZJJAZ87T1qmaXvfzpzHR+Am0uwTub+8OXHL9fP0A0O2a60eVTo+Bv/z9Hons5TGebTBa74T2P/6Tyyr4O2SqksOioT5YqpsJaYPdUlaTUAl/2ZHF9JtpDAiwj0zw/J53lx5kopKU8Yf6Qe1scTrJiDA2OQc+s3u+8NnWMg2w==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1mraiv-000CA6-2I; Mon, 29 Nov 2021 09:05:13 +0200 From: Daniel Braniss Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_809D77B7-F639-42C2-988E-9A4197914A37" 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? Date: Mon, 29 Nov 2021 09:05:12 +0200 In-Reply-To: <20F9C20E-BB89-4FC1-A339-171447368AD2@dons.net.au> Cc: freebsd- To: Daniel O'Connor References: <11EBCD70-3259-4E4D-8B9C-9F25364BC73C@cs.huji.ac.il> <20F9C20E-BB89-4FC1-A339-171447368AD2@dons.net.au> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4J2bvy6sTPz54jZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_809D77B7-F639-42C2-988E-9A4197914A37 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 29 Nov 2021, at 02:36, Daniel O'Connor wrote: >=20 >=20 >=20 >> On 29 Nov 2021, at 03:39, Daniel Braniss wrote: >>=20 >> hi, >> this usb device (actually the micro usb on a esp32c3) is reported by = FreeBSD 12.1 as: >> ugen0.10: at usbus0, cfg=3D0 = md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (134mA) >>=20 >> and dimes shows: >>=20 >> Nov 28 19:02:19 pampa kernel: ugen0.10: at usbus0 >> Nov 28 19:02:19 pampa kernel: umodem0 on uhub3 >> Nov 28 19:02:19 pampa kernel: umodem0: on usbus0 >> Nov 28 19:02:19 pampa kernel: umodem0: data interface 1, has no CM = over data, has no break >>=20 >> it=E2=80=99s the last line that I think is causing failure to flash = the device (probably needs the break to set the speed?) >=20 > Why would it need break to set the speed? don=E2=80=99t know, but I=E2=80=99ve seen in the past serial stuff that = needed the break to synchronize. >=20 >> any ways, is there some fix for this? >=20 > You didn't actually post the problem you are having so it's impossible = to say :) > I assume esptool fails but it would be helpful if you posted the = output. the flashing keeps failing with: Chip is ESP32-C3 (revision 3) Features: Wi-Fi Crystal is 40MHz MAC: 7c:df:a1:a3:61:74 Uploading stub... A fatal error occurred: Failed to write to target RAM (result was = 01070000) >=20 > I haven't used an ESP32-C3 but all of the other ESP's don't have USB = built in so it depends what USB UART you have on your board - any idea = which one it it? all the other esp32 I have work fine, it=E2=80=99s this esp32c3 that = fails. anyways, i got hold of a ttl to usb from m5stack, and after some = fiddling got it to flash! this chip is CP2104, so the problem seems to be in the driver for the unknown chip on this = esp32c3 - no indication in the diagrams, nor can I read the micro words on the chip = :-( thanks, danny >=20 > -- > Daniel O'Connor > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum --Apple-Mail=_809D77B7-F639-42C2-988E-9A4197914A37--