| Author |
Message |
Jos Brink
Joined: 28 Jan 2004 Posts: 68 Helped: 7
|
16 Jan 2006 16:09 avr ethernet bootloader |
|
|
|
|
Heya,
I've an AtMega128 connected to an Ethernet controller and now I want to update my software using a bootloader.
I have a few questions about this:
1) Using codevision, I can upload and program application and bootload section, But how can I switch between those 2 programs?
2) How can i use the SPM commands using C? or do i have to write the bootloader in ASM for that? Is it posible to flash my app code using C?
3) Are there libraries or extra help files for this. This whole bootload idea is a bit confusing for me. Because I've got to handle Ethernet frames I want to use C and not Asm. But simple SPM functions are no problem of course..
Does anyone have any experience with this?
Thnx alot.
Jos Brink!
|
|
| Back to top |
|
 |
Davood Amerion
Joined: 01 Mar 2005 Posts: 589 Helped: 90 Location: Persia
|
16 Jan 2006 19:44 codevision bootloader |
|
|
|
|
usualy at startup bootloader executed and see serial port,
if nothing came, switch to stored program, else control give to loader.
see atmel application note for boot loader or see
http://www.edaboard.com/viewtopic.php?t=148986&highlight=
Regards
Davood.
|
|
| Back to top |
|
 |
Google AdSense

|
16 Jan 2006 19:44 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Jos Brink
Joined: 28 Jan 2004 Posts: 68 Helped: 7
|
17 Jan 2006 9:55 bootloader avr ethernet |
|
|
|
|
I've checked Atmel.com and that forum, but it says nothing on how to do the job using C. I've seen one example, and that guy used an inline asm "JMP" instruction to get to the bootloader.
nothing on how to actualy reflash your application.
the basic idea is to hook multiple atmels on to ethernet and update their applications at the same time. So I've to handle the upload command in my main application. You could compare my idea with norton Ghost. Only i cant physicly reach my controllers, thus I have to trigger the upload command some way.
Maybe this info is a bit more clear.
Thanx for your help. but i need more. 
|
|
| Back to top |
|
 |