Skip to content

FPU related build error on MT3620 RT Core FreeRTOS example #3

@IvanLee-1

Description

@IvanLee-1

When I build an FreeRTOS example on github(https://github.com/MicrosoftDocs/Azure-Sphere-Developer-Learning-Path/tree/master/Lab_5_FreeRTOS_Environment) There is an build error as below. and it seems that it's related to the FreeRTOS/portable/port.c

[build] [51/56 85% :: 1.743] C:\PROGRA~2\ARMGNU~1\12DBAB~1.2RE\bin\AR19DD~1.EXE -DOSAI_ENABLE_DMA -DOSAI_FREERTOS -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/FreeRTOS_RTcore_GPIO -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/PUBLIC -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/. -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/MT3620_M4_BSP/FreeRTOS/./portable -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/MT3620_M4_BSP/FreeRTOS/./include -isystem "C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 rel1/lib/gcc/arm-none-eabi/12.2.1/include" -isystem "C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 rel1/arm-none-eabi/include" -mcpu=cortex-m4 -g -std=c11 -Wall -g2 -gdwarf-2 -O0 -MD -MT lib/MT3620_M4_Driver/MT3620_M4_BSP/FreeRTOS/CMakeFiles/MT3620_M4_FreeRTOS.dir/portable/port.c.obj -MF lib\MT3620_M4_Driver\MT3620_M4_BSP\FreeRTOS\CMakeFiles\MT3620_M4_FreeRTOS.dir\portable\port.c.obj.d -o lib/MT3620_M4_Driver/MT3620_M4_BSP/FreeRTOS/CMakeFiles/MT3620_M4_FreeRTOS.dir/portable/port.c.obj -c C:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/MT3620_M4_BSP/FreeRTOS/portable/port.c [build] FAILED: lib/MT3620_M4_Driver/MT3620_M4_BSP/FreeRTOS/CMakeFiles/MT3620_M4_FreeRTOS.dir/portable/port.c.obj [build] C:\PROGRA~2\ARMGNU~1\12DBAB~1.2RE\bin\AR19DD~1.EXE -DOSAI_ENABLE_DMA -DOSAI_FREERTOS -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/FreeRTOS_RTcore_GPIO -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/PUBLIC -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/. -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/MT3620_M4_BSP/FreeRTOS/./portable -IC:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/MT3620_M4_BSP/FreeRTOS/./include -isystem "C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 rel1/lib/gcc/arm-none-eabi/12.2.1/include" -isystem "C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 rel1/arm-none-eabi/include" -mcpu=cortex-m4 -g -std=c11 -Wall -g2 -gdwarf-2 -O0 -MD -MT lib/MT3620_M4_Driver/MT3620_M4_BSP/FreeRTOS/CMakeFiles/MT3620_M4_FreeRTOS.dir/portable/port.c.obj -MF lib\MT3620_M4_Driver\MT3620_M4_BSP\FreeRTOS\CMakeFiles\MT3620_M4_FreeRTOS.dir\portable\port.c.obj.d -o lib/MT3620_M4_Driver/MT3620_M4_BSP/FreeRTOS/CMakeFiles/MT3620_M4_FreeRTOS.dir/portable/port.c.obj -c C:/lab1/Azure-Sphere/Lab_5_FreeRTOS_Environment/MT3620_M4_BSP/FreeRTOS/portable/port.c [build] C:\Users\ivan\AppData\Local\Temp\ccC16s9b.s: Assembler messages: [build] C:\Users\ivan\AppData\Local\Temp\ccC16s9b.s:857: Error: selected FPU does not support instruction -- vstmdbeq r0!,{s16-s31}'
[build] C:\Users\ivan\AppData\Local\Temp\ccC16s9b.s:879: Error: selected FPU does not support instruction -- vldmiaeq r0!,{s16-s31}'

How can I fix this build error?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions