From 9260cf7425c4402f4c6ffb78b59cebdd7fb96837 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Thu, 3 Oct 2024 12:02:37 +0100 Subject: [PATCH] Fix TBYB flag - it's bool, not uint32_t --- src/rp2_common/pico_bootrom/bootrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/pico_bootrom/bootrom.c b/src/rp2_common/pico_bootrom/bootrom.c index b12d178b2..d417794fe 100644 --- a/src/rp2_common/pico_bootrom/bootrom.c +++ b/src/rp2_common/pico_bootrom/bootrom.c @@ -75,7 +75,7 @@ void __attribute__((noreturn)) rom_reset_usb_boot(uint32_t usb_activity_gpio_pin #define VERSION_DOWNGRADE_ERASE_ADDR *(uint32_t*)0x400e0338 #define TBYB_FLAG_ADDR *(uint32_t*)0x400e0348 #define IMAGE_DEF_VERIFIED(scan_workarea) *(uint32_t*)(0x64 + (uint32_t)scan_workarea) -#define IMAGE_DEF_TBYB_FLAGGED(scan_workarea) *(uint32_t*)(0x4c + (uint32_t)scan_workarea) +#define IMAGE_DEF_TBYB_FLAGGED(scan_workarea) *(bool*)(0x4c + (uint32_t)scan_workarea) #define IMAGE_DEF_BASE(scan_workarea) *(uint32_t*)(0x54 + (uint32_t)scan_workarea) #define IMAGE_DEF_REL_BLOCK_OFFSET(scan_workarea) *(uint32_t*)(0x5c + (uint32_t)scan_workarea)