Hi friends,
My application has two parts. Boot-loader and the main application.
I have flashed the boot-loader at the right place and it seems it is working.
Now I need to jump to my main application which is written at a specific location in the flash.
Any help on this regards is kindly appreciated.
Max
How to jump to main program from boot-loader?
Re: How to jump to main program from boot-loader?
Hi,
I did this on a C64 as follows. Say the entry point is 0xE0000000 (as defined in the MAP file)
On a header or at top of the source file:
At the beginning of source file:
At the end of boot code:
Hope this helps!
I did this on a C64 as follows. Say the entry point is 0xE0000000 (as defined in the MAP file)
On a header or at top of the source file:
Code: Select all
typedef void (*BootFn) ();
Code: Select all
BootFn bootFunction;
Code: Select all
// Assign pointer to application entry point
bootFunction = (BootFn) (0xE0000000);
// Pass execution to application
(*bootFunction)();