Startup file replacement

Sysprogs forums Forums VisualGDB Startup file replacement

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23812
    Ocef
    Participant

    Hello.

     

    I have created a new CubeMX and FreeRTOS project based on your tutorials. Everything went fine, but I wanted to replace the linker and startup scripts to match the original provided by CubeMX.
    The replacement of the linker script went fine without a problem, but the startup code doesn’t work.
    Here is what I did:
    Copied the startup_stm32l476xx.s into the root folder and I added it to the project below the original *.c file. Then I deleted the *.c file, so only the *.s shows up the project.
    As I see, it also got updated in the Makefile automatically, so it still looks fine. However when I build the project a get the following output and errors:

    1>—— Build started: Project: Blinky, Configuration: Debug Win32 ——
    1>Updating D:\Git\stm32_blinky\Blinky_VisualGDB\Blinky_VisualGDB\Makefile
    1>VisualGDB: Updated source file list in D:\Git\stm32_blinky\Blinky_VisualGDB\Blinky_VisualGDB\Makefile. Enable verbose mode for more details.
    1>VisualGDB: Run “C:\SysGCC\arm-eabi\bin\make.exe CONFIG=Debug -j8” in directory “D:\Git\stm32_blinky\Blinky_VisualGDB\Blinky_VisualGDB” on local computer
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-g++.exe -ggdb -ffunction-sections -fno-exceptions -fno-rtti -O0 -std=c++14 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c blinky.cpp -o Debug/blinky.o -MD -MF Debug/blinky.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Src/freertos.c -o Debug/freertos.o -MD -MF Debug/freertos.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Src/stm32l4xx_it.c -o Debug/stm32l4xx_it.o -MD -MF Debug/stm32l4xx_it.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Src/stm32l4xx_hal_msp.c -o Debug/stm32l4xx_hal_msp.o -MD -MF Debug/stm32l4xx_hal_msp.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Src/stm32l4xx_hal_timebase_TIM.c -o Debug/stm32l4xx_hal_timebase_TIM.o -MD -MF Debug/stm32l4xx_hal_timebase_TIM.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Src/main.c -o Debug/main.o -MD -MF Debug/main.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/system_stm32l4xx.c -o Debug/system_stm32l4xx.o -MD -MF Debug/system_stm32l4xx.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c -o Debug/stm32l4xx_hal.o -MD -MF Debug/stm32l4xx_hal.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c -o Debug/stm32l4xx_hal_i2c.o -MD -MF Debug/stm32l4xx_hal_i2c.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c_ex.c -o Debug/stm32l4xx_hal_i2c_ex.o -MD -MF Debug/stm32l4xx_hal_i2c_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/croutine.c -o Debug/croutine.o -MD -MF Debug/croutine.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/event_groups.c -o Debug/event_groups.o -MD -MF Debug/event_groups.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/list.c -o Debug/list.o -MD -MF Debug/list.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/queue.c -o Debug/queue.o -MD -MF Debug/queue.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c -o Debug/stream_buffer.o -MD -MF Debug/stream_buffer.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/tasks.c -o Debug/tasks.o -MD -MF Debug/tasks.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/timers.c -o Debug/timers.o -MD -MF Debug/timers.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c -o Debug/cmsis_os.o -MD -MF Debug/cmsis_os.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c -o Debug/heap_4.o -MD -MF Debug/heap_4.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c -o Debug/port.o -MD -MF Debug/port.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.c -o Debug/stm32l4xx_hal_rcc.o -MD -MF Debug/stm32l4xx_hal_rcc.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c -o Debug/stm32l4xx_hal_rcc_ex.o -MD -MF Debug/stm32l4xx_hal_rcc_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_cortex.c -o Debug/stm32l4xx_hal_cortex.o -MD -MF Debug/stm32l4xx_hal_cortex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim.c -o Debug/stm32l4xx_hal_tim.o -MD -MF Debug/stm32l4xx_hal_tim.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim_ex.c -o Debug/stm32l4xx_hal_tim_ex.o -MD -MF Debug/stm32l4xx_hal_tim_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c -o Debug/stm32l4xx_hal_uart.o -MD -MF Debug/stm32l4xx_hal_uart.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.c -o Debug/stm32l4xx_hal_uart_ex.o -MD -MF Debug/stm32l4xx_hal_uart_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma.c -o Debug/stm32l4xx_hal_dma.o -MD -MF Debug/stm32l4xx_hal_dma.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma_ex.c -o Debug/stm32l4xx_hal_dma_ex.o -MD -MF Debug/stm32l4xx_hal_dma_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr.c -o Debug/stm32l4xx_hal_pwr.o -MD -MF Debug/stm32l4xx_hal_pwr.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.c -o Debug/stm32l4xx_hal_pwr_ex.o -MD -MF Debug/stm32l4xx_hal_pwr_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash.c -o Debug/stm32l4xx_hal_flash.o -MD -MF Debug/stm32l4xx_hal_flash.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ex.c -o Debug/stm32l4xx_hal_flash_ex.o -MD -MF Debug/stm32l4xx_hal_flash_ex.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ramfunc.c -o Debug/stm32l4xx_hal_flash_ramfunc.o -MD -MF Debug/stm32l4xx_hal_flash_ramfunc.dep
    1>C:/SysGCC/arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32L4xx/Include -IInc -IDrivers/STM32L4xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IDrivers\CMSIS\Include -IDrivers\CMSIS\Device\ST\STM32L4xx\Include -IDrivers\STM32L4xx_HAL_Driver\Inc -IMiddlewares\Third_Party\FreeRTOS\Source\include -IMiddlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS -IMiddlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F -IDrivers\STM32L4xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c -o Debug/stm32l4xx_hal_gpio.o -MD -MF Debug/stm32l4xx_hal_gpio.dep
    1>as -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DDEBUG=1 -Dflash_layout -DSTM32L476xx -DUSE_FREERTOS -DARM_MATH_CM4 -Dflash_layout -DSTM32L476RG -c startup_stm32l476xx.s -o Debug/startup_stm32l476xx.o -MD -MF Debug/startup_stm32l476xx.dep
    1>as: unrecognized option `-mcpu=cortex-m4′
    1>make: *** [Debug/startup_stm32l476xx.o] Error 1
    1>make: *** Waiting for unfinished jobs….
    1>————————————————————-
    1>Command exited with code 2
    1>Executable: C:\SysGCC\arm-eabi\bin\make.exe
    1>Arguments: CONFIG=Debug -j8
    1>Directory: D:\Git\stm32_blinky\Blinky_VisualGDB\Blinky_VisualGDB
    1>VisualGDB : error : Command-line action failed
    1>VisualGDB : error : Build has failed. See the Output window for more details.
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /build “D:\Git\stm32_blinky\Blinky_VisualGDB\Blinky_VisualGDB\Blinky.vcxproj” “/solution:D:\Git\stm32_blinky\Blinky_VisualGDB\Blinky.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
    1>Done building project “Blinky.vcxproj” — FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Can you help me with this one?

    I included a picture of my project folder.

    Attachments:
    You must be logged in to view attached files.
    #23830
    support
    Keymaster

    Hi,

    It looks like your system sets the %AS% environment variable to the default x86 assembler and the Makefile picks it up. Please try locating the following code in your Makefile:

    ifeq ($(AS),)
    AS := $(CC)
    ASFLAGS := $(CFLAGS) $(ASFLAGS)
    endif

    Once you locate it, simply make it unconditional (remove the ifeq and endif lines). This will override the incorrect value inherited from the environment.

    #23836
    Ocef
    Participant

    Thank you, it works file.

    Is there any chance that it can get overwritten in the future?

    #23842
    support
    Keymaster

    Hi,

    The Makefile itself does not get overwritten (it is part of the VisualGDB’s design to do small and very focused edits to the Makefile itself so that our users can edit it to modify the build logic), however the auxiliary files (e.g. stm32.mak) do get overwritten. As long as you edit the files that do not have the “THE FILE WILL BE OVERWRITTEN” warning, you should be on the safe side.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.