Chapter 4. API Guides
(gdb) help next
Step program, proceeding through subroutine calls.
Usage: next [N]
Unlike "step", if the current source line calls a subroutine,
this command does not enter the subroutine, but instead steps over
the call, in effect treating it as a single source line.
(gdb)
By typing just help, you will get top level list of command classes, to aid you drilling down to more details. Option-
ally refer to available GDB cheat sheets, for instance https://darkdust.net/files/GDB%20Cheat%20Sheet.pdf. Good
to have as a reference (even if not all commands are applicable in an embedded environment).
Ending debugger session
(gdb) q
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) y
Detaching from program: /home/user-name/esp/blink/build/blink.elf, Remote target
Ending remote debugging.
user-name@computer-name:~/esp/blink$
•
Using Debugger
•
Debugging Examples
•
Tips and Quirks
•
Application Level Tracing library
•
Introduction to ESP-Prog Board
4.18 Linker Script Generation
4.18.1 Overview
There are several
memory regions
in flash, writable data in RAM, etc. However, it is sometimes necessary to change these default placements.
For example, it may be necessary to place critical code in RAM for performance reasons or to place code in RTC
memory for use in a wake stub or the ULP coprocessor.
With the linker script generation mechanism, it is possible to specify these placements at the component level within
ESP-IDF. The component presents information on how it would like to place its symbols, objects or the entire archive.
During build, the information presented by the components are collected, parsed and processed; and the placement
rules generated is used to link the app.
4.18.2 Quick Start
This section presents a guide for quickly placing code/data to RAM and RTC memory - placements ESP-IDF provides
out-of-the-box.
For this guide, suppose we have the following:
- components/
- my_component/
Espressif Systems
To quit debugger enter q:
where code and data can be placed. Code and read-only data are placed by default
-
CMakeLists.txt
-
component.mk
-
Kconfig
1411
Submit Document Feedback
(continues on next page)
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?