Mount additional FAT partition when performing DFU #273
Replies: 3 comments 8 replies
-
it is relatively easy but I don't see why it is an bootloader job to mount and retrieve log file from application. I.e I don't think it is part of bootloader project. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response @hathach ! I was thinking from the user's perspective. Updating the firmware or retrieving some files is a maintenance issue (for this application), and it would simplify the procedure a lot if they could put the device in "maintenance" mode and perform the needed actions. As for the files... I'm not thinking of creating any log files, like it is done now for indexFile or uf2 file, but just mount a partition and get the existent files via standard operations. I tried doing this in the application (ESP IDF), but there are some problems with using MSC and CDC (composite) devices at the same time. Moreover, while the user mounts the partition and copies the files, the system can't write data to that partition anyway. So at least for me it makes the code more complicated because of that, and I also have to implement code to make sure that the user doesn't forget the partition mounted. |
Beta Was this translation helpful? Give feedback.
-
What you describe sounds like a generic use of TinyUSB rather than a special feature of TinyUF2? |
Beta Was this translation helpful? Give feedback.
-
I am trying to develop a datalogger based on ESP32S3, and it would be nice if, when booting for DFU, a data partition could also be mounted to retrieve some files from the FAT data partition. It would be even nicer if multiple additional partitions could be mounted. And maybe this could be integrated in the build system, to specify the optional partition names that should be mounted when performing DFU.
I think it should be something similar to https://github.com/hathach/tinyusb/tree/master/examples/device/msc_dual_lun
I'm not that proficient with tinyUSB, nor with tinyUF2, so I would appreciate some more or less detailed instructions.
Beta Was this translation helpful? Give feedback.
All reactions