Arm Mbed OS support forum

A HAL_RCC_OscConfig problem in mbed-os 6.12

Hi,

I had remove the extern XTAL from the NCULEO-L432KC.
And below is my mbed_app.json (To use internal 16MHz XTAL):

{
    "target_overrides": {
        "NUCLEO_L432KC": {
            "target.clock_source": "USE_PLL_HSI"
        }
    }
} 

mbed-os 5.14 : work fine.
mbed-os 6.12 : show a run-time error as below:

++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x80048A5
Error Value: 0x0
Current Thread: <unnamed> Id: 0x0 Entry: 0x8000299 StackSize: 0x0 StackMem: 0x8000325 SP: 0x2000FE4C 
For more info, visit: https://mbed.com/s/error?error=0x80FF0100&tgt=NUCLEO_L432KC
-- MbedOS Error Info --
HAL_RCC_OscConfig ERROR

Sorry, I need help …

Best Regards,
Jason

I got a solution .
If disable the tickless feature, the internal XTAL will work fine.

"target.macros_remove": ["MBED_TICKLESS"]

Also have to remove all platform stats features from mbed_app.json:

  "platform.stack-stats-enabled*": true,
  "platform.heap-stats-enabled*": true,
  "platform.cpu-stats-enabled": true,
  "platform.thread-stats-enabled": true,
  "platform.sys-stats-enabled": true,

Is a bug in the mbed-os 6.12 ?