soc: lpc: mcxn: fix the flash_fill() fail.

- Fix flash_fill() for lpc55 and mcxnx4.
- Set FLASH_FILL_BUFFER_SIZE to the minimal size of data
  which can be written to a device (by default is only 32).
- Fix the [flash_map.test_flash_area_erase_and_flatten]
  failed test of tests/subsys/storage/flash_map.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
This commit is contained in:
Andrej Butok 2024-06-17 12:49:12 +02:00 committed by Anas Nashif
parent 6b4beb9494
commit fdfebdd15b
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,10 @@ config LPC55XXX_SRAM_CLOCKS
config LPC55XXX_USB_RAM
default y
# Set to the minimal size of data which can be written.
config FLASH_FILL_BUFFER_SIZE
default 512
if SOC_LPC55S06
config LPC55XXX_USB_RAM

View File

@ -20,4 +20,8 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 16000 if MCUX_LPTMR_TIMER
default 150000000 if CORTEX_M_SYSTICK
# Set to the minimal size of data which can be written.
config FLASH_FILL_BUFFER_SIZE
default 128
endif # SOC_SERIES_MCXNX4X