Re: small custom bootloader to start an app stored in flash

Edgar Grimberg <[email protected]> Tue, 21 Oct 2014 15:25:32 +0200
Newsgroups gmane.os.ecos.general
Message-ID <CAPrjMDApuaWUb6x8KNOut=YEoRCH3i21reQ3Hu7MPi0AO_SLDQ@mail.gmail.com>
>
> 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