Skip to content

Commit fa31d18

Browse files
authored
Track/embedded (#25)
* added scheduler task * added openocd install disclaimer
1 parent c4d9aa1 commit fa31d18

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
@@ -177,6 +177,35 @@ This task aims to illustrate the importance of OS preemption in the context of u
177177

178178
### Trust but verify
179179

180+
:::warning app flashing
181+
<!-- 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.
182+
183+
To create the bundle, you will need to concatenate the two `.tbf`s using `cat`:
184+
185+
```shell
186+
cat app1.tbf app2.tbf > bundle.tbf
187+
```
188+
189+
Then, modify the `Makefile`:
190+
191+
```makefile title="boards/nucleo_f429zi/Makefile"
192+
APP=<path/to/bundle.tbf>
193+
```
194+
195+
Lastly, flash it by running `make program`. -->
196+
197+
You will need to install `openocd` first.
198+
199+
```shell
200+
# Linux
201+
sudo apt install openocd
202+
203+
# Mac
204+
brew install openocd
205+
```
206+
207+
:::
208+
180209
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`).
181210

182211
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)