Skip to content

Commit

Permalink
feat(boards): Properly support settings for RPi Pico board.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Oct 18, 2024
1 parent ea1a09b commit ab7aac3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/boards/rpi_pico.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
CONFIG_UART_INTERRUPT_DRIVEN=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
15 changes: 15 additions & 0 deletions app/boards/rpi_pico.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

&uart0 { status = "disabled"; };

&code_partition {
reg = <0x100 (DT_SIZE_M(2) - 0x100 - DT_SIZE_K(512))>;
};

&flash0 {
partitions {
storage_partition: partition@180000 {
reg = <0x180000 DT_SIZE_K(512)>;
read-only;
};
};
};

0 comments on commit ab7aac3

Please sign in to comment.