Hold on, it’s gonna get really weird! I’m about to push updates from @phdussud for reentrancy and for juggling the file system between PC USB MSD disk and the terminal. It’s going to be a bit disconcerting until you get used to it, but it works really well. I’ve written some docs to help smooth over the transition, will push them soon.
New storage behavior:
- The USB MSC disk will be read and writable when a terminal is not connected
- While a terminal is connected the USB disk with detach, and reattach as a read only drive
- When files or directories are added, changed, or deleted via the terminal, the USB MSC disk with detach and reattach so the host operating system on the PC sees the changed contents
This keeps everything in sync, but it takes a bit of getting used to.
The updates have been installed in the lower level FatFS code and should take effect everywhere.
I also enabled FatFS mini mode, which will share a single 2K buffer instead of putting multiples on the stack. This should fix a lot of the crashes doing file system stuff, but I’ll need to see if it works for everyone or just me.
These are big changes, so I created a new auto build “test” for testing before going to main.
A new branch called “contrib” is also being compiled and posted in the forum. This is to speed up the acceptance of pull requests.