-->
Page 3 of 4

Re: JTAG Debugging

PostPosted: Sun May 22, 2016 10:04 am
by martinayotte
Ok ! Does this really supported in hardware ? without having any code already uploaded ?
If yes, then you're right and I apologize !
(That's odd that Espressif didn't mention that in their specs)

Re: JTAG Debugging

PostPosted: Sun May 22, 2016 10:11 am
by Freeck
Apologies accepted.

There is however a drawback, it consumes some IRAM to enable to flash code in flash, because the external flash is not part of the jtag chain......
In some occassions I ran out of iram.... So its not perfect, now I use serial gdb instead, it consumes no IO pins...

Re: JTAG Debugging

PostPosted: Sun May 22, 2016 10:13 am
by martinayotte
Freeck wrote:it consumes some IRAM to enable to flash code in flash.... In some occassions I ran out of iram...

Did you got chance to figure out why ? Is it simply because the code that does the flash isn't optimized ?

Re: JTAG Debugging

PostPosted: Sun May 22, 2016 10:30 am
by Freeck
No, It has nothing to do with optimisation of the code. Its a hardware related issue, you dont have accces to the flash area via the jtag interface, so you need some code in iram to do that job...
bottom line is that you have to live with the limitations...

PS: I prefer serial debug. Same drawbacks, but no use of 4 IO pins.