Programming WROOM using Jtag

Seungwhan
Posts: 19
Joined: Mon Jul 29, 2019 11:23 pm

Programming WROOM using Jtag

Postby Seungwhan » Thu Sep 26, 2019 1:11 am

Hi,

We are exploring programming the device(with WROOM module on it) using Jtag.

And this is what we are seeing.
The flash has to be first erased by doing "esptool.py erase_flash".
And then we can program the device using Jtag.
If we try to program brand new WROOM module using Jtag, it will fail with
------
Info : J-Link V10 compiled Jan 7 2019 14:00:10
Info : Hardware version: 10.10
Info : VTarget = 3.333 V
Info : clock speed 14000 kHz
Error: JTAG scan chain interrogation failed: all ones
------

So the WROOM module comes with default app programmed.
Is there a possibility that the default app interferes Jtag operation?
If so is there a way to work around?
We'd only want to use Jtag as a programming tool.

Can you also please confirm that
if we use ESP32 chip and SPI flash,instead of using WROOM module,
will we be able to program the SPI flash using Jtag from the beginning?

Thank you.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Programming WROOM using Jtag

Postby ESP_igrr » Thu Sep 26, 2019 2:37 pm

WROOM modules come with AT command application loaded, and that application configures GPIOs 12-15 as SPI slave interface, which makes it impossible to use JTAG.

If you are placing an order directly with Espressif, you may ask to get the modules programmed in a different way, i think.

Halfnium
Posts: 11
Joined: Thu Jul 02, 2020 10:38 pm

Re: Programming WROOM using Jtag

Postby Halfnium » Wed Aug 12, 2020 4:24 am

Does this mean that JTAG debugging also is not possible unless / until the AT application has been removed via "esptool.py erase_flash?"

Secondly, how would one restore the AT application in future, should that be desired?

Who is online

Users browsing this forum: No registered users and 462 guests