EasyManua.ls Logo

Espressif ESP32-S2 - Page 1399

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4. API Guides
7. Change default configuration of Remote hostby entering 3333 under the Port number.
Configuration entered in points 6 and 7 is shown on the following picture.
Fig. 23: Configuration of GDB Hardware Debugging - Debugger tab
8. The last tab to that requires changing of default configuration isStartup. UnderInitialization Commands
uncheck Reset and Delay (seconds)and Halt. Then, in entry field below, enter the following lines:
mon reset halt
flushregs
set remote hardware-watchpoint-limit 2
Note: If you want to update image in the flash automatically before starting new debug session add the
following lines of commands at the beginning of Initialization Commandstextbox:
mon reset halt
mon program_esp ${workspace_loc:blink/build/blink.bin} 0x10000 verify
For description of program_esp command see Upload application for debugging.
9. Under Load Image and Symbolsuncheck Load imageoption.
10. Further down on the same tab, establish an initial breakpoint to halt CPUs after they are reset by debugger. The
plugin will set this breakpoint at the beginning of the function entered underSet break point at:. Checkout
this option and enter app_main in provided field.
11. Checkout Resumeoption. This will make the program to resume after mon reset halt is invoked
per point 8. The program will then stop at breakpoint inserted at app_main.
Configuration described in points 8 - 11 is shown below.
If the Startupsequence looks convoluted and respective Initialization Commandsare not clear to you,
check What is the meaning of debuggers startup commands? for additional explanation.
12. If you previously completed Configuring ESP32-S2 Target steps described above, so the target is running and
ready to talk to debugger, go right to debugging by pressing Debugbutton. Otherwise press Applyto
Espressif Systems 1388
Submit Document Feedback
Release v4.4

Table of Contents