This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 2d9bcfb3627d1fa2b8d1964015def0ee5497458e Author: Wiktor Kwiatkowski <[email protected]> AuthorDate: Tue Oct 7 08:50:44 2025 +0200 hw/bsp/lpcxpresso55s28: fix bsp flash map, update syscfg - In the BSP file, changed the sector size to 32kB, which is actual erasable block size for this flash device. The previous value (512kB) from datasheet was incorrect and caused problems when erasing flash - Switched the downloader to jlink, because pyocd debugger was not working properly - Added a new value to change the default number of image sectors from 128 to 6. This prevents an assert error in mcuboot where the image trailer tried to occupy more space than available in the image slot --- hw/bsp/lpcxpresso55s28/bsp.yml | 22 +++++++++++----------- hw/bsp/lpcxpresso55s28/syscfg.yml | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/hw/bsp/lpcxpresso55s28/bsp.yml b/hw/bsp/lpcxpresso55s28/bsp.yml index d189a3de6..5b159607f 100644 --- a/hw/bsp/lpcxpresso55s28/bsp.yml +++ b/hw/bsp/lpcxpresso55s28/bsp.yml @@ -32,28 +32,28 @@ bsp.flash_map: FLASH_AREA_BOOTLOADER: device: 0 offset: 0x00000000 - size: 40kB + size: 32kB FLASH_AREA_IMAGE_SCRATCH: device: 0 - offset: 0x0000A000 - size: 8kB + offset: 0x00008000 + size: 32kB FLASH_AREA_IMAGE_0: device: 0 - offset: 0x0000C000 - size: 216kB + offset: 0x00010000 + size: 192kB FLASH_AREA_IMAGE_1: device: 0 - offset: 0x00042000 - size: 216kB + offset: 0x00040000 + size: 192kB # User areas FLASH_AREA_REBOOT_LOG: user_id: 0 device: 0 - offset: 0x00078000 - size: 16kB + offset: 0x00070000 + size: 32kB FLASH_AREA_NFFS: user_id: 1 device: 0 - offset: 0x0007C000 - size: 16kB + offset: 0x00078000 + size: 32kB diff --git a/hw/bsp/lpcxpresso55s28/syscfg.yml b/hw/bsp/lpcxpresso55s28/syscfg.yml index 4aabbc0ef..24eaaa759 100644 --- a/hw/bsp/lpcxpresso55s28/syscfg.yml +++ b/hw/bsp/lpcxpresso55s28/syscfg.yml @@ -65,6 +65,7 @@ syscfg.vals: UART_5_PIN_TX: 9 UART_5_PIN_RX: 8 + BOOTUTIL_MAX_IMG_SECTORS: 6 CONFIG_FCB_FLASH_AREA: FLASH_AREA_NFFS REBOOT_LOG_FLASH_AREA: FLASH_AREA_REBOOT_LOG NFFS_FLASH_AREA: FLASH_AREA_NFFS
