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 ]    [ Sitemap ]    [ ]

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

Latest News

Meet us at Embedded World. Hall 3A-525.

Hear from Richard Barry at Embedded World. Feb 28, 16:00, Hall 4-428.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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