First cut at supporting the ATmega 103 which uses bank addressing and

has a 128K flash.

Due to the bank addressing required, interactive update of the flash
is not supported, though the eeprom can be updated interactively.
Both memories can be programmed via non-interactive mode.

Intel Hex Record type '04' is now generated as required for outputing
memory contents that go beyond 64K.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@78 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2001-10-14 02:53:21 +00:00
parent f73b0f9eba
commit 3bae0d8d14
5 changed files with 119 additions and 28 deletions

7
avr.h
View File

@@ -110,12 +110,15 @@ unsigned char avr_txrx(int fd, unsigned char byte);
int avr_cmd(int fd, unsigned char cmd[4], unsigned char res[4]);
unsigned char avr_read_byte(int fd, struct avrpart * p,
int memtype, unsigned short addr);
int memtype, unsigned long addr);
int avr_read(int fd, struct avrpart * p, int memtype);
int avr_write_bank(int fd, struct avrpart * p, int memtype,
unsigned short bank);
int avr_write_byte(int fd, struct avrpart * p, int memtype,
unsigned short addr, unsigned char data);
unsigned long addr, unsigned char data);
int avr_write(int fd, struct avrpart * p, int memtype, int size);