mx25r64: affiliation: - disk region: external_flash size: 0x800000 address: 0x000000 end_address: 0x7FFFFF extra_params: { disk_name: "SD", disk_cache_size: 4096, disk_sector_size: 4096, disk_read_only: 0 }
/ { chosen { nordic,pm-ext-flash = &mx25r64; }; };
/ { chosen { nordic,pm-ext-flash = &mx25r64; }; msc_disk0 { status="okay"; compatible = "zephyr,flash-disk"; // What is the correct way to refer to a // Partition Manager partition here? partition = <&mx25r64>; disk-name = "SD"; cache-size = <4096>; }; };
&mx25r64 { partitions { compatible = "fixed-partitions"; external_partition: partition@0 { reg = <0x00000000 0x00020000>; }; }; };
if (disk_access_ioctl(disk_pdrv, DISK_IOCTL_GET_SECTOR_SIZE, &block_size)) { LOG_ERR("Unable to get sector size"); break; } else if (block_size > sizeof(fat_fs.win)) { LOG_ERR("Sector size %u is larger than FF_MAX_SS %u\n\ set CONFIG_FS_FATFS_MAX_SS=%u\n", block_size, sizeof(fat_fs.win), block_size); break; } else { printk("Sector size %u\n", block_size); }