Quality RTOS & Embedded Software

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


STM32F407 Cortex M4 Keil porting

Posted by Dario on May 9, 2012
Hello everybody,

Quick question ... I have to use FreeRTOS on a Cortex-M4 STM32f407ZG processor and the Keil compiler. Could somebody tell me which startup file .S I have to use for Keil? I checked one of the demos for IAR but it looks tailored for IAR only.
Thanks for any help in advance,

RE: STM32F407 Cortex M4 Keil porting

Posted by Richard on May 9, 2012
Create a new project in Keil that targets the hardware you want to use. Then copy the start up files and linker script settings from that. You will have to populate the vector table with the FreeRTOS interrupt handlers, or add the following lines to FreeRTOSConifg.h (if they are not already there).

#define vPortSVCHandler SVC_Handler
#define xPortPendSVHandler PendSV_Handler
#define xPortSysTickHandler SysTick_Handler


RE: STM32F407 Cortex M4 Keil porting

Posted by Dario on May 9, 2012
I really appreciate your help. I love this OS but I am missing some details about porting and setting this particular files. Actually I checked the demo CORTEX_M4F_STM32F407ZG-SK which is for the exactly the same board I use, but Keil as compiler this time. I will try to set it as you mentioned and get back to you in case I can not make it works.
For the time being, thanks.

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

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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

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

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


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





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