From 6c23de500571ea208dc614379619c1c8a9e733d3 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 13 Feb 2024 15:19:13 +0200 Subject: [PATCH] platforms/nuttx/src/bootloader/common/bl.c: Fix initialization of vec_base address The default address was wrong. It doesn't cause harm, as it is anyhow set in the NuttX initialization again. Signed-off-by: Jukka Laitinen --- platforms/nuttx/src/bootloader/common/bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/src/bootloader/common/bl.c b/platforms/nuttx/src/bootloader/common/bl.c index 354bdcfcaefc..c42d0ef3e046 100644 --- a/platforms/nuttx/src/bootloader/common/bl.c +++ b/platforms/nuttx/src/bootloader/common/bl.c @@ -294,7 +294,7 @@ void jump_to_app() { const uint32_t *app_base = (const uint32_t *)APP_LOAD_ADDRESS; - const uint32_t *vec_base = (const uint32_t *)app_base + APP_VECTOR_OFFSET; + const uint32_t *vec_base = (const uint32_t *)app_base + APP_VECTOR_OFFSET_WORDS; /* * We refuse to program the first word of the app until the upload is marked