diff options
author | Peter Johanson <[email protected]> | 2024-10-01 01:14:44 -0600 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-10-01 01:57:08 -0600 |
commit | 73ca365530bc79d03dc64d89adc03b4ccbeeb14e (patch) | |
tree | 1fb2fb26b0afdb13a53a14fa191f53ffa375822c | |
parent | 90d6285d98692900bb14a6e56befc844d357c18c (diff) | |
download | zmk-73ca365530bc79d03dc64d89adc03b4ccbeeb14e.tar.gz zmk-73ca365530bc79d03dc64d89adc03b4ccbeeb14e.zip |
feat(boards): PM RP2040 flash settings support.
-rw-r--r-- | app/boards/sparkfun_pro_micro_rp2040.conf | 7 | ||||
-rw-r--r-- | app/boards/sparkfun_pro_micro_rp2040.overlay | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/app/boards/sparkfun_pro_micro_rp2040.conf b/app/boards/sparkfun_pro_micro_rp2040.conf index 21c1893d91..354d700744 100644 --- a/app/boards/sparkfun_pro_micro_rp2040.conf +++ b/app/boards/sparkfun_pro_micro_rp2040.conf @@ -2,3 +2,10 @@ CONFIG_CONSOLE=n CONFIG_SERIAL=n CONFIG_UART_CONSOLE=n CONFIG_ZMK_USB=y + +CONFIG_MPU_ALLOW_FLASH_WRITE=y +CONFIG_NVS=y +CONFIG_SETTINGS_NVS=y +CONFIG_FLASH=y +CONFIG_FLASH_PAGE_LAYOUT=y +CONFIG_FLASH_MAP=y
\ No newline at end of file diff --git a/app/boards/sparkfun_pro_micro_rp2040.overlay b/app/boards/sparkfun_pro_micro_rp2040.overlay index 72b3adcaf4..21aa7dff7c 100644 --- a/app/boards/sparkfun_pro_micro_rp2040.overlay +++ b/app/boards/sparkfun_pro_micro_rp2040.overlay @@ -5,3 +5,19 @@ */ &pro_micro_serial { status = "disabled"; }; + +// We override to 2MB for maximum compatibility +&code_partition { + reg = <0x100 (DT_SIZE_M(2) - 0x100 - DT_SIZE_K(512))>; +}; + +&flash0 { + reg = <0x10000000 DT_SIZE_M(2)>; + + partitions { + storage_partition: partition@180000 { + reg = <0x180000 DT_SIZE_K(512)>; + read-only; + }; + }; +}; |