Espressif ESP32-S2 Programming Manual page 1399

Table of Contents

Advertisement

Chapter 4. API Guides
7. Change default configuration of "Remote host"by 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 is"Startup" . Under"Initialization 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
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 Commands"textbox:
mon reset halt
mon program_esp ${workspace_loc:blink/build/blink.bin} 0x10000 verify
For description of program_esp command see
9. Under "Load Image and Symbols"uncheck "Load image"option.
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 under"Set break point at:". Checkout
this option and enter app_main in provided field.
11. Checkout "Resume"option. 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 "Startup"sequence looks convoluted and respective "Initialization Commands"are not clear to you,
check
What is the meaning of debugger's startup commands?
12. If you previously completed
ready to talk to debugger, go right to debugging by pressing "Debug"button. Otherwise press "Apply"to
Espressif Systems
2
Upload application for
Configuring ESP32-S2 Target
1388
Submit Document Feedback
debugging.
for additional explanation.
steps described above, so the target is running and
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF