esp_cpu_set_breakpoint() function
Set and enable a hardware breakpoint on the current CPU
Arguments
bp_num
Hardware breakpoint number [0..SOC_CPU_BREAKPOINTS_NUM - 1]
bp_addr
Address to set a breakpoint on
Return value
ESP_OK if breakpoint is set. Failure otherwise
Notes
This function is meant to be called by the panic handler to set a breakpoint for an attached debugger during a panic. Overwrites previously set breakpoint with same breakpoint number.