CMSIS linker files has error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-16 7:52 AM
Hi. I'm not sure is it a right place - my problem is more like an issue. I've downloaded STM32CubeF1 from here: https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubef1.html#getsoftware-scroll.
The problem is that all linker files in Device/ST/STM32F1xx/Source/Templates/gcc/linker folder contains messy `0` symbols and linker report about it and exits with error:
make
/usr/bin/arm-none-eabi-gcc obj/main.o obj/startup_stm32f103xb.o -T../../STM32Cube_FW_F1_V1.6.0/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/linker/STM32F103XB_FLASH.ld -mthumb -mcpu=cortex-m3 --specs=nosys.specs --specs=nano.specs -lc -o bin/blink.elf
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld:../../STM32Cube_FW_F1_V1.6.0/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/linker/STM32F103XB_FLASH.ld:29: syntax error
collect2: error: ld returned 1 exit status
I've attache one of such files as an example.
Looks like this files generated automatically from some kind of templates but somthing wrong with generating software and unneeded zeros are inserted in resulting files.
After manually removing such zeros all works fine.
- Labels:
-
Bug-report
-
CMSIS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-19 9:03 AM
Hello @Community member ,
Thank you for sharing this issue.
I confirm your reported issue and raised it internally for fix.
Kind Regards,
Imen.
Thanks
Imen
