This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: small custom bootloader to start an app stored in flash
- From: Edgar Grimberg <edgar dot grimberg at gmail dot com>
- To: eCos Discussion <ecos-discuss at sourceware dot org>
- Date: Tue, 21 Oct 2014 15:25:32 +0200
- Subject: Re: small custom bootloader to start an app stored in flash
- Authentication-results: sourceware.org; auth=none
- References: <544618E5 dot 90101 at unicore dot co dot ua>
>
> 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