ArminJo / micronucleus-firmware

Fork for the firmware / digispark part of the micronucleus repository
Other
80 stars 20 forks source link

[BUG] Device search time-out after upgrading Attiny85 with recommended settings #24

Closed ItsIgnacioPortal closed 12 months ago

ItsIgnacioPortal commented 2 years ago

Describe the bug Firstly, I ran a couple of test programs on an Attiny85, and they worked without problems. But after updating the bootloader using the Arduino GUI with this project, the Attiny85 doesn't seem to get recognized by Windows anymore, although the on-board LED turns on.

These are the settings I used to flash the upgrade: 2022-03-08 22_59_34-

To Reproduce Steps to reproduce the behavior:

  1. Set the bootloader upgrade settings according to the image
  2. Tools > Burn Bootloader
  3. Wait until the "Please plug in the device" message pops up
  4. Plug in Attiny85 via USB
  5. Wait until the process is finished
  6. Unplug Attiny85
  7. Wait 5 seconds
  8. Plug in Attiny85
  9. Wait 5 seconds //8.5 - realize that the previously flashed program is now gone
  10. Unplug the board
  11. Click the upload button on the Arduino IDE
  12. Wait until the "Please plug in the device" message pops up
  13. Plug in the board

Expected behavior That the program gets flashed into the Attiny85.

Used Hardware A regular Attiny85. connected to my laptop via USB.

Attempted Solutions

Desktop (please complete the following information):

Should I have selected 16.5 MHz - For V-USB (Instead of 16 MHz - No USB) before making the bootloader upgrade? How can I fix this? I'd really appreciate any clues you could give me

ItsIgnacioPortal commented 2 years ago

Update: Hindsight is 20/20, as usual. I re-flashed my Attiny85 using an Arduino Uno, avrdude, and ISP flashing. In case someone makes the same mistake I did: This ZIP contains everything needed to reflash the board with the stock bootloader: https://mega.nz/file/AhBUWZ6D#QzaX6eYttaiDf_pZmM4ep_-c48iKPguAWCM3mBXHruc

ArminJo commented 12 months ago

There may be problems with the timing of some USB controller. Try to use an USB hub or another port or another PC.