You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I modify a javascript file which is included in index.html, after calling make flash, the new file is not updated in the MCU, so still the old version of the javascript file in the flash memory.
The only way to make it really update that file is to change the file name of this javascript file, and do a make clean then make flash. Quite time consuming during development.
The text was updated successfully, but these errors were encountered:
Your issue is somewhat lacking in detail, but I'll make a few observations. Note that the build system isn't smart enough to detect changes in the target filesystem layout so you must do this manually.
In general when you need to rebuild a filing system partition image use make buildpart. If the partition in question is called, say, spiffs0, then you can be more specific and use make buildpart PART=spiffs0. That will rebuild the image from the source files.
Regarding make flash, if you run make help you'll see it described as Write the boot loader and all defined partition images. By contrast, make flashpart PART=spiffs0 will flash only the spiffs0 partition.
If you're doing a lot of this sort of iterative development on high-level stuff like web interfaces, you might consider getting your project building for Host and use that for development (if you're not already!). It's much faster than repeatedly re-flashing devices!
Thanks for the hint. I tried the make buildpart, it is still not clever enough to detect the change and build the newly modified file, I still need to change the file name so that it can detect the change.
I do need to try the host build.
If I modify a javascript file which is included in index.html, after calling
make flash
, the new file is not updated in the MCU, so still the old version of the javascript file in the flash memory.The only way to make it really update that file is to change the file name of this javascript file, and do a
make clean
thenmake flash
. Quite time consuming during development.The text was updated successfully, but these errors were encountered: