Quality RTOS & Embedded Software

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


Loading

STM32F103RB goes to infinite loop while trying to prvPortStartFirstTask()

Posted by athrarvan on March 23, 2017

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!


STM32F103RB goes to infinite loop while trying to prvPortStartFirstTask()

Posted by rtel on March 23, 2017

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


STM32F103RB goes to infinite loop while trying to prvPortStartFirstTask()

Posted by athrarvan on March 24, 2017

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!


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner