Skip to content

Commit 9be9699

Browse files
committed
Merge branch 'master' of https://github.com/Hector93/stm32-emacs into master
2 parents 576a4c1 + dbcb673 commit 9be9699

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Readme.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Some functions for work with stm32 arm microcontrollers in EMACS.
66

77
Video of work: https://youtu.be/M7RBQsq5_lc
88

9+
here is an overview of how it looks
10+
11+
![Projectile Demo](assets/overview.gif)
12+
13+
914
## Required:
1015
***
1116
- cmake-ide
@@ -62,9 +67,18 @@ Openocd requieres a .cfg file to properly function you need to provide the file
6267

6368
#### RTOS support
6469
***
65-
If you have a project using an RTOS (FreeRTOS for example) you can debug your project without problems but only openocd [supports](http://openocd.org/doc/html/GDB-and-OpenOCD.html) debugging tasks or threads, this is because openocd searches the tasks of your project and presents them as threads to gdb with this you can wath the stack of every task and also the current state of the task, in order to do this you need to follow the next steps.
70+
If you have a project using an RTOS (FreeRTOS for example) you can debug your project without problems but only openocd [supports](http://openocd.org/doc/html/GDB-and-OpenOCD.html) debugging tasks or threads, this is because openocd searches the tasks of your project and presents them as threads to gdb with this you can wath the stack of every task and also the current state of the task, but in order to do that you need to check if Openocd supports your particular [RTOS](http://openocd.org/doc/html/GDB-and-OpenOCD.html)(section: 21-6 RTOS Support).
71+
72+
If your RTOS is supported you need to do the following steps for enabling debugging tasks in Openocd:
73+
74+
75+
- add the `RTOSFLAG` to the openocd.cfg file this flag varies (the file opencd.cfg contains an example for FreeRTOS users)
76+
```$_TARGETNAME configure -rtos 'RTOSFLAG'```
77+
- add the symbols definition (if requered [section:21.6](openocd.org/doc/html/GDB-and-OpenOCD.html)) to your proyect. for FreeRTOS users an example file is provided (FreeRTOS-openocd.c)
78+
- some RTOS require further configurations in the CMakeLists file (FreeRTOS is one of them), for more information check the example file FreeRTOS-openocd.c
79+
- recompile your proyect and start debugging with Openocd.
80+
6681

67-
#TODO document the necesary changes of CmakeLists file
6882

6983
### Optional gdb steps
7084
***

0 commit comments

Comments
 (0)