Skip to content

Commit

Permalink
nrf52_pca10040: get the erase block size from dts
Browse files Browse the repository at this point in the history
Sample expect that to come from DTS, previously it was hardcoded in the
sample.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Aug 29, 2018
1 parent baabe64 commit 6a01c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/arm/nrf52_pca10040/nrf52_pca10040.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ toolchain:
- gnuarmemb
ram: 64
flash: 512
supported:
- nvs
1 change: 1 addition & 0 deletions dts/arm/nordic/nrf52832.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
compatible = "soc-nv-flash";
label = "NRF_FLASH";
reg = <0x00000000 DT_FLASH_SIZE>;
erase-block-size = <4096>;
write-block-size = <4>;
};
};
Expand Down

0 comments on commit 6a01c69

Please sign in to comment.