You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After uploading Evade 2. Arduboy will lock up due to USB interrupts left enabled by the bootloader in combination with the undefined USB interrupt vector.
add UDIEN = 0 before init() to fix this.
also adding attribute ((OS_main)) to main will save a few extra bytes
int __attribute__ ((OS_main)) main(void)
{
UDIEN = 0; //disable possible enabled USB interrupts from bootloader
init();
initVariant();
setup();
for (;;) {
loop();
if (serialEventRun) serialEventRun();
}
return 0;
}
After uploading Evade 2. Arduboy will lock up due to USB interrupts left enabled by the bootloader in combination with the undefined USB interrupt vector.
add UDIEN = 0 before init() to fix this.
also adding attribute ((OS_main)) to main will save a few extra bytes