DOC: STM32F7 add example flash/reset/debug information.

* Information on how to flash NuttX firmware to STM32F7 target was missing
  in the documentation and asked by new users on the dev@ list.
* Example on how to Flash, Reset, Debug with OpenOCD is now added to docs.

Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
This commit is contained in:
Tomasz 'CeDeROM' CEDRO 2024-09-27 20:40:17 +02:00 committed by Xiang Xiao
parent 736e0ac34f
commit d949f569ab

View file

@ -429,6 +429,33 @@ different from the default in your PATH variable).
$ make
Flashing and Debugging
======================
NuttX firmware Flashing with STLink probe and OpenOCD::
openocd -f interface/stlink.cfg -f target/stm32f7x.cfg -c 'program nuttx.bin 0x08000000; reset run; exit'
Remote target Reset with STLink probe and OpenOCD::
openocd -f interface/stlink.cfg -f target/stm32f7x.cfg -c 'init; reset run; exit'
Remote target Debug with STLink probe and OpenOCD:
1. You need to have NuttX built with debug symbols, see :ref:`debugging`.
2. Launch the OpenOCD GDB server::
openocd -f interface/stlink.cfg -f target/stm32f7x.cfg -c 'init; reset halt'
3. You can now attach to remote OpenOCD GDB server with your favorite debugger,
for instance gdb::
arm-none-eabi-gdb --tui nuttx -ex 'target extended-remote localhost:3333'
(gdb) monitor reset halt
(gdb) breakpoint nsh_main
(gdb) continue
Supported Boards
================