When I do the “Tools->Save Script to OpenMV Cam”, should there be any indication that the file has loaded successfully?
Generally, it works on the first shot. However, the system can be hampered by corrupt disk stuff.
So, since the camera’s file system appears tot he PC as a read-only device but is actually writable by the camera… be careful of the OS caching stuff. In particular, your PC will not write files to the camera except when it feels like it. You either need to safety remove the camera or let OpenMV IDE reset the camera to save files on the cam.
I put some extra code int the IDE also that saves the main.py file and then causes extra writes to make sure it gets flushed. But, anyway, if you’re not using the two methods under tools then you’ll run into weird issues related to the OS caching files to be written to the disk and not reading the disk again.
Yes, I wish there was a way to make this better. Note that we’re using the standard MicroPython disk interface for this. All pyboards suffer from these issues and there’s not really a clear fix.
That said, one nice thing… when you use an SD card with the camera your OS will use different drivers which flush all writes much more quickly than with the internal flash of the chip.