Page 1 of 1

what ESP32 asm breakpoint instruction support if need integrate in to source code

Posted: Fri May 05, 2017 2:12 am
by wziy520
I have touch some chips support _asm_("bkpt"), but look esp32 compiler not supportted "bkpt" ,

please let me know if there have an instruction for break

Re: what ESP32 asm breakpoint instruction support if need integrate in to source code

Posted: Fri May 05, 2017 2:53 am
by ESP_Sprite

Code: Select all

asm("break.n 1")
will work. Be aware that you will have to manually step over the breakpoint (=modify PC to the next instruction) if you use gdb/openocd and execute this instruction.