Quality RTOS & Embedded Software

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




Loading

FreeRTOS Demo for the ST STM32L152

Posted by mayank15 on March 20, 2014

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

Posted by rtel on March 20, 2014

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

Posted by rtel on March 20, 2014

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

Posted by mayank15 on March 20, 2014

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


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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