cancel
Showing results for 
Search instead for 
Did you mean: 

HAL 1.7.0 missing __libc_init_array for stm32f105

mmomb
Associate II

As title,

all the startup script in the HAL V1.7.0 for F1XX chip contains the call to __libc_init_array , but the one for F105.

Is there any particular reason or it is just a bug?

thanks

5 REPLIES 5
mmomb
Associate II

i double check all the starup script from the HAL for F4, L0 and L4, all contains the call to __libc_init_array.. guess it is a bug. Please ST fix

Depends on the compiler/options, c++ runtime code. Comment out if not needed.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

what im saying is that EVERY default startup script have it (~30 checked), but only that one does not have it.

That seems to be a mistake, as it is not in line with all the other standard configuration.

Piranha
Chief II

F1 series GCC linker scripts are even funnier - their empty lines each have a '0' character.

nice catch!

I use the linker script from a random f4, moved _estack to be after . = . + _Min_Stack_Size;

so it is "dynamic", and I just have to worry about setting FLASH RAM and CCRAM depending on the necessity.