Hi,
I am trying to get the gcc arm tools working for an stm32f030 however I have a problem - I am trying to use the HAL library from ST, when I call the 'HAL_init' function, the device has a hard fault exception.
I have tracked this down to the __aeabi_uidiv function which is in the armm gcc library which is linked . Does anyone know what I could be doing wrong wrong here? I did find this (from a while ago)
https://gcc.gnu.org/ml/gcc-help/2012-12/msg00011.html does anyone know if this is still a problem? does anyone here successfully use gcc and the HAL stuff with a coretex m0 device?
Also I am linking with gcc with the -mthumb and -mcpu=cortex-m0 options, so I don't think it should be linking to the wrong library...
edit:
I just tried explicitly linking with the correct library in the directory \GNU Tools ARM Embedded\lib\gcc\arm-none-eabi\5.4.1\armv6-m and it works. If you link with the library in \thumb it does not work... once again I'm sure I'm doing something dumb, can anyone correct my ways?