FreeRTOS Demo for the ST STM32L152

I downloaded the FreeRTOS v8.0.0 and trying to get the FreeRTOS Demo for the ST STM32L152 to work using IAR Embedded Workbench for ARM version 7.10.1. The Demo instruction page says it uses IAR v6.10 so is it not compatible with the newer version? Currently when i run the demo it never goes to the first task and vPortStartFirstTask() hangs i think at the call svc 0. Also, gives the the following warning when downloading and debugging Skipping flash loading pass because there is no data in the designated range: 0x8080000-0x8080FFF. This is the original project and i haven’t changed anything so i would expect it to work fine. Any ideas? Thanks, Mayank

FreeRTOS Demo for the ST STM32L152

There are two such demos – which one are you trying to use? I just tried the newer of the two, which is the one documented on this page: http://www.freertos.org/STM32L-discovery-low-power-tickless-RTOS-demo.html using IAR 7.10.? (don’t know the ?). I got a warning for each interrupt handler along the lines of… Warning[25]: Label ‘ResetHandler’ is defined pubweak in a section implicitly declared root C:temp800FreeRTOSV8.0.0FreeRTOSDemoCORTEXSTM32L152DiscoveryIARSystemstartupstm32l1xxmd.s 133 Warning[25]: Label ‘NMIHandler’ is defined pubweak in a section implicitly declared root C:temp800FreeRTOSV8.0.0FreeRTOSDemoCORTEXSTM32L152DiscoveryIARSystemstartupstm32l1xxmd.s 141 Warning[25]: Label ‘HardFault_Handler’ is defined pubweak in a section implicitly declared root etc. …but the code built and is executing as expected. Regards.

FreeRTOS Demo for the ST STM32L152

Just tried this one too: http://www.freertos.org/Free-RTOS-for-Cortex-M3-STM32-STM32L152-EVAL.htm Although I’m running it on the wrong hardware so had to strip out the LCD stuff, it appears to be running ok. Regards.

FreeRTOS Demo for the ST STM32L152

I was trying the CORTEXSTM32L152IAR on the STM32152-EVAL board and that’s the one that was giving me issues. After reading your post, I tried the CORTEXSTM32L152Discovery_IAR and this one seems to work fine. I was even able to add my own tasks to print something onto the serial port. So, i am not sure what’s up with the other one. I don’t have the LCD on the board and i tried to strip all the LCD code but it seems like it’s not even going to the first task. It would just hang at vPortStartFirstTask() For now i will just look at the Discovery example since it’s working fine for me and will go on from there. Thanks for your help, Mayank