Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 2021 09:39:52 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Daniel O'Connor <darius@dons.net.au>
Cc:        freebsd- <hackers@freebsd.org>
Subject:   Re: usb serial - need quirk?
Message-ID:  <B8593124-0D96-46A2-90E7-87B2F9CC6ADF@cs.huji.ac.il>
In-Reply-To: <A90E6140-3C80-4512-A337-C4827AEC8128@dons.net.au>
References:  <11EBCD70-3259-4E4D-8B9C-9F25364BC73C@cs.huji.ac.il> <20F9C20E-BB89-4FC1-A339-171447368AD2@dons.net.au> <D7FBBD72-5655-4F68-A539-7F2012A7D09A@cs.huji.ac.il> <A90E6140-3C80-4512-A337-C4827AEC8128@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 29 Nov 2021, at 09:24, Daniel O'Connor <darius@dons.net.au> wrote:
>=20
>=20
>=20
>> On 29 Nov 2021, at 17:35, Daniel Braniss <danny@cs.huji.ac.il> wrote:
>>>> 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...
>>=20
>> 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 :-(
>=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..


> (See the usb_quirk man page)
>=20
i=E2=80=99ll try this ASAP, thanks

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,
thanks again,
	danny

> --
> Daniel O'Connor
> "The nice thing about standards is that there
> are so many of them to choose from."
> -- Andrew Tanenbaum
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8593124-0D96-46A2-90E7-87B2F9CC6ADF>