ponyatov / cmakeHello

CMake workout
MIT License
0 stars 0 forks source link

STM32F407VGTx_FLASH.ld:56: syntax error #1

Open ponyatov opened 3 hours ago

ponyatov commented 3 hours ago

https://github.com/ponyatov/cmakeHello/blob/cfc95506a8f8e35775eb6bfd07c38be5bb940ce0/hw/STM32F407G-DISC1/STM32F407VGTx_FLASH.ld#L50-L60

build] /usr/bin/arm-none-eabi-g++  -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -fno-rtti -fno-exceptions -fno-threadsafe-statics -g -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -T "/home/dponyatov/cmakeHello/hw/STM32F407G-DISC1/STM32F407VGTx_FLASH.ld" --specs=nano.specs -Wl,-Map=hello.map -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group -Wl,--print-memory-usage -Wl,--start-group -lstdc++ -lsupc++ -Wl,--end-group CMakeFiles/hello.dir/src/hello.cpp.obj -o hello.elf 
[build] gmake[2]: Leaving directory '/home/dponyatov/cmakeHello/tmp/STM32F407G-DISC1'
[build] gmake[1]: Leaving directory '/home/dponyatov/cmakeHello/tmp/STM32F407G-DISC1'
[build] /usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld:/home/dponyatov/cmakeHello/hw/STM32F407G-DISC1/STM32F407VGTx_FLASH.ld:56: syntax error
[build] collect2: error: ld returned 1 exit status
ponyatov commented 3 hours ago
cmake version 3.25.1
arm-none-eabi-g++ (15:12.2.rel1-1) 12.2.1 20221205
STM32CubeMX 6.12.1
 ~/STM32/CubeMXRepo/STM32Cube_FW_L4_V1.18.1/