Adafruit CircuitPython 7.0.0-alpha.1-1025-g30c7aa8fc on 2021-05-05; Adafruit ItsyBitsy RP2040 with rp2040
code.py and boot.py
It doesn't matter what you add to code.py - I added another line simply to verify the behavior.
code.py contains the following:
print("Hello World!")
print("Another line of code.")
boot.py is empty.
To reproduce:
Click the reset button. When the LED turns blue to indicate boot.py is running, press reset again.
Results:
The board reboots, mounts as CIRCUITPY. No boot.py is present, it has been deleted. The contents of code.py are reset to only the initial print(Hello World!).
Possibly related results with different code.py and boot.py
I began this with a slightly updated version of the Storage boot.py and code.py found here.
By doing the same steps above to reproduce, two times, I was able to replicate the following results:
The board reboots, mounts as NO_NAME, with no files on it. I was able to connect to the serial console and REPL. Running storage.erase_filesystem() restored the CIRCUITPY drive, with no contents.
This is on an ItsyBitsy RP2040.
Currently running:
code.py and boot.py It doesn't matter what you add to code.py - I added another line simply to verify the behavior.
code.py contains the following:
boot.py is empty.
To reproduce: Click the reset button. When the LED turns blue to indicate boot.py is running, press reset again.
Results: The board reboots, mounts as CIRCUITPY. No boot.py is present, it has been deleted. The contents of code.py are reset to only the initial
print(Hello World!)
.Possibly related results with different code.py and boot.py
I began this with a slightly updated version of the Storage boot.py and code.py found here.
By doing the same steps above to reproduce, two times, I was able to replicate the following results: The board reboots, mounts as NO_NAME, with no files on it. I was able to connect to the serial console and REPL. Running
storage.erase_filesystem()
restored the CIRCUITPY drive, with no contents.