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] [November 2010 Threads]
Hello.
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?
{
__disable_interrupt();
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?
well, it works now. I deleted "__disable_interrupt(); "
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.