Uploading a changed boot.py yields no changes on ESP32 #15444
Replies: 2 comments 2 replies
-
The Thonny "Files" view will show you the files in the working directory of your PC and below that a list of files stored on the flash of your device. If you have a file in the working directory called boot.py and a file in the device's flash called boot.py. Although they have the same name and contents they are two separate files, so when you open and modify the file on the PC and hit the save icon the file in flash remains unchanged. You can alter this behaviour by clicking the "File" menu item and choosing "Save As" or "Save Copy" Perhaps a better option is to open the file from the device flash and make modifications and saves only to that file while preserving the original on the PC, that way when you have finished you can copy to both locations or if you wish you can restore the original from the PC. |
Beta Was this translation helpful? Give feedback.
-
I had never thought of OneDrive as the working directory but I don't see why that would make a difference, I also use "upload" (PC to device) and "download (device to PC) without issue so I'm unsure what's going on there, my version is 4.1.4 I think working with the file on the device is the most prudent thing to do, I have lost files myself doing things the other way around. Sorry I can't offer more help but I still think Thonny is a good IDE especially for beginners like me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm brandnew to all that microcontroller stuff and currently trying to understand the boot process for offline operation of the ESP32.
I changed the boot.py file on the PC, deleted its old version on ESP and uploaded the changed boot.py to the ESP. Upload pretends to work (boot.py showing up in the "MicroPython device" window). But when I click on that boot.py on the ESP, Thonny shows me still the old boot code version - before the changes I made. Also, pressing the restart button on the ESP board yields the old boot behavour rather than the changed one. I never get the latest version, as prepared on the PC, working on the ESP.
Also, downloading to PC the boot.py after changing it directely on ESP doesn't work. The downloading process pretends to work (even displays a correct warning about overwriting files), but the file on the PC remains the same.
A workaround could of course be to implement all changes twice - on the PC and in addition directly on the ESP. (And that seems to work.) But before accepting this as a solution I'd like to understanding first what happens and what am I doing wrong.
Thanks for any ideas.
Beta Was this translation helpful? Give feedback.
All reactions