Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 9 months ago.
WEAK void mbed_sdk_init(void) in mbed_sdk.c and mbed_overrides.c
Hello, I am compiling the source code of mbed-os with SW4STM32 from ac6 inside an static library project created by SW4STM32 for STM32L476. Then I link the library into an second application project with main function. I realize that when calling mbed_sdk_init function from software_init_hook, the weak definition of mbed_sdk.c file is executed (->error: the SystemCoreClock and HAL are not initialized).
When I add the source code of mbed-os into the application project, the function of mbed_sdk.c file is called and all is OK.
Any Idea (e.g.: missing compiler option)?
BR Paul