diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-09-15 15:41:14 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-09-15 15:41:14 +0200 |
| commit | e487b235eb26b3f9254e21df15907039156670b3 (patch) | |
| tree | b9bd84e7321502947dbd928d2096dd59be3125e0 /book | |
| parent | c5e6d1fa49e3596227a8ee8fe89e2e4f66db3169 (diff) | |
Improved loop example docs to highlight that one cannot have empty loops in idle
Diffstat (limited to 'book')
| -rw-r--r-- | book/en/src/by-example/app.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md index e0f4f94..9a073ac 100644 --- a/book/en/src/by-example/app.md +++ b/book/en/src/by-example/app.md @@ -77,6 +77,9 @@ references that are safe to access. The example below shows that `idle` runs after `init`. +**Note:** The `loop {}` in idle cannot be empty as this will crash the microcontroller due to a bug +in LLVM which miss-optimizes empty loops to a `UDF` instruction in release mode. + ``` rust {{#include ../../../../examples/idle.rs}} ``` |
