i have a really strange problem with my 9X and flashing with a USB-ASP. The device is this one:
http://slackworld.org/blog/wp-content/u ... lcsoft.jpg
I use a FrSky module in the 9X and i have modified the 9X with the "no RS232"-Telemetry-Hack described here:
http://www.rcgroups.com/forums/showthread.php?t=1510047
If i understand correctly, this relocates the switches routed to MOSI/MISO to the unused pins at the top of the AVR and cuts the MOSI/MISO traces. Then, the back-PCBs traces for 2 unused pins at the module-connector are cut, and those pins are routed to the MOSI/MISO at the AVR. The modification inside the FrSky-Module don't interest here, since my problem arises with module removed or installed alike.
I have also applied the speaker mod, this: http://openrcforums.com/wiki/index.php/Speaker_Mod with a relatively small non-selfdriven piezo speaker. I hope that i can also rule this one out, as its on the front-board which is not disconnected during the successful flashing attempts. The mod itself, i believe, bypasses the transistors driving the original speaker and simply connects the signal-driven (instead of voltage-driven) piezo together with a dc-blocking cap directly to the related AVR pin? Is this right? So anyways, if its not drawing excessive current beyond usb supply abilities, it shouldn't pose a problem, right?
The problem i am experiencing is that i can flash the 9x with my USB-ASP without any problem with the back cover removed electrically (by means of pulling that large plug) and mechanically, so that the GND-connector-spring doesn't have any contact. If i install the back either mechanically (connect GND only by spring) or electrically or both, flashing fails with:
Code: Select all
=================================================================================
Started AVRDUDE
/usr/bin/avrdude -c usbasp -p m64 -U eeprom:r:/tmp/temp.hex:i
=================================================================================
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
=================================================================================
AVRDUDE done - exit code 1
=================================================================================
- VCC-To-Target on 5V
- No VCC-To-Target and transmitter turned on on battery
- VCC-To-Target + Battery
- RST-Line tantalum capacitor removed and installed
and all of them fail with the same error. I can hear the TX beeping (at reset-time) upon starting to flash, and a 2nd time when the error shows up. From this i conclude that pulling reset somehow did work? (i hope...?).
I'd be really grateful for any hints on what to try, and what i could do to debug this...
Thanks in advance! And best Regards!
-Dario Ernst