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] [March 2017 Threads]
Dear Community,
I am using STM32F103RB and FreeRTOS v9.0.0. My IDE is SW4STM32 with Ac6 STM32 MCU GCC.
This is my first project with FreeRTOS in which I am trying to turn my LED on in vLEDTask to ensure that everything is correct. I have a problem in vTaskStartScheduler() in which after successful creation of the idle task microcontroller is trying to start first task and occured Default Handler and goes to infinite loop. The question is - what do I do wrong and how to fix it?
I added to the project FreeRTOSConfig.h from CORTEXSTM32F103Keil demo. I changed configCPUCLOCKHZ to 64000000 because it is my cpu clock rate.
This is a link to DropBox with the project and images which are showing my IDE during debugging the vTaskStartScheduler().
Thanks in Advance!
Sounds like you have not installed the FreeRTOS interrupt handlers. See
the "special note to ARM Cortex-M users" under the "The application I
created compiles, but does not run" FAQ on this page:
http://www.freertos.org/FAQHelp.html
Thanks for such a fast reply!
Indeed, I didn't have these three lines of code:
~~~
define vPortSVCHandler SVC_Handler
define xPortPendSVHandler PendSV_Handler
define xPortSysTickHandler SysTick_Handler
~~~
Now, everything is running well. Thanks a lot!
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.