We have our firmware developed with ncs2.7.0 and everything works as expected. However, with a recent effort of moving to ncs2.9.1, the same project can be built but during run time, I observe this error:
[00:00:00.040,435] <err> usb_msc: Storage init ERROR !!!! - Aborting USB init
Previously when we encounter the same issue, we solved it by adding pm_static.yml file and define our partition like this:
littlefs_storage:
region: external_flash
address: 0x120000
size: 0x6e0000
label: "lfs_storage"
affiliation: disk
extra_params: {
disk_name: "NOR",
disk_cache_size: 4096,
disk_sector_size: 512,
disk_read_only: 0
} And in our main code, we have this:USBD_DEFINE_MSC_LUN(NOR, "Zephyr", "BORUS", "0.00"); // Define the USB MSC LUNalong with a kconfig in our prj.conf to define the disk name.
But apperantly, with ncs2.9.1, this no longer solves the problem. I have tried to locate the issue at this specific kconfig: