Dear ,
Thanks a lot for your time.
We currently have a project using nRF52840 dongle and nRF connect SDK, implementing FATFS and USB MSC SD card examples together.
The nRF52840 by itself is powered by the battery source. When turned on, it will acquire data from peripherals and store it in the file on the SD card that is created by the program. When a data acquisition session is finished and it is connected to a PC via USB, the data file can be accessed by PC or Mac just like an SD card reader.
I am not sure if I get it correctly, but to be able to achieve the function described above, do I need to introduce a certain mechanism to check whether it's been connected to a USB port and then call the function usb_enable(NULL) so that it can then appear as a disk drive in PC or Mac?
Do I always call usb_enable(NULL) like a process of initialisation? or do I only call this function when it's been connected to a USB port.
Thanks again. Kind regards, Kevin