Loading...
 
Skip to main content

System Workbench for STM32


CubeMX F4 projec with freertos will not build cos of asm instruction

With following assembler options
arm-none-eabi-as -g -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard
i am getting the error:
startup/os_cpu_a.s:231: Error: selected processor does not support `vstmdb R0!,{S16-S31}' in Thumb mode
startup/os_cpu_a.s:252: Error: selected processor does not support `vldmia R0!,{S16-S31}' in Thumb mode

please help

Experienced a similar thing. In my case it was because a sub folder in the Eclipse workspace was overwridding the build settings - which was something it decided to do itself. Have a look at the command line used for the file that is not building, and you will probably find it doesn't have the options you list in your post. Do any of the folder icons in the Eclipse browser look different to any other? If so, right click on it, then in the pop up menu select the configurations option and click 'reset to default'. Then it will just inehrit the compiler options from the project.

Thank you for the reply.
Though it is an Eclipse project, i am using a makefile. So the the file should build with the assembler flags that i am providing.