# Pico2 PicoMite v6.01.00b10 deadlock with command files "a:" from memory

**URL:** <https://forum.clockworkpi.com/t/pico2-picomite-v6-01-00b10-deadlock-with-command-files-a-from-memory/20091>\
**Category:** PicoCalc\
**Created:** [October 14, 2025, 1:38pm UTC](https://forum.clockworkpi.com/t/pico2-picomite-v6-01-00b10-deadlock-with-command-files-a-from-memory/20091 "2025-10-14T13:38:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ernst](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@ernst](https://forum.clockworkpi.com/u/ernst)\
**Post date:** [October 14, 2025, 7:03pm UTC](https://forum.clockworkpi.com/t/pico2-picomite-v6-01-00b10-deadlock-with-command-files-a-from-memory/20091/4 "2025-10-14T19:03:42Z")

</div>

I first noticed the problem using PCC when I tried to start a basic program, looking at the PCC source code I noticed that is uses `save context` therefor I used the `files` command because it shows the files. According to the documentation there is no restriction using it from within a program. I pulled out the original Pico1 (delivered with the PicoCalc) and ran the same test successful under V6.00.02RC23.

In the meanwhile I have done some more digging and found that the problem is most likely to do with Commands.c:SaveContext and Commands.c:RestoreContext. I removed all write and read statements from the routines and noticed something very strange. Running the same test many times will list the `.vars` and the `bootcount` files, after a few repetitions the `bootcount` file disappears.

Update: PicoMite RP2040 using the same source shows no problems.

Update:  
V6.01.00b10 adcockm RP2040 no problems  
V6.01.00b10 adcockm RP2350 no problems  
V6.01.00b10 pelrun RP2040 no problems  
V6.01.00b10 pelrun RP2350 fails

---

_[View the full topic](https://forum.clockworkpi.com/t/pico2-picomite-v6-01-00b10-deadlock-with-command-files-a-from-memory/20091)._
