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

vPortStartFirstTask() for STM32L + FreeRTOS

Posted by Anuradha on December 2, 2010
Hello all,

I have changed the FreeRTOS demo for STM32F103 in order to work with STM32L. This is my main.c.
int main()
{

prvSetupHardware();

xTaskCreate(vLEDTask,( signed char * )"LED1",configMINIMAL_STACK_SIZE, NULL,mainFLASH_TASK_PRIORITY,(xTaskHandle*) NULL );
xTaskCreate(vLEDTask2,( signed char * )"LED2",configMINIMAL_STACK_SIZE, NULL,(mainFLASH_TASK_PRIORITY+1),(xTaskHandle*) NULL );

/* Start the scheduler. */
vTaskStartScheduler();


return 0;
}


Hard Fault exception occurs within the vTaskStartScheduler(); function.

As I noticed by the step running the exception occurs after the vPortStartFirstTask on portasm.s.

Have anybody any idea on how to configure this function so that the scheduler will start the first task?

Thank you.

RE: vPortStartFirstTask() for STM32L + FreeRTOS

Posted by STF12 on December 2, 2010
Hi,
have you checked the name of the exception handler used by FreeRTOS?
- SVC_Handler (vPortSVCHandler)
- PendSV_Handler (xPortPendSVHandler)
- SysTick_Handler (xPortSysTickHandler)

Are the same defined in the vector table?

Regards,
Stefano

RE: vPortStartFirstTask() for STM32L + FreeRTOS

Posted by Anuradha on December 2, 2010
Hello, Further to previous post,

I want to know how to change the "Constants required to manipulate the NVIC" defined in the port.c.
Should they be same for all ARM CM3 ports????

RE: vPortStartFirstTask() for STM32L + FreeRTOS

Posted by Dave on December 2, 2010
“Should they be same for all ARM CM3 ports????”


I think that has been answered already, and the answer is Yes.

Please keep your related posts in a single thread.

RE: vPortStartFirstTask() for STM32L + FreeRTOS

Posted by Anuradha on December 2, 2010
Thanks STF12

it worked :D

RE: vPortStartFirstTask() for STM32L + FreeRTOS

Posted by Anuradha on December 7, 2010
Hello,
In the "CORTEX_STM32F103_IAR" FreeRTOS port the vector table is defined in stm32f10x_nvic.c.
Is there a special reason for using that file instead of using the provided startup files (startup_stm32f10x_cl.s etc) ?

Thank you.


[ 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