Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

STM32F4 + GCC compilation problems

Posted by Benjamin on December 8, 2012
Hi,

I just got the STM32F4 discovery board and I wanted to try it out. I started with some led blinking and everything was working fine so I tried to compile a FreeRTOS project and I have some errors about not allowed instructions...

I'm using Yagarto with Eclipse on OS X. These are the errors I get :

instruction not allowed in IT block -- `msr psp,r0'
instruction not allowed in IT block -- `stmdb r0!,{r4-r11,r14}'
selected processor does not support Thumb mode `vldmiaeq r0!,{s16-s31}'
selected processor does not support Thumb mode `vstmdbeq r0!,{s16-s31}'



my compiler flags : -c -mthumb -mcpu=cortex-m4
my linker flags : -T "../stm32_flash.ld" -mthumb -mcpu=cortex-m4 -Wl,-Map=linker.map -Wl,-cref -Wl,--gc-sections
my assembler flags : -mthumb -mcpu=cortex-m4 -g -Wa,--warn -x assembler-with-cpp

Does anyone have an idea to get rid of these errors?


RE: STM32F4 + GCC compilation problems

Posted by Dave on December 8, 2012
These would be a typical set of options (assuming FPU is present and being used) for a new ARM GCC build. I don't know which version Yagarto uses

-c -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu90 -O0 -ffunction-sections -fdata-sections -g -Wall


RE: STM32F4 + GCC compilation problems

Posted by Benjamin on December 9, 2012
Thanks, that's working great with these flags!


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner