Reloading the PPM encoder - without an stk500?

Would anyone have the command line that could be used with avrdude to reload the PPM encoder?  I've got an adafruit usbtiny programmer and avrdude, but I'm not sure of the command line version... I think I've decoded the fuse bytes, etc from the original stk500.exe command line and come up with what I think could be used, but I really don't want to brink the chip making a mistake.

Here is the original stk500.exe line

"C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe" -cUSB -dATmega328P -fDFFF -EFE -FDFFF -GFE -e -iffirmware.hex -pf -lCF -LCF


And what I think will work, but need to verify

avrdude -c usbtiny -p m328p -U lock:w:0xFF:m
avrdude -c usbtiny -p m328p -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0xFE:m
avrdude -c usbtiny -p m328p -U flash:w:firmware.hex
avrdude -c usbtiny -p m328p -U lock:w:0xCF:m

Any help appreciated.
Alan

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi Adam, many months have passed and I require to be able to reflash the PPM Encoder/Decoder too. Same usbtiny device... Have you had any luck with your fuse settings? I flash it with the latest firmware but haven't set any fuses at all...

    avrdude -c usbtiny -p m328p -U flash:w:firmware.hex was all I did and it still doesn't work correctly with my Fr-Sky receiver, but it does work on my Futaba receiver.

     

    Regards

  • ya, that's where I got the stk500 command line, I don't have the AVRISP however instead I have a couple of other programmers and was just hoping that someone might have tried this using AVRDUDE instead of stk500.exe

    Alan
  • Admin
    Alan,

    Take a look at the batch file screen shots here: http://code.google.com/p/ardupilot-mega/wiki/AVRStudio

    Regards,
    TCIII
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…