Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

ItsyBits M4 crashes after ~135 seconds
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ItsyBits M4 crashes after ~135 seconds

by slight on Fri Oct 22, 2021 6:05 pm

Hello Community,

iam currently experimenting and testing with a now very complex led-animation sketch -
you can find the hole project at https://github.com/s-light/LEDMatrix_animation_base

this evening i went full power on and implemented lots of things and rearranged code...

now i have the phänomen that the ItsyBitsy M4 (or better the SAMD 51) processor is crashing after **~135s**
crash means the SPI output shuts down.
uc usb does stay connected (i have looked in my dmesg log)
but the serial is unresponsive (also the bootloader sequence does not work)
i have to push the reset button - then it is all back to normal

tomorrow i will try and check if i find the commit that introduced this...

i think it is some *overflow* or not allowed access some where..
but time-wise there is no event i know of that could trigger this..

are there any other options to debug something like this?
what does the *Debug - On* option in the Arduino Tools Menu mean or do?

i hope you can give me any kind of tips :-)
thanks in advance!

sunny greeting
stefan

slight
 
Posts: 43
Joined: Wed Sep 12, 2012 2:23 am

Re: ItsyBits M4 crashes after ~135 seconds

by adafruit_support_bill on Sat Oct 23, 2021 5:51 am

For complex programs like that, you can either try to go back in time and find the change that introduced the problem. Or start selectively disabling parts of the code until you find the minimum subset that still exhibits the problem.

adafruit_support_bill
 
Posts: 82445
Joined: Sat Feb 07, 2009 10:11 am

Re: ItsyBits M4 crashes after ~135 seconds

by slight on Sat Oct 23, 2021 9:46 pm

thanks @adafruit_support_bill -
i will try both...
what i already did is - i tried another board with another (similar) hw setup.
and tried with an ESP32 as uC -
and in both cases the crash occurs.

so it seems it is not a hw / electrical setup thing..

next thing i try is to go back in time...

slight
 
Posts: 43
Joined: Wed Sep 12, 2012 2:23 am

Please be positive and constructive with your questions and comments.