Pico-D4 automatic boot sequence not responding

GatCode
Posts: 4
Joined: Mon Dec 30, 2019 7:58 pm

Pico-D4 automatic boot sequence not responding

Postby GatCode » Mon Dec 30, 2019 8:16 pm

Hello,
I am currently developing a custom PCB for a hobby project and for that I used a Pico-D4 chip and a CP2104 serial chip. As you can see in the schematic, I used a common two-transistor auto boot sequence "selector" circuit for programming.

The problem is that I always get a "timed out waiting for packet header" error when I try to program it. I first thought that I have a faulty solder connection but after double checking, I concluded that everything is ok and I attempted to hook up my logic analyzer. As you can see in the data capture screenshot, in general I receive a low on IO0, followed by a low at RESET and then IO0 -> high and then RESET -> high.

If I trigger this sequence by hand via two jumper wires, I can program the chip but the automatic programming does not work.
Also the captured data looks really odd. You can download the whole saleae data file here: https://www4.zippyshare.com/v/o5px217q/file.html

Has someone an idea what the problem could be?

Thank you all in advance!!!
Attachments
schematic.jpg
schematic.jpg (225.08 KiB) Viewed 6552 times
capture2.jpg
capture2.jpg (53.72 KiB) Viewed 6552 times
capture1.jpg
capture1.jpg (41.1 KiB) Viewed 6552 times

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Pico-D4 automatic boot sequence not responding

Postby ESP_Angus » Tue Dec 31, 2019 6:06 am

Hi GatCode,

Can you please try running "esptool.py --trace ...", or alternatively attach the UART TX pin to your logic analyzer? This will show what the chip is outputting after attempting to reset into bootloader mode.

Angus

GatCode
Posts: 4
Joined: Mon Dec 30, 2019 7:58 pm

Re: Pico-D4 automatic boot sequence not responding

Postby GatCode » Sun Jan 19, 2020 7:07 pm

Hi Angus,
thank you very much for your help!
I just tried both approaches and here are the two capture files:
https://www49.zippyshare.com/v/x9n46WcT/file.html (capture from upload with esptool)
https://www49.zippyshare.com/v/1m4UNLVd/file.html (capture from upload with Arduino IDE)

also I attached the log of the esptool command you suggested.
In the logic captures, it looks like that there is no signal present on the TX line, despite correct wiring and soldering, I also took a capture on the CH2104 pin directly.
Attachments
Bildschirmfoto 2020-01-09 um 08.58.36.jpg
Bildschirmfoto 2020-01-09 um 08.58.36.jpg (23.26 KiB) Viewed 6408 times
log.txt
(33.44 KiB) Downloaded 400 times

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Pico-D4 automatic boot sequence not responding

Postby ESP_Angus » Sun Jan 19, 2020 11:55 pm

Hi GatCode,

No output at all from the chip is weird. Any time the EN pin on the PICO-D4 goes from low to high there should be some serial output of some kind, even if it doesn't boot into the right mode.

The first trace you posted shows a weird oscillation on the rising edge of RES. Is it possible the pullup resistor R5 has a soldering issue or is pulling to the wrong power rail? If you look at this signal on an oscilloscope, what do you see?


Angus

GatCode
Posts: 4
Joined: Mon Dec 30, 2019 7:58 pm

Re: Pico-D4 automatic boot sequence not responding

Postby GatCode » Thu Feb 13, 2020 5:34 am

Hi Angus,

thank you for your answer, I just switched out the R5 and rechecked all pins on the ESP32 since I have no access to an oscilloscope.

As you told, I am getting a response from the ESP32 but nevertheless, still the same problem at upload.

In the image below you can see what I mean (all measurements are taken directly on the ESP32 pins - hence the names)
Also here is the capture file: https://www10.zippyshare.com/v/3NtbkbaY/file.html

Is it normal that the chip answers so little?

Thank you very much!
Attachments
sample.jpg
sample.jpg (62.87 KiB) Viewed 6049 times

GatCode
Posts: 4
Joined: Mon Dec 30, 2019 7:58 pm

Re: Pico-D4 automatic boot sequence not responding

Postby GatCode » Thu Feb 27, 2020 2:06 pm

In the meantime I tried all possible combinations of different auto boot circuits but always the same result. Can someone help me out?

Who is online

Users browsing this forum: No registered users and 50 guests