2.02: Can't write eeprom

A fork of eePe. It's aim is to provide one tool that works with ALL firmwares!
Post Reply
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

2.02: Can't write eeprom

Post by sgofferj »

When I try to write an eeprom I get:

Code: Select all

=================================================================================
Started AVRDUDE
/usr/bin/avrdude -c usbasp -p m64 -B 10 -U eeprom:w:/tmp/temp.bin:r
=================================================================================
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x000102
avrdude: Expected signature for ATMEGA64 is 1E 96 02
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.


=================================================================================
AVRDUDE done - exit code 1
=================================================================================
Reading works fine, firmware flashing (including backing up and rewriting eeprom) works fine.
TX: 9x with Smartieparts board.

I actually captured the output from the firmware flash and it's

Code: Select all

=================================================================================
Started AVRDUDE
/usr/bin/avrdude -c usbasp -p m64 -B 10 -U flash:w:/tmp/flash.hex:i
=================================================================================

avrdude: set SCK frequency to 93750 Hz
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9602
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: set SCK frequency to 93750 Hz
avrdude: reading input file "/tmp/flash.hex"
avrdude: writing flash (50518 bytes):

ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: 2.02: Can't write eeprom

Post by ReSt »

Try if it makes a difference when you switch the throttle switch up or down.
I have two radios, with voice mod and M128 processor, that give an 000102 error when I try to flash with throttle switch up

Reinhard
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: 2.02: Can't write eeprom

Post by sgofferj »

Nope, no change. As writing back the EEPROM backup on FW update works, I suppose, there's some bug in 2.02...
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: 2.02: Can't write eeprom

Post by MikeB »

What version of AvrDude are you using?
There seems to be something odd, AvrDude sets the SCK correctly (-B 10) for the flash, but is NOT setting it (or not saying it is) when accessing the EEPROM.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: 2.02: Can't write eeprom

Post by sgofferj »

Using 5.11.1. I finally got the "old" c9x compiled and with that, it works - with the same AVRDude. I didn't look into the code but could it be that there is a typo and AVRDude is actually called with different parameters than c9X2 claims?

Post Reply

Return to “companion9x”