2019-02-13 08:42 AM
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
2019-02-13 08:45 AM
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
2019-02-13 10:11 AM
Depends on the compiler/options, c++ runtime code. Comment out if not needed.
2019-02-14 01:16 AM
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.
2019-02-14 10:37 AM
F1 series GCC linker scripts are even funnier - their empty lines each have a '0' character.
2019-02-15 01:37 AM
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.