Yahoo Groups archive

Lpc2000

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

Thread

Doubt regarding LPC

Doubt regarding LPC

2005-05-06 by balakumar chinuswamy

I have two Images of firmware in my controllers flash.

Initially i will boot the image_1 which will be at the 
default reset location.

In the middile of the Image_1(running) i have to boot the
Image_2 .

I have to boot the image_2 from the startup .

What can i do to jump from Image_1 to Image_2.

regards
Bala
 

[Non-text portions of this message have been removed]

Re: [lpc2000] Doubt regarding LPC

2005-05-06 by Michael Anburaj

Bala,

; for ADS or SDT
Image2Addr EQU 0x10000000    ; Put the execution
address of Image2 here

// for GCC
#define Image2Addr 0x10000000    // Put the execution
address of Image2 here

ldr r0,=Image2Addr
mov pc,r0                        ; no-return


This assumes that Image2 is linked for a particular
address (here 0x10000000)

Cheers,
-Mike.

--- balakumar  chinuswamy
<cbalakumarbe@...> wrote:
> 
> I have two Images of firmware in my controllers
> flash.
> 
> Initially i will boot the image_1 which will be at
> the 
> default reset location.
> 
> In the middile of the Image_1(running) i have to
> boot the
> Image_2 .
> 
> I have to boot the image_2 from the startup .
> 
> What can i do to jump from Image_1 to Image_2.
> 
> regards
> Bala
>  
> 
> [Non-text portions of this message have been
> removed]
> 
> 


		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

Re: Re: [lpc2000] Doubt regarding LPC

2005-05-07 by balakumar chinuswamy

Thank you MIKE ,

i will check and implement this and let you know the result .

regards
Bala

On Fri, 06 May 2005 Michael Anburaj wrote :
>Bala,
>; for ADS or SDT
>Image2Addr EQU 0x10000000    ; Put the execution
>address of Image2 here
>// for GCC
>#define Image2Addr 0x10000000    // Put the execution
>address of Image2 here
>ldr r0,=Image2Addr
>mov pc,r0                        ; no-return
>This assumes that Image2 is linked for a particular
>address (here 0x10000000)
>Cheers,
>-Mike.
>--- balakumar  chinuswamy
><cbalakumarbe@...> wrote:
>>
>> I have two Images of firmware in my controllers
>> flash.
>>
>> Initially i will boot the image_1 which will be at
>> the
>> default reset location.
>>
>> In the middile of the Image_1(running) i have to
>> boot the
>> Image_2 .
>>
>> I have to boot the image_2 from the startup .
>>
>> What can i do to jump from Image_1 to Image_2.
>>
>> regards
>> Bala
>> 
>>
>> [Non-text portions of this message have been
>> removed]
>>
>>
>           
>Yahoo! Mail
>Stay connected, organized, and protected. Take the tour:
>http://tour.mail.yahoo.com/mailtour.html
>Yahoo! Groups Links
>To visit your group on the web, go to:
>http://groups.yahoo.com/group/lpc2000/
> 
>
>To unsubscribe from this group, send an email to:
>lpc2000-unsubscribe@yahoogroups.com
> 
>
>Your use of Yahoo! Groups is subject to the
>Yahoo! Terms of Service
>.
>


[Non-text portions of this message have been removed]

Re: [lpc2000] Doubt regarding LPC

2005-05-07 by Jane Highland

> Balakumar,
>
> If you wanted a pure C solution...
>
> typedef void (*POINTER_TO_FUNCTION)(void); /* Pointer to function */
>
> POINTER_TO_FUNCTION ptf;
>
> ptf = (POINTER_TO_FUNCTION)* 0x1000000
> (*ptf)();     /* Run the code at the reset vector address */
>
Regards Jane
Show quoted textHide quoted text
> Jane
>
> balakumar chinuswamy wrote:
>
>>  
>> Thank you MIKE ,
>>
>> i will check and implement this and let you know the result .
>>
>> regards
>> Bala
>>
>> On Fri, 06 May 2005 Michael Anburaj wrote :
>> >Bala,
>> >; for ADS or SDT
>> >Image2Addr EQU 0x10000000    ; Put the execution
>> >address of Image2 here
>> >// for GCC
>> >#define Image2Addr 0x10000000    // Put the execution
>> >address of Image2 here
>> >ldr r0,=Image2Addr
>> >mov pc,r0                        ; no-return
>> >This assumes that Image2 is linked for a particular
>> >address (here 0x10000000)
>> >Cheers,
>> >-Mike.
>> >--- balakumar  chinuswamy
>> ><cbalakumarbe@...> wrote:
>> >>
>> >> I have two Images of firmware in my controllers
>> >> flash.
>> >>
>> >> Initially i will boot the image_1 which will be at
>> >> the
>> >> default reset location.
>> >>
>> >> In the middile of the Image_1(running) i have to
>> >> boot the
>> >> Image_2 .
>> >>
>> >> I have to boot the image_2 from the startup .
>> >>
>> >> What can i do to jump from Image_1 to Image_2.
>> >>
>> >> regards
>> >> Bala
>> >> 
>> >>
>> >> [Non-text portions of this message have been
>> >> removed]
>> >>
>> >>
>> >           
>> >Yahoo! Mail
>> >Stay connected, organized, and protected. Take the tour:
>> >http://tour.mail.yahoo.com/mailtour.html
>> >Yahoo! Groups Links
>> >To visit your group on the web, go to:
>> >http://groups.yahoo.com/group/lpc2000/
>> > 
>> >
>> >To unsubscribe from this group, send an email to:
>> >lpc2000-unsubscribe@yahoogroups.com
>> > 
>> >
>> >Your use of Yahoo! Groups is subject to the
>> >Yahoo! Terms of Service
>> >.
>> >
>>
>>
>> [Non-text portions of this message have been removed]
>>
>>
>> ------------------------------------------------------------------------
>> *Yahoo! Groups Links*
>>
>>     * To visit your group on the web, go to:
>>       http://groups.yahoo.com/group/lpc2000/
>>        
>>     * To unsubscribe from this group, send an email to:
>>       lpc2000-unsubscribe@yahoogroups.com
>>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>>        
>>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>>       Service <http://docs.yahoo.com/info/terms/>.
>>
>>
>>------------------------------------------------------------------------
>>
>>No virus found in this incoming message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 04/05/2005
>>  
>>
>

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.