CONFIG_APP_MSC_STORAGE_RAM VS FLASH_FATFS

Hi Team,
NCS v2.3.0
nrf52840

my project works as expected with CONFIG_APP_MSC_STORAGE_RAM=y

but I need storage FLASH_FATFS

I set CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
and the disk does not open in Windows, it gives an error window when connecting nrf USB.

Thank you.

4034.chatDK_update.7z
Parents Reply
  • Hi,

    Have you tried using the sample 275880_mass_v2.2.0.zip provided here? I have tested it and it is working in NCS v2.2.0.

    Please find below the log from my nRF52840-DK. 

    *** Booting Zephyr OS build v3.2.99-ncs1 ***
    Area 0 at 0x46000 on flash-controller@4001e000 for 237568 bytes
    [00:00:00.255,706] <inf> flashdisk: Initialize device NAND
    [00:00:00.255,737] <inf> flashdisk: offset 46000, sector size 512, page size 4096, volume size 237568
    [00:00:00.261,444] <inf> flashdisk: Initialize device NAND
    [00:00:00.261,474] <inf> flashdisk: offset 46000, sector size 512, page size 4096, volume size 237568
    Mount /NAND:: 0
    /NAND:: bsize = 512 ; frsize = 512 ; blocks = 424 ; bfree = 420
    /NAND: opendir: 0
      D 0 SYSTEM~1
      F 5 MY_TEXT.TXT
    End of files
    [00:00:00.325,805] <inf> main: The device is put in USB mass storage mode.
    


    Best regards,
    Dejan

Children
Related