Skip to content

Commit 88c3d5d

Browse files
committed
giga: enable fatfs
1 parent 1e6f6da commit 88c3d5d

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CONFIG_USB_CDC_ACM_RINGBUF_SIZE=512
99
CONFIG_UART_LINE_CTRL=y
1010
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
1111

12+
CONFIG_FILE_SYSTEM=y
13+
CONFIG_FAT_FILESYSTEM_ELM=y
14+
CONFIG_DISK_DRIVER_FLASH=y
15+
CONFIG_FLASH=y
16+
CONFIG_FLASH_MAP=y
17+
1218
CONFIG_LLEXT_STORAGE_WRITABLE=n
1319
CONFIG_SHARED_MULTI_HEAP=y
1420
CONFIG_HEAP_MEM_POOL_SIZE=2048

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,55 @@
342342
};
343343
};
344344

345+
qspi_flash: &n25q128a1 {
346+
/delete-node/ partitions;
347+
partitions {
348+
compatible = "fixed-partitions";
349+
#address-cells = <1>;
350+
#size-cells = <1>;
351+
352+
/* Partition 1: WiFi firmware and certificates 1MB - 4kB */
353+
wlan_partition: partition@1000 {
354+
label = "wlan";
355+
reg = <0x001000 DT_SIZE_K(1020)>;
356+
};
357+
358+
/* Partition 2: OTA 5MB */
359+
ota_partition: partition@100000 {
360+
label = "ota";
361+
reg = <0x100000 DT_SIZE_M(5)>;
362+
};
363+
364+
/* Partition 3: Provisioning KVStore 1MB */
365+
kvs_partition: partition@600000 {
366+
label = "kvs";
367+
reg = <0x600000 DT_SIZE_M(1)>;
368+
};
369+
370+
/* Partition 4: User data 7MB */
371+
storage_partition: partition@700000 {
372+
label = "storage";
373+
reg = <0x700000 DT_SIZE_M(7)>;
374+
};
375+
376+
/* Partition 5: Binary FW image for the Airoc WLAN */
377+
airoc_firmware: partition@e80000 {
378+
label = "4343WA1.bin";
379+
reg = <0xe80000 DT_SIZE_K(512)>;
380+
};
381+
};
382+
};
383+
384+
385+
/ {
386+
msc_disk0 {
387+
compatible = "zephyr,flash-disk";
388+
partition = <&wlan_partition>;
389+
disk-name = "NAND";
390+
cache-size = <4096>;
391+
};
392+
};
393+
345394
/ {
346395
zephyr,user {
347396
digital-pin-gpios = <&arduino_header 6 0>,

west.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ manifest:
2727
- cmsis
2828
- cmsis_6
2929
- littlefs
30+
- fatfs
3031
- tinycrypt
3132
- mbedtls
3233
- segger

0 commit comments

Comments
 (0)