Skip to content

Commit 83a658a

Browse files
committed
added openocd install disclaimer
1 parent 51e4d53 commit 83a658a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/embedded/index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,35 @@ This task aims to illustrate the importance of OS preemption in the context of u
169169

170170
### Trust but verify
171171

172+
:::warning app flashing
173+
<!-- If you are on Windows/VM, using `tockloader install` (which the `Makefile` command uses) may not work, so you will need to bundle the application in a single binary, which you will need to load in the *"old-fashioned"* way, by modifying the `APP` variable in `boards/nucleo_f429zi/Makefile` to point to the bundle TBF.
174+
175+
To create the bundle, you will need to concatenate the two `.tbf`s using `cat`:
176+
177+
```shell
178+
cat app1.tbf app2.tbf > bundle.tbf
179+
```
180+
181+
Then, modify the `Makefile`:
182+
183+
```makefile title="boards/nucleo_f429zi/Makefile"
184+
APP=<path/to/bundle.tbf>
185+
```
186+
187+
Lastly, flash it by running `make program`. -->
188+
189+
You will need to install `openocd` first.
190+
191+
```shell
192+
# Linux
193+
sudo apt install openocd
194+
195+
# Mac
196+
brew install openocd
197+
```
198+
199+
:::
200+
172201
Your task will be to verify the previous claims, by flashing two C applications. One of them will be the `blink` example. After flashing the kernel by running `make flash` in the board's main directory (`boards/nucleo_f429zi`), you can load the application by running `make flash` in the example's root folder (`example/blink`).
173202

174203
As there are no *"malicious"* examples, we will have to add them on our own. In this case, an app that would print a message, then just infinitely spin in a `while` loop is enough. For this, you can adapt the `examples/c_hello` example, the flash it.

0 commit comments

Comments
 (0)