Author Topic: Corrupted Bootloader. Please Help!  (Read 13913 times)

Cosmos

  • Newbie
  • *
  • Posts: 5
Corrupted Bootloader. Please Help!
« on: April 13, 2018, 05:59:12 pm »
I somehow corrupted the bootloader on my Digispark Pro. I'm trying to reinstall it using the arduino uno ISP using this guide: http://digistump.com/wiki/digispark/tutorials/proisp and this one: https://digistump.com/board/index.php?topic=1920.0

I followed the steps, but when I try the command in terminal, I get this error:

avrdude -p attiny167 -c arduino -P /dev/cu.usbmodem1451 -b 1000000 -U flash:w:ProBootloaderR2.hex:i
avrdude: ser_setspeed(): tcsetattr() failed
avrdude: ser_open(): can't set attributes for device "/dev/cu.usbmodem1451": Invalid argument
ioctl("TIOCMGET"): Bad file descriptor
avrdude: ser_close(): can't reset attributes for device: Bad file descriptor

avrdude done.  Thank you.


I'm using a Mac on High Sierra. Any help would be greatly appreciated. My project is due very soon, so I'd like to get this up and running asap. Thank you!

Cosmos

  • Newbie
  • *
  • Posts: 5
Re: Corrupted Bootloader. Please Help!
« Reply #1 on: April 14, 2018, 12:07:29 am »
A quick update. I tried reflashing the bootloader again, but this time from windows (via bootcamp) and it did so successfully. So I’m assuming there’s an issue with using that /dev/... thing as the port name for Macs.

pawanverma

  • Newbie
  • *
  • Posts: 1
Re: Corrupted Bootloader. Please Help!
« Reply #2 on: September 23, 2019, 12:08:21 am »
Provide more detail, it's not clear

Shaker

  • Newbie
  • *
  • Posts: 23
Re: Corrupted Bootloader. Please Help!
« Reply #3 on: June 18, 2020, 10:57:49 am »
If I'm allowed to add something here...

I want to try exactly this, but with an Adruino DUE, that AFAIK works with 3,3V on each of its pins. Can I still reflash the bootloader of a Digispark Pro with an Adruino DUE?