Hi everyone,
I would like to have more than one firmware
on LPC2103 (each firmware in one sector).
Is it possible to do such thing?
How to execute ie. firmware in 3rd sector?
Is there some example?
Thanks,
Srdan Suka
Hi
> Is it possible to do such thing?
> How to execute ie. firmware in 3rd sector?
Sure.
> Is there some example?
You will have to write a boot-manager read e.g. an I/O pin and than jump
to the second or 3rd sector.
--
42Bastian
Srdan Suka schrieb:
> Is there some example of such "boot-manager"?
Not that I know of.
main()
{
if ( testIO() ){
asm(" bl 0x2000");
} else {
asm(" bl 0x4000");
}
}
Just add the correct startup code and write testIO.
--
42Bastian
Thanks, it would be enough to start :)
--- In lpc2000@yahoogroups.com, 42Bastian Schick <bastian42@...> wrote:
Show quoted textHide quoted text
>
> Srdan Suka schrieb:
> > Is there some example of such "boot-manager"?
>
> Not that I know of.
>
> main()
> {
> if ( testIO() ){
> asm(" bl 0x2000");
> } else {
> asm(" bl 0x4000");
> }
> }
>
> Just add the correct startup code and write testIO.
>
> --
> 42Bastian
>