mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 23:15:27 +00:00
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:
7
term.c
7
term.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user