Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
23d29151
Commit
23d29151
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
21f92ba6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configs/esp32-core/README.txt
+19
-4
19 additions, 4 deletions
configs/esp32-core/README.txt
with
19 additions
and
4 deletions
configs/esp32-core/README.txt
+
19
−
4
View file @
23d29151
...
...
@@ -285,8 +285,8 @@ OpenOCD for the ESP32
If you do not do the install step, then you will have a localhost
version of the OpenOCD binary at openocd-esp32/src.
Running OpenOCD
--------------
Starting the OpenOCD Server
--------------
-------------
- cd to openocd-esp32 directory
- copy the modified esp32.cfg script to this directory
...
...
@@ -411,6 +411,18 @@ OpenOCD for the ESP32
Executing and Debugging from FLASH and IRAM
===========================================
Enable Debug Symbols
--------------------
To debug with GDB, you will need to enable symbols in the build. You do this
with 'make menuconfig' then selecting:
- "Build Setup" -> "Debug Options" -> "Generate Debug Symbols"
And, to make debugging easier, also disable optimizations. This will make
your code a lot bigger:
- "Build Setup" -> "Optimization Level" -> "Suppress Optimization"
FLASH
-----
OpenOCD currently doesn't have a FLASH driver for ESP32, so you can load
...
...
@@ -477,11 +489,11 @@ OpenOCD for the ESP32
for flashing into the board. The command should to convert ELF file to binary
image looks as follows:
python esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 elf2image --flash_mode "dio" --flash_freq "40m" --flash_size "2MB" -o
app.bin app.elf
python esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 elf2image --flash_mode "dio" --flash_freq "40m" --flash_size "2MB" -o
nuttx.bin nuttx
To flash binary image to your development board, use the same esptool.py utility:
python esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash -z --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000
app
.bin
python esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash -z --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000
nuttx
.bin
The argument before app.bin (0x1000) indicates the offset in flash where binary
will be written. ROM bootloader expects to find an application (or second stage
...
...
@@ -551,6 +563,9 @@ NOTES:
to set CONFIG_ESP32CORE_RUN_IRAM=y for now (see the " Executing
and Debugging from FLASH and IRAM" section above).
To select this option, do 'make menuconfig'. Then you can find
the selection under the "Board Selection" menu as "Run from IRAM".
Configuration sub-directories
-----------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment