AT90CAN128 Flash Write Problem

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
canBx
 
Posts: 3
Joined: Sun Feb 02, 2014 4:06 am

AT90CAN128 Flash Write Problem

Post by canBx »

Hardware: AT90CAN128 MCU on a Crumb128 board.
I am using avrdude with usbtiny in order to download a precompiled hex file into the flash memory. Unfortunately any write attempt results in the verification error:
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x1f800
0x21 != 0xff
avrdude: verification error; content mismatch

I do not have any problem connecting to the MCU, setting fuse bits, reading and writing to eeprom, but writing to flash always fails. Reading from flash works fine. Dumping the flash memory shows that no byte was ever written -- all of them are ff ...

Please help. I am very new in this and already spent few days trying to figure out what is wrong.

canBx
 
Posts: 3
Joined: Sun Feb 02, 2014 4:06 am

Re: AT90CAN128 Flash Write Problem

Post by canBx »

My hex file is the problem. It seems that the format supplied by chip45 people is not compatible with avrdude. I will need to contact them. I managed to write my data, but their file gets misinterpreted.

canBx
 
Posts: 3
Joined: Sun Feb 02, 2014 4:06 am

Re: AT90CAN128 Flash Write Problem

Post by canBx »

RESOLVED - the hex file was the problem. It seems the address were incorrect and nothing was written despite avrdude saying that it is writing something. Another application loaded perfectly and everything is okay now.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”