Writing /var/lib/dokuwiki/data/meta/tutorials/omni-base_software.meta failed
tutorials:omni-base_software
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:omni-base_software [2019/03/15 00:29] – [Debuggin: gdb + arm] bmorera | tutorials:omni-base_software [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ===== Environment setup ===== | ===== Environment setup ===== | ||
| Line 7: | Line 7: | ||
| ===== Running tests ===== | ===== Running tests ===== | ||
| - | ===== Debuggin: gdb + arm ===== | + | ===== Debug process |
| - | openocd -f board/stm32f4discovery.cfg | + | ==== Required packages ==== |
| + | The following packages should be installed: | ||
| + | |||
| + | - arm-none-eabi-gdb | ||
| + | - openocd | ||
| + | | ||
| + | |||
| + | ==== Debug ==== | ||
| + | The process to debug the stm32f4-discovery is the following: | ||
| + | |||
| + | * Connect the stm32f4-discovery with the programming and serial usb. | ||
| + | * '' | ||
| + | * Create a file with the name **openocd.cfg** with the follow content. | ||
| + | |||
| + | < | ||
| + | source [find interface/stlink-v2-1.cfg] | ||
| + | source [find target/ | ||
| + | init | ||
| + | $_TARGETNAME configure -rtos ChibiOS | ||
| + | </ | ||
| + | |||
| + | * Open a terminal in the same directory where the file was created and run '' | ||
| + | * If the before command doesn' | ||
| + | * Open another terminal where the program to debug is and run '' | ||
| + | * Into the dbg prompt run '' | ||
| + | * Now you can debug!!! | ||
| + | |||
| + | ==== Considerations ==== | ||
| + | Sometimes openocd fails to detect ChibiOs and this is an [[https:// | ||
| ===== Current repository state ===== | ===== Current repository state ===== | ||
| TODO: sw structure | TODO: sw structure | ||
tutorials/omni-base_software.1552609747.txt.gz · Last modified: 2022/09/20 00:08 (external edit)