ARMmbed / mbed-os-example-blinky-baremetal

Bare metal blinky Mbed OS example
Apache License 2.0
3 stars 19 forks source link

Crashes on F030 Nucleo board #65

Closed Arjun765 closed 2 years ago

Arjun765 commented 2 years ago

Description of defect

It crashes when running on F030 board

++ MbedOS Error Info ++ Error Status: 0x80FF0144 Code: 324 Module: 255 Error Message: Assertion failed: "OS timer not available - check MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER" && >false Location: 0x8000DFB File: ../mbed-os/platform/source/mbed_os_timer.cpp+55 Error Value: 0x0

Target(s) affected by this defect ?

Nucleo F030

Toolchain(s) (name and version) displaying this defect ?

GCC

What version of Mbed-os are you using (tag or sha) ?

mbed-os-5.15.3-rc1

0xc0170 commented 2 years ago

https://github.com/ARMmbed/mbed-os/blob/mbed-os-5.15/platform/source/mbed_os_timer.cpp#L50 - this is the line that should be true. Can you enable MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER by defining tickless from us ticker?

Something like this:

    "overrides": {
            "tickless-from-us-ticker": true
        }

or just define a macro and set to 1

Arjun765 commented 2 years ago

Yes, enabling target.tickless-from-us-ticker is how i got it to run. Shouldn't it be enabled by default on the F030?

jeromecoutant commented 2 years ago

Hi This was corrected in https://github.com/ARMmbed/mbed-os/pull/12988 Regards,