Forums

Executing firmware in upper flash sectors?

Started by Srdan Suka March 15, 2006
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
	

An Engineer's Guide to the LPC2100 Series

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

Is there some example of such "boot-manager"?

Thanks,

Srdan Suka
	
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@lpc2..., 42Bastian Schick <bastian42@...> wrote:
>
> 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
>