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
  • Hi,

    Could you please show the error that you get?

    Best regards,
    Dejan

  • 00> *** Booting Zephyr OS build v3.2.99-ncs2 ***
    00> [00:00:00.002,227] <inf> flashdisk: flashdisk_init_runtime: Initialize device NAND
    00> [00:00:00.002,258] <inf> flashdisk: flashdisk_init_runtime: offset 0, sector size 512, page size 4096, volume size 8192000
    00> [00:00:00.002,777] <err> flashdisk: flashdisk_init_runtime: Error -22 while getting page info
    00> [00:00:00.002,777] <err> usb_msc: mass_storage_init: Storage init ERROR !!!! - Aborting USB init
    00> Area 1 at 0xf8000 on flash-controller@4001e000 for 32768 bytes
    00> [00:00:00.002,899] <inf> flashdisk: flashdisk_init_runtime: Initialize device NAND
    00> [00:00:00.002,929] <inf> flashdisk: flashdisk_init_runtime: offset 0, sector size 512, page size 4096, volume size 8192000
    00> [00:00:00.003,448] <err> flashdisk: flashdisk_init_runtime: Error -22 while getting page info
    00> [00:00:00.003,479] <err> fs: fs_mount: fs mount error (-5)
    00> [00:00:00.003,479] <err> main: setup_disk: Failed to moun
    00>
    00>

Reply
  • 00> *** Booting Zephyr OS build v3.2.99-ncs2 ***
    00> [00:00:00.002,227] <inf> flashdisk: flashdisk_init_runtime: Initialize device NAND
    00> [00:00:00.002,258] <inf> flashdisk: flashdisk_init_runtime: offset 0, sector size 512, page size 4096, volume size 8192000
    00> [00:00:00.002,777] <err> flashdisk: flashdisk_init_runtime: Error -22 while getting page info
    00> [00:00:00.002,777] <err> usb_msc: mass_storage_init: Storage init ERROR !!!! - Aborting USB init
    00> Area 1 at 0xf8000 on flash-controller@4001e000 for 32768 bytes
    00> [00:00:00.002,899] <inf> flashdisk: flashdisk_init_runtime: Initialize device NAND
    00> [00:00:00.002,929] <inf> flashdisk: flashdisk_init_runtime: offset 0, sector size 512, page size 4096, volume size 8192000
    00> [00:00:00.003,448] <err> flashdisk: flashdisk_init_runtime: Error -22 while getting page info
    00> [00:00:00.003,479] <err> fs: fs_mount: fs mount error (-5)
    00> [00:00:00.003,479] <err> main: setup_disk: Failed to moun
    00>
    00>

Children
No Data
Related