Author Topic: Micronucleus Programming With WDT Entry  (Read 3054 times)

Jason Whiteman

  • Newbie
  • *
  • Posts: 1
Micronucleus Programming With WDT Entry
« on: June 12, 2014, 01:44:21 am »
Digistump,

     I've searched the net and forums for related discussion.  I did see a thread from late 2013 regarding some bootloader development and mentions of WDT entry.  My question is - is there stable firmware that allows for WDT entry to the micronucleus program?

     I'd like to remotely update my USB-connected DigiSpark with a hex file using the command-line (digispark avrdude -cdigispark -Pusb etc.. method).   Although I have WDT reset working fine (in response to a unique USB "command"), the erase works but programming portion of the micronucleus update reports an error.

     This is not a recoverable state as after the erase and failed program - DigiSpark is no longer responsive (which is expected after this sequence of events).

     I'm using the stock bootloader firmware.  The purpose for using the stock bootloader is for (perceived) stability.


-- Clarification:

    Remote update process is for the user code - not software updating the bootloader portion.  So I am looking to see if there is a bootloader which allows for updating the USER portion of flash (non-bootloader portion) using a WDT timeout style reset to initiate the Micronucleus.exe user-code update.


Regards,
Jason
 
« Last Edit: June 12, 2014, 10:33:43 am by Jason Whiteman »

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: Micronucleus Programming With WDT Entry
« Reply #1 on: June 13, 2014, 01:12:10 am »
I am not sure, if I got it?

Your digispark is connected to an host system, where the micronucleus command line tool (invoked from avrdude-wrapper) is running and ready to upload a new hex file.
But instead manually resetting the digispark for bootloader activation, you wish to reset the digispark via WDT?

Can you explain the needs for that, so I might understand the whole picture?