Quality RTOS & Embedded Software

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




Loading

FreeRTOSConfig.h + STM32L

Posted by Anuradha on November 30, 2010
Hello all,

Is anybody aware of the changes that need to be done in "FreeRTOSConfig.h" in order for it to be coupled with STM32L?
configKERNEL_INTERRUPT_PRIORITY,configMAX_SYSCALL_INTERRUPT_PRIORITY ??

Also, the priority used by the idle task is it 15 ????


RE: FreeRTOSConfig.h + STM32L

Posted by Dave on November 30, 2010
I assume the number of interrupt priorities implemented on the STM32L is the same as all the other STM32 parts, in which case just copy the configKERNEL_INTERRUPT_PRIORITY and configMAX_SYSCALL_INTERRUPT_PRIORITY settings from FreeRTOS STM32 demo setting.

I don't think the idle task priority is 15 ever. It is set in the portable layer as 0. Why do you think it is 15?

RE: FreeRTOSConfig.h + STM32L

Posted by Richard Damon on November 30, 2010
Idle is always priority 0, the Tic interrupt would be 15 for that port as I believe that is one of the parts that uses big numbers for low interrupt priority.

RE: FreeRTOSConfig.h + STM32L

Posted by Anuradha on December 1, 2010
“I don't think the idle task priority is 15 ever. It is set in the portable layer as 0. Why do you think it is 15? ”


Because on the FreeRTOS online manual it is mentioned
"on the STM32 the lowest priority you can specify in an ST driver library call is in fact 15 - and the highest priority you can specify is 0. "

RE: FreeRTOSConfig.h + STM32L

Posted by Anuradha on December 1, 2010
hello,

Further is anybody aware of relevant changes needed to be done to vTaskStartScheduler() function called in the main.c when changing port from STM32F to STM32L?

Thanks.

RE: FreeRTOSConfig.h + STM32L

Posted by Richard Damon on December 1, 2010
The ST Driver library deals with HARDWARE INTERRUPT LEVELS, not task priorities, these are very different.

The only changes that should be needed would be to files in the portable directory tree. vTaskStartScheduler is not there. The functions that might need changing all have port at beginning of the name.

RE: FreeRTOSConfig.h + STM32L

Posted by Anuradha on December 2, 2010
Hello Richard,
As I noticed the exception occurs within the vPortStartFirstTask() which will be called within the vTaskStartScheduler ().

Any suggsetions on changing vPortStartFirstTask() of STM32F library to STM32L?


[ 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