STM32F407 Cortex M4 Keil porting

pabloxx wrote on Wednesday, May 09, 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,
Regards,

rtel wrote on Wednesday, May 09, 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

Regards.

pabloxx wrote on Wednesday, May 09, 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.