Author Topic: Because I am stoopid, if you used a -jumper version of micronucleus, update now!  (Read 12316 times)

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Emergency update for micronucleus 1.05 or 1.06 of -jumper version (normal timeout version is fine).


The bootloader mistakenly would set P5 to be an output pin instead of an input pin when deciding if it should enter bootloader mode or not. It then leaves it as an output pulled high until the bootloader exits! This creates a short circuit of about 80ma through the chip and your jumper wire or button, potentially damaging the AVR chip or it's power supply circuitry!


If anyone has had digisparks stop working while using these jumper firmwares, it is probably my fault. I suck. Sorry about that. All fixed now though!


The fix is in this file: https://github.com/Bluebie/micronucleus-t85/blob/master/upgrade/releases/micronucleus-1.06-jumper-v2-upgrade.hex


 :-[

DeuxVis

  • Full Member
  • ***
  • Posts: 107
Thanks for the notice, but I was dumber than you and fried the digispark which I had updated to that firmware version by giving main power to one of its pin - I had no idea my door bell button was delivering 220 AC when pushed, thought it was just a switch.

I'll make sure to get the last version when I get back on that project then.

dougal

  • Sr. Member
  • ****
  • Posts: 289
Thanks for the notice, but I was dumber than you and fried the digispark which I had updated to that firmware version by giving main power to one of its pin - I had no idea my door bell button was delivering 220 AC when pushed, thought it was just a switch.

I'll make sure to get the last version when I get back on that project then.


Heh. It's a good thing it didn't fry you while you were messing with it.  ;)

DeuxVis

  • Full Member
  • ***
  • Posts: 107
Well it was not possible for me to push the button and fiddle with the live end at the same time - too far away. But yeah got lucky no visitors came ringing while I was setting it up.


Back on the topic, sorry for the digression Bluebie : you should link your github to a flattr.com account, I think you deserve some materialisation of our gratitude.

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
I added that flattr thing. Curious.

peter

  • Newbie
  • *
  • Posts: 4
Hi bluebie, please can you describe how to compile firmware and command line tool under windows enviroment? I want try modify start bootloader only on external reset. Of course after reset fuse restore :)

Mark

  • Full Member
  • ***
  • Posts: 196
Peter
I put together this
http://digistump.com/board/index.php/topic,320.msg1778.html#msg1778

Maybe that answers your query.


mark

DeuxVis

  • Full Member
  • ***
  • Posts: 107
Hi bluebie, please can you describe how to compile firmware and command line tool under windows enviroment? I want try modify start bootloader only on external reset. Of course after reset fuse restore :)

Not tested myself but looks like you need avr-dude, avr-gcc and make (gnu version ?) command line tools in your path. Then I'd try to run the usual "make" command.


After a quick glance of the makefile, I'd say the build system hasn't been designed to run under windows, you'd have at least to modify the makefiles or use cygwin or something similar to provide the missing command line tools.
You'd probably get your startup easier on that project by using some unix environment, maybe a linux live CD if you don't want to install it.

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
I don't use windows. Maybe you can use one of those unix emulation layer things (cygwin? mingw?)

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
They all build in windows for me - using mingw

peter

  • Newbie
  • *
  • Posts: 4
yes, I have mingw but still I get missing files error. I dont know what else needed to compilation :-(

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
The mingw errors should be pointing you in the right direction - you are probably missing libusb - but perhaps easier:


Mingw would be for the command line tool - which you can also get for windows by downloading our IDE version and looking in the Arduino/Hardware/Tools/avr/bin folder and grabbing micronucleus.exe


For the firmware you need avrgcc to compile it or winavr which includes that.

DeuxVis

  • Full Member
  • ***
  • Posts: 107
Maybe that topic should be pinned, as it points to the latest version of the jumper firmware ?


gogol

  • Sr. Member
  • ****
  • Posts: 398
Maybe that topic should be pinned, as it points to the latest version of the jumper firmware ?

I think it would better to link the most recent (and some of the previos) versions in the wiki!  The wiki is from my point of view the much better place for information like this.


digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
I agree with gogol - I updated the tips and tricks page