Compiler error after importing FreeRTOS files

guggech wrote on Monday, April 16, 2018:

I am using the SAM4s Xplained board and I did successfully compile the Starter_kit demo1 and downloaded the application and verified the operation with the ATMEL studio 7.0 debugger.
The board uses the ATSAM4sD32C chip with is the M4 family . I copied all the FReeRTOS files including the portc for CM4F and I am getting the errors shown below. Looking at the specification, it does say that this processor support the Thumb -2 instruction set and is an ARM CORTEX RISC processor.
Any ideas?
Thanks,
charles

Invoking: ARM/GNU C Compiler : 6.2.1
	"C:\Program Files\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAM4SD32C__ -DDEBUG -DBOARD=SAM4S_XPLAINED_PRO -D__SAM4SD32C__ -DSD_MMC_ENABLE -DARM_MATH_CM4=true -Dprintf=iprintf -Dscanf=iscanf  
    -tudio\7.0\STARTER_KIT_DEMO1\STARTER_KIT_DEMO1\Debug\{standard input}(456,1): 
    error: selected processor does not support `vstmdbeq r0!,{s16-s31}' in Thumb mode

Studio\7.0\STARTER_KIT_DEMO1\STARTER_KIT_DEMO1\Debug{standard input}(458,1): error: instruction not allowed in IT block – stmdb r0!,{r4-r11,r14}' Studio\7.0\STARTER_KIT_DEMO1\STARTER_KIT_DEMO1\Debug\{standard input}(478,1): error: selected processor does not support vldmiaeq r0!,{s16-s31}’ in Thumb mode
Studio\7.0\STARTER_KIT_DEMO1\STARTER_KIT_DEMO1\Debug{standard input}(480,1): error: instruction not allowed in IT block – `msr psp,r0’

rtel wrote on Monday, April 16, 2018:

If your MCU does not have a floating point unit then you need to build
the files from the ARM_CM3 directory rather than the CM4F directory -
otherwise it looks like the compiler’s command line is not correct
because the compiler does not think you have an FPU - update the command
line to specify the FPU option that is correct for your particular part.