Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Programming Flash without Erase the flash first in WinAVR [RSS Feed]

#1 Oct. 27, 2005 04:43:45

Andi S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Programming Flash without Erase the flash first in WinAVR


Anyone know hot to Program Flash witout Erase the flash first in WinAVR ?
Since I have to program 2 different .hex file to the chip. First for
application, second for the bootloader


regards

andi



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Oct. 27, 2005 06:07:40

Joerg W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Programming Flash without Erase the flash first in WinAVR


(Please make a new thread for a new topic. Thanks.)

"Andi Suhandi" <> wrote:

> Anyone know hot to Program Flash witout Erase the flash first in
> WinAVR ? Since I have to program 2 different .hex file to the
> chip. First for application, second for the bootloader

When using avrdude, either use two -U flash:w:... options in the
same command, or specify -D in the second command; that will
suppress the chip erase.

Or use the bootloader to program the application. ;-)
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 Oct. 27, 2005 20:34:22

Brian D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Programming Flash without Erase the flash first in WinAVR


On Thu, Oct 27, 2005 at 07:06:52AM +0200, Joerg Wunsch wrote:

> When using avrdude, either use two -U flash:w:... options in the
> same command, or specify -D in the second command; that will
> suppress the chip erase.

Also, using a second -U for the other one should work as well, i.e.:

avrdude ... -V -U flash:w:application.hex -U flash:w:bootloader.hex

-Brian
--
Brian Dean
ATmega128 based MAVRIC controllershttp://www.bdmicro.com/_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Programming Flash without Erase the flash first in WinAVR [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support