Search found 13 matches

by Martin1454
Mon Dec 12, 2022 12:50 pm
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset? - Flash error

Success! – We found out what line in our code caused the issue. In an old prototype before I worked on the project, the team used a second serial port for some debugging. This ‘serial 2 begin’ line of code tried to use U2TXD and U2RXD which is IO16 & IO17. IO16 and IO17 is used in the ESP32 PICO D4 ...
by Martin1454
Thu Dec 08, 2022 1:54 pm
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset? - Flash error

Tested using JTAG from ESP-PROG to flash a "bricked PCB - No sucess.... Error: timed out while waiting for target halted Error: xtensa_wait_algorithm: not halted 0, pc 0x40090084, ps 0x60025 Error: Failed to wait algorithm (-302)! Error: Algorithm run failed (-302)! Error: Too many flash mappings 10...
by Martin1454
Mon Dec 05, 2022 8:55 am
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset? - Flash error

To make sure it was not an HW issue, I bought an ESP32 PICO kit V4. Flashing the same firmware triggers an similar result - but not completely the same. After uploading the problematic firmware to the PICO kit, then the first few messages after soft reset is: rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SP...
by Martin1454
Thu Dec 01, 2022 2:53 pm
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset? - Flash error

I tried to use the ESPtool to read flash status and get "flash status: 0x2000", But writing to the flash using the tool I get 0xFFFF. I also tried the ESP download tool without success. I tried adding pull up to TX / RX, and have tried to add extra pull down on MTDI. I'm gonna try to hook up an scop...
by Martin1454
Thu Dec 01, 2022 10:20 am
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset? - Flash error

All logs are suggesting its something with UART (not stable connection, during flashing) or IO12 is not grounded properly, but i may missing something. Are there any pullup on TX/RX, which may help? No pullup - I just tried to add one, but no change. And that would not explain why I was able to fla...
by Martin1454
Wed Nov 30, 2022 3:00 pm
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset? - Flash error

Are you sure that those pins got soldered down correctly, as in, aren't shorted under the QFN package or something? If you happen yo have multiple PCBs, you could try putting together another one to see if it also has the issue. So far we have have testet 4 PCBs where we can flash a small hello wor...
by Martin1454
Wed Nov 30, 2022 8:54 am
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset?

That is very likely to be hardware related: it means that the SoC cannot communicate with the (internal) flash. The Pico D4 has a few pads that are also connected to the internal flash and as such marked 'do not use' in the datasheet - IO16, IO17, CMD, CLK, SD0 and SD1 to be specific. You don't hap...
by Martin1454
Wed Nov 30, 2022 7:17 am
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset?

https://docs.espressif.com/projects/esptool/en/latest/esp32/advanced-topics/boot-mode-selection.html#later-boot-messages Bootloader is flashed along with the firmware, when you press flash. You should also try configuration for pico: https://docs.platformio.org/en/latest/boards/espressif32/pico32.h...
by Martin1454
Mon Nov 28, 2022 3:38 pm
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

Re: ESP32 PICO D4 - Bootloader reset?

chegewara wrote:
Mon Nov 28, 2022 2:30 pm
It looks like the flash is erased and nothing is flashed on it (no bootloader).
What is the recomended way to flash a new bootloader? It looks like there is a few ways to do it
by Martin1454
Mon Nov 28, 2022 12:54 pm
Forum: Hardware
Topic: ESP32 PICO D4 - Bootloader reset? - Flash error
Replies: 17
Views: 9517

ESP32 PICO D4 - Bootloader reset? - Flash error

Hello everyone, and thank you for taking a look at my post. I'm in a situation where I'm using a custom PCB with an ESP32 PICO D4 on in. The code that have been written for it was made for the ESP32 WROOM module, and after a few paramter changes to fit the PICO D4, I flashed the firmware, and now I ...