This is an automated email from the ASF dual-hosted git repository. kasjer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit e6ce74b9e03bfd300e2db1a0c7acbcf5c09e7175 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Tue Oct 13 21:51:34 2026 +0200 hw/bsp/nucleo-f303k8: Build applications as bootloader nucleo-f303k8 has no space for bootloader and application was placed in FLASH_AREA_IMAGE_0 at the beginning of flash. Application was linked with image header gap so vector table was at 0x08000020 and common download script loaded .img file to 0x08000000, resulting in image that could not start. Define BOOT_LOADER (same as weact_g431cb) and place code in FLASH_AREA_BOOTLOADER, so application is linked at the beginning of flash and download script loads .elf.bin file there. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Jerzy Kasenberg <[email protected]> --- hw/bsp/nucleo-f303k8/bsp.yml | 10 ++++++---- hw/bsp/nucleo-f303k8/syscfg.yml | 5 +++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/bsp/nucleo-f303k8/bsp.yml b/hw/bsp/nucleo-f303k8/bsp.yml index e910ac0d6..831aae6d1 100644 --- a/hw/bsp/nucleo-f303k8/bsp.yml +++ b/hw/bsp/nucleo-f303k8/bsp.yml @@ -29,14 +29,16 @@ bsp.debugscript: "hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh" bsp.flash_map: areas: # System areas. + # Only one flash area for code FLASH_AREA_BOOTLOADER: - device: 0 - offset: 0x08100000 - size: 0kB - FLASH_AREA_IMAGE_0: device: 0 offset: 0x08000000 size: 64kB + # Empty flash area to allow build + FLASH_AREA_IMAGE_0: + device: 0 + offset: 0x08100000 + size: 0kB FLASH_AREA_IMAGE_1: device: 0 offset: 0x08200000 diff --git a/hw/bsp/nucleo-f303k8/syscfg.yml b/hw/bsp/nucleo-f303k8/syscfg.yml index e2e236d22..e46cba072 100644 --- a/hw/bsp/nucleo-f303k8/syscfg.yml +++ b/hw/bsp/nucleo-f303k8/syscfg.yml @@ -17,6 +17,11 @@ # under the License. # +syscfg.defs: + BOOT_LOADER: + description: 'Build everything as bootloader' + value: 1 + syscfg.vals: STM32_FLASH_SIZE_KB: 64 MCU_RAM_START: 0x20000000
