Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Executing firmware in upper flash sectors?

Executing firmware in upper flash sectors?

2006-03-15 by Srdan Suka

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

Re: [lpc2000] Executing firmware in upper flash sectors?

2006-03-15 by 42Bastian Schick

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

Re: [lpc2000] Re: Executing firmware in upper flash sectors?

2006-03-15 by 42Bastian Schick

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

Re: Executing firmware in upper flash sectors?

2006-03-15 by Srdan Suka

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
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.