Search found 3 matches

by nvitya
Tue Nov 16, 2021 8:39 pm
Forum: General Discussion
Topic: ESP32 Bare Metal Programming / Debugging with JTAG
Replies: 5
Views: 3394

Re: ESP32 Bare Metal Programming / Debugging with JTAG

Thank You! That was it. I've included these at the beginning: asm("movi a0, (3 | 0x00040000 | 0x00000020)"); // = PS_INTLEVEL(3) | PS_UM | PS_WOE asm("wsr a0, PS"); And now the breakpoints work like expected. Searching for PS_INTLEVEL in the ESP-IDF source tree showed me a bunch of ASM parts that co...
by nvitya
Mon Nov 15, 2021 8:07 pm
Forum: General Discussion
Topic: ESP32 Bare Metal Programming / Debugging with JTAG
Replies: 5
Views: 3394

Re: ESP32 Bare Metal Programming / Debugging with JTAG

Hi, I've played again a bit with it. I've removed almost everything from the openocd config. Just the JTAG setup and the "maskisr" setting remained. No esp_common.cfg included, just simple CPU, no RTOS flag. Breakpoints still does not work, but instruction stepping does. If I remove this too: $_TARG...
by nvitya
Sat Nov 13, 2021 9:23 am
Forum: General Discussion
Topic: ESP32 Bare Metal Programming / Debugging with JTAG
Replies: 5
Views: 3394

ESP32 Bare Metal Programming / Debugging with JTAG

Hi, I already have some experience with flashless Microctrontrollers like the ESP32. For example I know quite well the NXP IMXRT1051. I develop on the IMXRT so that I load the code image into the RAM and as the code starts writes itself to the QSPI flash for the permanent storage. I applied this tec...