Skip to content

Commit cd7bc21

Browse files
committed
[nrf fromtree] boot/bootutil/src/loader: fix Cortex reset-vector offset
While reading cortex Vector table, the reset handler addres is at offest of one 4 bytes word, not two words. This patch corrects this offset. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no> (cherry picked from commit f48e87edd473abdc966c03fadb8a00305e466732)
1 parent d2b3671 commit cd7bc21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static const struct image_version mcuboot_s0_s1_image_version = {
147147
#endif
148148

149149
/* Valid only for ARM Cortext M */
150-
#define RESET_OFFSET (2 * sizeof(uint32_t))
150+
#define RESET_OFFSET sizeof(uint32_t)
151151

152152
#if BOOT_MAX_ALIGN > 1024
153153
#define BUF_SZ BOOT_MAX_ALIGN

0 commit comments

Comments
 (0)