electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Bootloader and Codevision AVR. (isp using Ethernet)


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Bootloader and Codevision AVR. (isp using Ethernet)
Author Message
Jos Brink



Joined: 28 Jan 2004
Posts: 68
Helped: 7


Post16 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


Post16 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
Google Adsense




Post16 Jan 2006 19:44   

Ads




Back to top
Jos Brink



Joined: 28 Jan 2004
Posts: 68
Helped: 7


Post17 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. WinkVery Happy
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Bootloader and Codevision AVR. (isp using Ethernet)
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
[hlp] UART using AVR CodeVision (3)
where is PIC ISP(simple ISP - like AVR ISP). (1)
Using BootLoader on AVR Mega128 (1)
AVR ISP and AVR ADC (2)
PS2 keyboard drive with AVR and codevision (2)
AVR and 8051 ISP programmer (7)
BEST AND EASY ISP FOR AVR and PIC (1)
codevision AVR I2C?? (4)
CODEVISION AVR source code??? (4)
FAT on Mega16/AVR with codevision (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS