Hi,
I recently bought a Turnigy 9XR and immediately flashed it with OpenTX using a USBTinyISP and Companion9x. This all went very smoothly, but when I try to save a model configuration to the EEPROM of the radio, Companion9x/avrdude returns a verification error and the radio wants to format the EEPROM. When I inspect the EEPROM contents using avrdude in terminal mode (avrdude -t) and compare it to the file that has been written to the EEPROM (a raw binary file), the contents are completely different.
Let me say that I'm absolutely no stranger to AVR microcontrollers, I have two Arduino's which have never given me any issues and I've used AVRs in college too. I tried manually flashing the EEPROM using the avrdude executable directly, but that gives the same result.
I also tried configuring the model on the radio, reading the memory to Companion9x and write that file back to the transmitter unmodified. Still, the same result. Somehow the contents of the EEPROM is complete gibberish after flashing.
Does anyone know what I'm doing wrong? Because I am at a loss here.
I recently bought a Turnigy 9XR and immediately flashed it with OpenTX using a USBTinyISP and Companion9x. This all went very smoothly, but when I try to save a model configuration to the EEPROM of the radio, Companion9x/avrdude returns a verification error and the radio wants to format the EEPROM. When I inspect the EEPROM contents using avrdude in terminal mode (avrdude -t) and compare it to the file that has been written to the EEPROM (a raw binary file), the contents are completely different.
Let me say that I'm absolutely no stranger to AVR microcontrollers, I have two Arduino's which have never given me any issues and I've used AVRs in college too. I tried manually flashing the EEPROM using the avrdude executable directly, but that gives the same result.
I also tried configuring the model on the radio, reading the memory to Companion9x and write that file back to the transmitter unmodified. Still, the same result. Somehow the contents of the EEPROM is complete gibberish after flashing.
Does anyone know what I'm doing wrong? Because I am at a loss here.