I am now on another machine with another chip and the chip keeps rebooting...
Trying to debug the issue, I am kind of baffled that it ever worked in the first place. Compared to usbconfig.h in micronucleus, USB_CFG_DMINUS_BIT and USB_CFG_DPLUS_BIT are swapped and furthermore, DigiCDC.cpp contains the line
PORTB &= ~(_BV(USB_CFG_DMINUS_BIT) | _BV(USB_CFG_DPLUS_BIT));
when it should actually be PORTD.
I am wondering if I somehow got superlucky due to some arduino cache thing or the sketch on my other machine accidentally did some configurations to make it work...
Or maybe my other chip contained another version of micronucleus which left some correct USB configurations on it...
Anyway, I will update this issue with the debugging progress. Any help much appreciated!
I am now on another machine with another chip and the chip keeps rebooting...
Trying to debug the issue, I am kind of baffled that it ever worked in the first place. Compared to usbconfig.h in micronucleus,
USB_CFG_DMINUS_BIT
andUSB_CFG_DPLUS_BIT
are swapped and furthermore, DigiCDC.cpp contains the linePORTB &= ~(_BV(USB_CFG_DMINUS_BIT) | _BV(USB_CFG_DPLUS_BIT));
when it should actually be PORTD.I am wondering if I somehow got superlucky due to some arduino cache thing or the sketch on my other machine accidentally did some configurations to make it work... Or maybe my other chip contained another version of micronucleus which left some correct USB configurations on it...
Anyway, I will update this issue with the debugging progress. Any help much appreciated!