FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [December 2010 Threads] 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|