mirror of https://github.com/ArduPilot/ardupilot
…
|
||
---|---|---|
.. | ||
LinkerScriptGenerator.kt | ||
README.md |
README.md
How to profile ardupilot binary on ESP32 and use result to place critical functions to the IRAM
Prepare source
- Configure project with
--enable-profile
option:./waf configure --board=esp32diy --enable-profile
- Rebuild binaries
Run program with profiling enabled
- Flash and run binary
- Try to use mode silimiar to real flight. I.E. compass/gps connected, armed state, and so no
- It will write profile stat to the
/APM/APM/PROF000.TXT
files on the sdcard every one minute
Use profile info to optimize program
- Copy
PROF*.TXT
file from sd card - Copy file
arducopter.map
from build directory - Use them to produce
functions.list
by the scriptLinkerScriptGenerator.kt
(modify paths and limits inside) - Place file
functions.list
to thetarget/copter/main
folder