From 4862dbd37abecf07cab9a6044bd537cc09f87745 Mon Sep 17 00:00:00 2001 From: caleb crome Date: Mon, 6 Mar 2023 15:30:42 -0800 Subject: [PATCH] Allow board.h to configure BOARD_FLASH_APP_START For the i.MX RT boards, the current BOARD_FLASH_APP_START is fixed at 0x6000C000. However it is sometimes useful to put the application in a different memory location. This patch allows the board.h to configure the app start address. --- ports/mimxrt10xx/boards.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/mimxrt10xx/boards.h b/ports/mimxrt10xx/boards.h index 05437d4f5..f6c82db46 100644 --- a/ports/mimxrt10xx/boards.h +++ b/ports/mimxrt10xx/boards.h @@ -48,7 +48,9 @@ extern uint32_t _board_boot_length[]; #define BOARD_BOOT_LENGTH ((uint32_t) _board_boot_length) // Flash Start Address of Application, typically 0x6000C000 +#ifndef BOARD_FLASH_APP_START #define BOARD_FLASH_APP_START (FlexSPI_AMBA_BASE + 0xC000) +#endif // Double Reset tap to enter DFU #define TINYUF2_DFU_DOUBLE_TAP 1