FPU related build error on MT3620 RT Core FreeRTOS example

ivan 100 Reputation points
2023-04-20T07:36:46.66+00:00

Hello,

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? I want to test RT core of MT3620 with FreeRTOS. Thanks.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
156 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde 28,626 Reputation points MVP
    2023-04-20T16:02:40.2233333+00:00

    Hello @ivan,

    thanks for submitting your Azure Sphere question in the moderated community forum.

    The example you try out is put on GitHub.

    I recommend submitting your question there as an issue so the owner of the repo is notified.

    He/she will be happy to improve the quality of the repo and fix your problem.

    Please add a reference to the issue here so these are related.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful