Flashing with jtag on ESP32_WROOM module for the first time resets indefinitely
Posted: Tue Mar 07, 2023 4:16 pm
Hello everyone,
I have made a custom board that uses the esp32-wroom-32ue module. The way I flash this guys is by using the JTAG connections, a jlink and the openocd script:
openocd -f interface/jlink.cfg -f board/esp-wroom-32.cfg -c "program_esp build/myCode.bin 0x50000"
This works on devices that have been previously flashed via UART. Nevertheless devices that are "out of the box" and have never been flashed display a weird behaviour when flashing via JTAG. Once the devices are flashed, the program will not run. After plugging UART to the device and opening up the terminal, the following message is displayed multiple times per second.
The only way to make the device actually work is by flashing it first via UART, and then jtag becomes usable again. Why is this? I would like to use the jtag connections only right out of the box.
I have made a custom board that uses the esp32-wroom-32ue module. The way I flash this guys is by using the JTAG connections, a jlink and the openocd script:
openocd -f interface/jlink.cfg -f board/esp-wroom-32.cfg -c "program_esp build/myCode.bin 0x50000"
This works on devices that have been previously flashed via UART. Nevertheless devices that are "out of the box" and have never been flashed display a weird behaviour when flashing via JTAG. Once the devices are flashed, the program will not run. After plugging UART to the device and opening up the terminal, the following message is displayed multiple times per second.
- rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
- configsip: 0, SPIWP:0xee
- clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
- mode:DIO, clock div:2
- load:0x3fffeba4,len:4
- load:0x4009f000,len:3248
- entry 0x4009f574
- �OHAI�ets Jul 29 2019 12:21:46
The only way to make the device actually work is by flashing it first via UART, and then jtag becomes usable again. Why is this? I would like to use the jtag connections only right out of the box.