Skip to main content
mmomb
Associate
February 13, 2019
Question

HAL 1.7.0 missing __libc_init_array for stm32f105

  • February 13, 2019
  • 5 replies
  • 1133 views

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

This topic has been closed for replies.

5 replies

mmomb
mmombAuthor
Associate
February 13, 2019

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

Tesla DeLorean
Guru
February 13, 2019

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
mmomb
mmombAuthor
Associate
February 14, 2019

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
Principal III
February 14, 2019

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

mmomb
mmombAuthor
Associate
February 15, 2019

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.