본문 바로가기

카테고리 없음

Serial Bootloader Avr

AvrSerial bootloader avr download

Avrdude Serial Bootloader

Hello, I have the following so far:ATmega128AVR Studio 4 (Updated Also)PonyProgMicrochip 25LC320AWhat I am trying to do is make a bootloader to check the eeprom for updates and then download it to the AVR and program the update. I have two different projects files for both the Application Program and the Bootloader program. I can't seem to get the bootloader in the bootloader section and it keeps programming it in the application section. I think I did setup the memory setting correctly in order to get it in the bootloader. I went to the memory settings and added the following:Memory Type: FlashName:.bootloaderAddress: 0xfe00and then program the.hex file using the PonyProg and it don't seem to write it in the address above. I also set the bits on the AVRs to:BOOTRST = 1BOOTSZ0 = 1BOOTSZ1 = 1Still no luck.

Serial

Do anyone have something like this that works? How are you going to 'load' the code into the external serial EEPROM?If you just stuff hex file bytes, then it will be larger by more than 2X than the executing code and you will have to compare code bytes in your 'host' against ASCII hex in the EEPROM. That would be messy.Otherwise, you will have to have something smart that converts hex code into executable code and stuffs it down the serial pipe into the EEPROM. That is not hard but its not trivial either.Sounds like a rough thing to pull off, either way.Jim.