Closed
Description
Example:
https://developer.mbed.org/teams/ST/code/Nucleo_rtos/
I am testing with Nucleo-F411RE.
Test with inline librairies:
- mbed v105 : OK
- mbed v106 and after: FAILED
Test with uVision:
- ARM_MICRO compilation : Test is FAILED
- ARM_STD compilation : Test is OK
Analysis:
A InterruptIn variable is set as global.
With micro lib, during init, constructor InterruptIn is called, interruption context is then created.
Then still during init, destructor ~InterruptIn is also called, so all context is cleared.
It should be an "compilation optimization" error as the variable is then used.
Regards,