cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS Port for STM32L + IAR

nanayakkaraan
Associate II
Posted on November 26, 2010 at 13:11

FreeRTOS Port for STM32L + IAR

5 REPLIES 5
amin23
Associate II
Posted on May 17, 2011 at 14:16

Hi ANN,

- Download FreeRTOSV6.1.0

http://sourceforge.net/projects/freertos/

- There is an example under

FreeRTOSV6.0.4\FreeRTOS\Demo\CORTEX_STM32F103_IAR

nanayakkaraan
Associate II
Posted on May 17, 2011 at 14:16

AMSN,

Thanks for replying.

I have seen the demo you are talking about. But it is for STM32F and that demo board.

I am looking for STM32L :)

amin23
Associate II
Posted on May 17, 2011 at 14:16

ANN,

1- Fill the FreeRTOSSource folder with the FreeRTOS specific files you will need.There should be also a copy of Port.c, Portmacro.c and the heap_n.c files. Port.c and Portmacro.c can be found at \ \FreeRTOSV6.1.0\Source\portable\IAR\ARM_CM3. The MemMang folder which can also be found at \FreeRTOSV6.1.0\Source\portable\MemMang holds heap_1.c, heap_2.c and heap_3.c.

2- Replace SVCHandler, PendSVHandler and the SysTickHandler in the startup file with the FreeRTOS specific handlers:

SVCHandler

    

-> vPortSVCHandler

   

PendSVHandler

 

-> xPortPendSVHandler

           

SysTickHandler -> xPortSysTickHandler

3- check the CPU Clock in FreeRTOSConfig.h

4-

for more information

look at readme.txt files

nanayakkaraan
Associate II
Posted on May 17, 2011 at 14:16

Thanks AMSN

gdiez
Associate II
Posted on May 17, 2011 at 14:16

Hi ann:

I´ve done a doc to explain to develop FreeRTOS in STM32f107vc microcontroller. This doc is in spanish but it´s so many pictures to understand it.

http://www.ucontrol.com.ar/forosmf/arm/freertos-o-mi-primer-so-en-un-micro/