Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : I did it again :-(

Posted: 05:42am
11 Sep 2025
Copy link to clipboard
OA47
Guru


Just spent the last 3-4 days coding a new project on a PicoVGA connected to TeraTerm and powered by the USB cable. I left it running overnight to see if there were any issues and this morning I was greeted by MSOFT telling me the PC needs a restart. Guess what I did ?
Unfortunately, I have been to used to programming mites and forgot to save the code to flash or the PC so when the PC came back the Pico was blank.

OA47
 
Posted: 06:34am
11 Sep 2025
Copy link to clipboard
Mixtel90
Guru


Oh dear. :(

You will stray from the golden path to true enlightenment though! Such futile actions cannot go unpunished in some way.  ;)


It's like nudging the ram pack on a ZX81 when you are just entering the last line of the program that you are copying from a magazine. Only this time you have Microsoft to help. :(
 
Posted: 07:00am
11 Sep 2025
Copy link to clipboard
OA47
Guru


You remind me of the days I had my first 8 bit computer where I would delay the saving of the program until the last minute as it took ages to save on cassette. I vividly remember the sound of thunder in the background and the knowledge that a lightning strike even kilometers away was enough to rest the computer.

OA47
 
Posted: 07:10am
11 Sep 2025
Copy link to clipboard
Volhout
Guru

OA47,

If you have ever RUN the program on the PicoVGA, then it is still in flash. Simply open teraterm, and type "LIST", or "F2"(edit)
To erase a program from flash you actively have to execute a "NEW", or update the firmware (i.e. from 5.08.00 to 6.00.03). Otherwise the program is still there.

Regards,

Volhout
Edited 2025-09-11 17:10 by Volhout
 
Posted: 07:10am
11 Sep 2025
Copy link to clipboard
atmega8
Guru


No backup, no mercy
 
Posted: 07:31am
11 Sep 2025
Copy link to clipboard
OA47
Guru


Unfortunately if I list from Teraterm I get nothing. The PicoVGA is running ver 5.0704 and memory reports:
Program:
  0K ( 0%) Program (0 lines)
108K (100%) Free

RAM:
  0K ( 0%) 0 Variables
  0K ( 0%) General
140K (100%) Free

OA47
 
Posted: 08:06am
11 Sep 2025
Copy link to clipboard
Volhout
Guru

Hi OA47,

Maybe this is the time to upgrade to 6.01.00b11. It is simply 1 button press, and a drag and drop.

I think the earliest ports of MMbasic on RP2040 ran the code in RAM. Maybe 5.07.04 was that early version (although I think 5.07.04 was already flash based). Later versions are running from flash, while maintaining similar speed.

Volhout
 
Posted: 09:58pm
11 Sep 2025
Copy link to clipboard
OA47
Guru


As an afterthought, I was wondering as Teraterm was still running after the PC re-boot could I have been able to look at the history and got most of the code back ?

OA47
 
Posted: 11:35pm
11 Sep 2025
Copy link to clipboard
phil99
Guru


Tested with a Windows restart.
Answer:- No not with TeraTerm 5.2. TeraTerm restarted with an empty buffer.

As for the PicoMite (RP2040 V6.01.00b11) it continued to run its program without a hiccup throughout the restart.

Perhaps a Windows Update is different. If it starts the virtual com port at 1200 baud the Pico would go into Firmware Update mode. If Windows sees that as a corrupt USB drive it may try to "repair" it.
 
Posted: 02:00am
13 Sep 2025
Copy link to clipboard
phil99
Guru


Tested with Windows Update.
Pico connected to TeraTerm and program running then let Windows do the update.
Once again  the PicoMite continued to run its program without a hiccup throughout the update.
So what happened to yours remains a mystery.
 
Posted: 02:15am
13 Sep 2025
Copy link to clipboard
OA47
Guru


Phil, I did notice an error message from mmbasic during both of the re-boots of the PC but they were only visable for a split second and I could not interpret them.

OA47
Edited 2025-09-13 12:16 by OA47
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025