From ac9bbd13bdc4e49b1d98b5e62f13f092e00a4399 Mon Sep 17 00:00:00 2001 From: digger vermont Date: Thu, 11 May 2023 18:38:20 -0400 Subject: [PATCH] Increase flsh from 8Mb to 16Mb The flass memory has pretty positive ID of a 16Mb Winbond W25Q16JV-IQ --- app/boards/arm/kbdfans_tofu65_v2/kbdfans_tofu65_v2.dts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/boards/arm/kbdfans_tofu65_v2/kbdfans_tofu65_v2.dts b/app/boards/arm/kbdfans_tofu65_v2/kbdfans_tofu65_v2.dts index f61a1343..2bb5b1ac 100644 --- a/app/boards/arm/kbdfans_tofu65_v2/kbdfans_tofu65_v2.dts +++ b/app/boards/arm/kbdfans_tofu65_v2/kbdfans_tofu65_v2.dts @@ -7,7 +7,6 @@ #include #include "kbdfans_tofu65_v2-pinctrl.dtsi" -// #include "sparkfun_pro_micro_connector.dtsi" #include #include @@ -18,7 +17,6 @@ chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; - // zephyr,flash-controller = &ssi; zephyr,console = &cdc_acm_uart; zephyr,shell-uart = &uart0; zephyr,code-partition = &code_partition; @@ -94,7 +92,7 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,6) RC(4,8) RC(4,9) }; &flash0 { - reg = <0x10000000 DT_SIZE_M(8)>; + reg = <0x10000000 DT_SIZE_M(16)>; partitions { compatible = "fixed-partitions"; @@ -110,11 +108,11 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,6) RC(4,8) RC(4,9) /* * Usable flash. Starts at 0x100, after the bootloader. The partition - * size is 8MB minus the 0x100 bytes taken by the bootloader. + * size is 16MB minus the 0x100 bytes taken by the bootloader. */ code_partition: partition@100 { label = "code"; - reg = <0x100 (DT_SIZE_M(8) - 0x100)>; + reg = <0x100 (DT_SIZE_M(16) - 0x100)>; read-only; }; };