I need to operate sdcard from pc(by usb msc) and from mcu (nordic 52840) (fat32 filesystem) spi sdcard at same time ;
so i have a problem ,when i operate the sd from pc and mcu have a hardfault err;
I need to operate sdcard from pc(by usb msc) and from mcu (nordic 52840) (fat32 filesystem) spi sdcard at same time ;
so i have a problem ,when i operate the sd from pc and mcu have a hardfault err;
Both at the same time is impossible, because they won't "see" each other's changes properly. FatFS only works when it has FULL control over the filesystem - and the PC has the same limitation.
These inconsistencies may or may not be the cause of your hard faults -impossible to tell without looking at your source code.
thanks for your reply now i have another probllem
when detect usb is present change usb mode,at this time i can not operate for sdcard(from fat32 mcu),
when i need to operate sdcard ,i can remove usb
like this is ok?
Hi
You should be able to access the SD card locally when the USB link is removed, that is correct.
Is this what you are trying to do?
Best regards
Torbjørn
Hi
You should be able to access the SD card locally when the USB link is removed, that is correct.
Is this what you are trying to do?
Best regards
Torbjørn