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

wziy520
Posts: 42
Joined: Thu Nov 10, 2016 7:58 am

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

Postby wziy520 » Fri May 05, 2017 2:12 am

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

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri May 05, 2017 2:53 am

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.

Who is online

Users browsing this forum: No registered users and 184 guests