From 8a70a830391ed6031d91c27f0b1ce1b8ff8ddf24 Mon Sep 17 00:00:00 2001 From: Mattia Moffa Date: Thu, 30 Apr 2026 18:53:09 +0200 Subject: [PATCH] Change ECC partitioning --- config/examples/kinetis-kl26.config | 6 +++--- docs/Targets.md | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config/examples/kinetis-kl26.config b/config/examples/kinetis-kl26.config index 96396ab6..df190ee2 100644 --- a/config/examples/kinetis-kl26.config +++ b/config/examples/kinetis-kl26.config @@ -32,8 +32,8 @@ CFLAGS_EXTRA+=-DWOLFSSL_USE_ALIGN WOLFBOOT_SECTOR_SIZE?=0x400 # 128KB flash, 16KB SRAM -# 24KB bootloader, 48KB boot/update partitions, 1KB swap at last sector +# 28KB bootloader, 48KB boot/update partitions, 1KB swap at last sector WOLFBOOT_PARTITION_SIZE?=0xC000 -WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x6000 -WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x12000 +WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x7000 +WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x13000 WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x1FC00 diff --git a/docs/Targets.md b/docs/Targets.md index 51d56dc5..5eadc876 100644 --- a/docs/Targets.md +++ b/docs/Targets.md @@ -4751,12 +4751,14 @@ For the LMS variant (partition size `0xB000`): 0xAFFB trigger_magic.bin ``` -4) Flash `update.bin` to the update partition base address and reset. On the -next boot wolfBoot will perform the update and launch version 2. The test app -will then light up the onboard LED green instead of blue. +4) Flash `update.bin` to the update partition base address (`0x13000` in both +configs) and reset. On the next boot wolfBoot will perform the update and +launch version 2. The test app will then light up the onboard LED green +instead of blue. -- ECC256 variant: `loadbin update.bin 0x12000` -- LMS variant: `loadbin update.bin 0x13000` +``` +loadbin update.bin 0x13000 +``` ### KL26Z: Debugging