Cannot save files to motor 2040

so i have been modifying python code on my motor 2040 using Thonny on a PI500

When I try and save the program Thonny hangs with a saving to /m2040.py dialogue

which is the name of the file.

In case it was something to do with my PI500 I tried on a mac.

In order to conenct to the motor2040 I had to re-install the operating system, i install tiny2040, hope this is the correct version.

My main.py then kicked into action, but when i edited m2040.py and tried to save it I have got the same problem, hanging on the dialogue.

Any suggestions as to what to try?

Steve

Are you clicking Stop before doing the file transfer? Are doing a File, save / save as, from Thonny when it happens?

Yes, if you try and save when the a program running it is a different error,

Backend busy press stop or something like that.

The dialogue box is trying to save the file.

If I reinstall micropython it recovers, but I must have done this half a dozen times,

Thanks for response

Steve

Sorry for the delay in replying.
If you haven’t already, rename main.py to main_old.py. That way it won’t auto run every time you do a reset etc. It’s what I do when testing my own code.
Does your code run OK when run locally from your PC?
And does it run OK if you manage to save it to the Motor 2040.

I don’t own a motor but I do own an Inventor 2040. I can likely edit and test your code on that, if you don’t mind posting it?
Use the preformatted text button, the </> , and it will retain the indents etc.

Thanks for the reply, but the code itself is ok, when I save the file thonny hangs on a saving file dialogue.

Might be time to e-mail tech support.
Submit a ticket : Pimoroni

I did it this morning