1

I am using HIDUINO as my firmware (flashing via dfu-programmer), and to upload sketch I need to re-flash original firmware, upload sketch and then flash HIDUINO again.

Is there a way to flash sketches without reflashing original firmware?

asked Nov 26, 2015 at 0:03
2
  • 1
    Is the firmware built to start in the bootloader section? Are the appropriate fuses set? Commented Nov 26, 2015 at 2:15
  • @IgnacioVazquez-Abrams um, I have no idea Commented Nov 26, 2015 at 9:02

1 Answer 1

1

I assume you mean you are reprogramming the USB interface chip, which means you no longer have a UART pathway through to the ATMega328P. If so then yes, you can provide your own USB interface in parallel by connecting an FT232 (or similar) breakout board direct to the ATMega328P chip just like you would on a breadboard Arduino:

enter image description here

  • FTDI TX -> Arduino RX (Yellow)
  • FTDI RX -> Arduino TX (Blue)
  • FTDI DTR -> 100nF Capacitor -> Arduino RESET (Green)
  • FTDI GND -> Arduino GND (Black)

The capacitor is required with later versions of avrdude and newer versions of the Arduino IDE since the DTR signal is now held LOW rather than being pulsed as it used to be. This is to combat a change in the FTDI drivers that meant that the DTR stopped being driven at all and broke the auto-reset facility. So now we need a capacitor to convert a constant LOW into a short low-going pulse to initiate a reset without locking it all up.

answered Nov 26, 2015 at 10:04
2
  • Or use a second Arduino for this. Commented Nov 26, 2015 at 10:05
  • 1
    Yes, but that's wasteful :) Commented Nov 26, 2015 at 10:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.