Quality RTOS & Embedded Software

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




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) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists