Skip to content

Commit

Permalink
hw/bsp/nordic: Fix flash sector size for NRF5340 network core
Browse files Browse the repository at this point in the history
Commit 11d13cc that removed
duplicated hal_flash.c did not set correct value for network
core flash sector size of NRF5340 which should be 2048 not 4096

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Jan 8, 2025
1 parent 5ea44ab commit 54f9d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/mcu/nordic/nrf_common/src/hal_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#ifdef NRF51
#define NRF_FLASH_SECTOR_SZ 1024
#elif defined(NRF5340_XXAA_NETWORK)
#define NRF_FLASH_SECTOR_SZ 2048
#else
#define NRF_FLASH_SECTOR_SZ 4096
#endif
Expand Down

0 comments on commit 54f9d69

Please sign in to comment.