0

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?

  • 1
    Is the firmware built to start in the bootloader section? Are the appropriate fuses set? – Ignacio Vazquez-Abrams Nov 26 '15 at 2:15
  • @IgnacioVazquez-Abrams um, I have no idea – serge1peshcoff Nov 26 '15 at 9:02
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.

  • Or use a second Arduino for this. – Gerben Nov 26 '15 at 10:05
  • 1
    Yes, but that's wasteful :) – Majenko Nov 26 '15 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.