Thanks - I've now posted about this on discord, but I'll put it here too.
Warning- before anyone tries this please make sure that you have a backup of your CIRCUITPY drive, and you know how to run a flash eraser specific to your CircuitPython board. e.g.
https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51/troubleshootingI am using a Mac running 10.14.6 connected to an ItsyBitsy M4 Express running "Adafruit CircuitPython 5.3.0 on 2020-04-29; Adafruit ItsyBitsy M4 Express with samd51g19"
I found that it I put this simple program into code.py, then my ItsyBitsy will not mount as a drive. To recover I had to enter bootloader mode, erase the drive, and then reload CircuitPython. Maybe there's a better way to recover, or there's something unique about my setup which causes this. I'm suspicious that the bignum code is not giving time to other code involved in handling the USB subsystem. (If I had a hacked version of CircuitPython which didn't load code.py, then that could be loaded to enable a mount and cleanup.)
- Code: Select all | TOGGLE FULL SIZE
print("The waiting game")
i = 0
while True:
print("Looping {}".format(i))
i = i + 1
a = 2**(65536*2)