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
term.c
View File

@@ -283,6 +283,7 @@ int cmd_dump(int fd, struct avrpart * p, int argc, char * argv[])
return 0;
}
int cmd_write(int fd, struct avrpart * p, int argc, char * argv[])
{
char * e;
@@ -313,6 +314,12 @@ int cmd_write(int fd, struct avrpart * p, int argc, char * argv[])
return -1;
}
if (p->mem[memtype].banked) {
fprintf(stderr, "%s (write): sorry, interactive write of bank addressed "
"memory is not supported\n", progname);
return -1;
}
maxsize = p->mem[memtype].size;
addr = strtoul(argv[2], &e, 0);