Trel725 / chavrprog

AVR programmer based on Chinese ch341a
GNU General Public License v3.0
58 stars 19 forks source link

what config for ATmega1284P? #10

Closed JPT77 closed 4 years ago

JPT77 commented 4 years ago

Hi, what config do I need for the 1284P? thanks

btw, for the 1284 I think RESET goes to pin 5 SS not CS?

The ATmega1284P provides the following features: 128K bytes of In-System ProgrammableFlash (64 x 16) with Read-While-Write capabilities, 4K bytes EEPROM... do I write the EEPROM or the flash using SPI?

JPT77 commented 4 years ago

is this the correct code? I derived it from avrdude:

  {"mega1284p",
  {0x1E, 0x97, 0x06},
  256,
  512,
  4096},

btw, the 1284 got more than 64K flash, this seems to be a problem with many programmers. Will it work with chavrprog?

JPT77 commented 4 years ago

Compiles with warning, but does not work.

$ ./chavrprog -d mega1284p -r f TESTFILE
Device reported its revision [4.03]
No answer, sorry
Exiting...

Since I simply do not have enough knowledge i give up. Maybe it helps someone else.

Trel725 commented 4 years ago

Hello, your configuration seems OK, but unfortunately chavrprog does not support chips with more than 64K of flash. Such devices have slightly other system of commands for flashing, so adding support require a fair amount of extra work. No answer is almost certainly a wiring problem. Anyway, thank you for the report. Feel free to re-open issue if you have more comments.