-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Describe the bug
As a follow up of owntech-foundation/examples#57 where the critical task of the Blinky example cannot start unless the tim6 source is specified.
I've created a Blinky example with a simple critical task with timer source set to source_tim6, see blinky+critical branch https://github.com/pierre-haessig/owntech-examples/blob/blinky%2Bcritical/src/main.cpp. However , I believe that the critical task is not starting. Perhaps timer 6 is not initialized?
To Reproduce
Steps to reproduce the behavior:
- Load blinky example
- Replace main.cpp by the one from the
blinky+criticalbranch ate0841bdcommit https://github.com/pierre-haessig/owntech-examples/blob/e0841bd5cbac7a21b99c3d4bf70e54d092c9f8c8/src/main.cpp - Build and Upload code
Expected behavior
The critical task, if it runs at least one, should set the boolean flag flag = true;
Then the loop_background_task is blinking the LED at a speed which depends on the flag. If flag were true, the blinking should be fast (100ms). However, it is slow (1000 ms), proving that flag=false.