I have actually managed quite successfully to get as far as sending a file over UART and storing it as "temp.py" on the Pico. What I have failed to achieve is getting that to run on reset. I have tried . Whatever I try os.rename seems to create a blank file, even though temp.py contains all my code. I have tried it in a boot.py too. This is the biggest struggle I have at the moment is swapping out the old main.py for new.
Code:
os.rename("temp.py","main.py")Statistics: Posted by jimseng — Sun Jun 01, 2025 5:04 am