[ECOS] small custom bootloader to start an app stored in flash
Edgar Grimberg
edgar.grimberg@gmail.com
Tue Oct 21 13:25:00 GMT 2014
>
> Any ideas how to make a jump to start an app? May be some sample code
> showing how to do it in eCos? May be someone has done it already?
// Make a function pointer and assigned it to the address you want to jump to.
void (*startApp1)(void) = 0x08002000 ;
// Disable the interrupts.
cyg_interrupt_disable();
//Call the function.
startApp1();
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list