Skip to content

RTOS and InterruptIn example doesn't work anymore #1737

Closed
@jeromecoutant

Description

@jeromecoutant

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,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions