Author Topic: Digispark Pro not running program after unplugging and plugging back in  (Read 7291 times)

mes

  • Newbie
  • *
  • Posts: 9
I have found that my digispark pro does not retain it's program when I unplug the usb cable. For example, I upload a program to it, the program works, I unplug it, and when I plug the usb back in the program is not working (LED blink). Is this the way the digispark pro is supposed to work? Thanks.
« Last Edit: October 14, 2014, 05:09:25 pm by mes »

mes

  • Newbie
  • *
  • Posts: 9
Re: Digispark Pro not running program after unplugging and plugging back in
« Reply #1 on: October 14, 2014, 05:06:50 pm »
I have done some searching here and on the micronucleus github site and now I wonder if I have misdiagnosed the problem. I wonder if the bootloader is not running the user program.
« Last Edit: October 14, 2014, 05:09:49 pm by mes »

mes

  • Newbie
  • *
  • Posts: 9
Re: Resolved (sort of) Digispark Pro not running program
« Reply #2 on: October 18, 2014, 02:58:32 pm »
I had tried powering the Digispark Pro from the computer I was working on and a usb charger. On both, it refused to run the program. So I thought I would try it on a Windows computer. To my surprise it worked with the program already loaded. So I tried various other devices with usb ports. An Amazon Kindle charger is the only other device I found that does not work.

Does anyone recognize what is happening? I assume that the voltage or current is a little low on the devices that don't work. But curiously, the computer I am using to program the Pro works fine for programming (and subsequently running the program). It is only after unplugging the Pro and plugging it back in that it does not work. What is preventing the bootloader (?) from jumping to the program?

Microcas

  • Newbie
  • *
  • Posts: 1
Re: Digispark Pro not running program after unplugging and plugging back in
« Reply #3 on: October 19, 2014, 05:42:12 pm »
I am having what seems to be a similar problem, but maybe not identical...  I got my 3 Digispark Pro boards a couple weeks ago and just today got around to playing with them.  After installing the customized Arduino IDE and the USB drivers, I tried uploading the LED Blink program using the recommended process:

  • Set board to Digispark (Tiny Core)
  • Set programmer to Digistump
  • Unplug the Digispark Pro
  • Click the Upload button
  • When prompted, plug in the Digispark Pro
  • Unplug Digispark Pro, then plug back in

Before doing this, the Digispark Pro had the default LED Blink program pre-loaded from the factory.  After trying to load the LED Blink program via the above steps, now it does nothing.  Any thoughts on what could be wrong? 

mes

  • Newbie
  • *
  • Posts: 9
Re: Digispark Pro not running program after unplugging and plugging back in
« Reply #4 on: October 20, 2014, 04:19:08 pm »
Does it blink properly after uploading the program before you unplug it? Mine did. It was after unplugging and plugging back in that the program did not run.

If it works correctly after uploading, I would say that you have the same problem I have/had. Try powering the Pro from another source and see if the program runs.

HackNdiy

  • Newbie
  • *
  • Posts: 1
Re: Digispark Pro not running program after unplugging and plugging back in
« Reply #5 on: October 22, 2014, 08:06:39 am »
Hi,

I have the same problem like Microcas, when i have upload the blink program the built Led stop to blink.
i have use the same process like Mcrocas. The digispak work fine before that.

thank for your help.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Digispark Pro not running program after unplugging and plugging back in
« Reply #6 on: November 08, 2014, 02:19:09 pm »
The board must be set to "Digispark Pro" setting ti to "Digispark (Tiny Core)" will load the code compiled for the original Digispark - NOT the PRo

xmblpb

  • Newbie
  • *
  • Posts: 1
I have same problem. Under Mac after uploading blink sketch Digispark Pro stop blinking.

Ups: just figure out that i have Digispark, not Digispark Pro. After i've set correct board uploaded program work correctly.
« Last Edit: March 20, 2015, 11:02:55 am by xmblpb »