Quality RTOS & Embedded Software

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


My FreeRtos crashes when called from bootload

Posted by baranov on November 9, 2010
I have FreeRtos running on ETT STM32F103 evaluation board, which has STM32F103RBT6 microcontroller. I debug it with IAR Jlink in IAR541 environment. My application starts at ROM address 0x8003000. Being downloaded and run from debugger it works stable for many days.
I wrote a very simple loaders, only executes jump to application. Basic part of it is:

static bool jump_to( unsigned char* dest )
void (*prog_start)(void);

if (( *(unsigned long*)dest & 0x3FFF8000 ) == 0x20000000 ) // looks like a stack pointer?
prog_start = (void(*)(void))*(unsigned long*)(dest + 4); // load program start address
__MSR_MSP( *(unsigned long*)dest ); // load user stack
prog_start(); // now jump
return ( false );

where dest is 0x8003000.
I download FreeRtos program, after that - dowload loader and start it. The FreeRtos program runs up to Scheduler and crashes. If I enable Watchdog it restarts all t he time. Unfortunately I cannot break the program there using JTAG. I can assume that it gets into HardFaultException

If instead of FreeRtos application I use some simple LED blinking program everything works perfectly. Could somebody give a clue?

RE: My FreeRtos crashes when called from bootload

Posted by baranov on November 10, 2010
well, it works now. I deleted "__disable_interrupt(); "

[ 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.

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.


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


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