diff --git a/lib/nxp/mcux-sdk b/lib/nxp/mcux-sdk index a242602a0..ae2ab01d9 160000 --- a/lib/nxp/mcux-sdk +++ b/lib/nxp/mcux-sdk @@ -1 +1 @@ -Subproject commit a242602a02fee2945287d446801217904a26fc7e +Subproject commit ae2ab01d9d70ad00cd0e935c2552bd5f0e5c0294 diff --git a/ports/mimxrt10xx/boards.c b/ports/mimxrt10xx/boards.c index 417c62f0c..350bd717f 100644 --- a/ports/mimxrt10xx/boards.c +++ b/ports/mimxrt10xx/boards.c @@ -46,6 +46,10 @@ const uint8_t dcd_data[] = { 0x00 }; void board_init(void) { +#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT + if (SCB_CCR_DC_Msk != (SCB_CCR_DC_Msk & SCB->CCR)) SCB_EnableDCache(); +#endif + // Init clock BOARD_BootClockRUN(); diff --git a/ports/mimxrt10xx/boards/imxrt1010_evk/flash_config.c b/ports/mimxrt10xx/boards/imxrt1010_evk/flash_config.c index a3e8039b4..867ad30c4 100644 --- a/ports/mimxrt10xx/boards/imxrt1010_evk/flash_config.c +++ b/ports/mimxrt10xx/boards/imxrt1010_evk/flash_config.c @@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data"))) /************************************* * Boot Data *************************************/ -const BOOT_DATA_T boot_data = { +const BOOT_DATA_T g_boot_data = { BOARD_BOOT_START, /* boot start location */ BOARD_BOOT_LENGTH, /* bootloader size 32K */ PLUGIN_FLAG, /* Plugin flag */ diff --git a/ports/mimxrt10xx/boards/imxrt1020_evk/flash_config.c b/ports/mimxrt10xx/boards/imxrt1020_evk/flash_config.c index 90f3567c3..7aa83205c 100644 --- a/ports/mimxrt10xx/boards/imxrt1020_evk/flash_config.c +++ b/ports/mimxrt10xx/boards/imxrt1020_evk/flash_config.c @@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data"))) /************************************* * Boot Data *************************************/ -const BOOT_DATA_T boot_data = { +const BOOT_DATA_T g_boot_data = { BOARD_BOOT_START, /* boot start location */ BOARD_BOOT_LENGTH, /* bootloader size 48K */ PLUGIN_FLAG, /* Plugin flag*/ diff --git a/ports/mimxrt10xx/boards/imxrt1024_evk/flash_config.c b/ports/mimxrt10xx/boards/imxrt1024_evk/flash_config.c index cf203851c..bc5ac51d2 100644 --- a/ports/mimxrt10xx/boards/imxrt1024_evk/flash_config.c +++ b/ports/mimxrt10xx/boards/imxrt1024_evk/flash_config.c @@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data"))) /************************************* * Boot Data *************************************/ -const BOOT_DATA_T boot_data = { +const BOOT_DATA_T g_boot_data = { BOARD_BOOT_START, /* boot start location */ BOARD_BOOT_LENGTH, /* bootloader size 48K */ PLUGIN_FLAG, /* Plugin flag */ diff --git a/ports/mimxrt10xx/boards/imxrt1060_evk/flash_config.c b/ports/mimxrt10xx/boards/imxrt1060_evk/flash_config.c index b88dcca49..5b959963b 100644 --- a/ports/mimxrt10xx/boards/imxrt1060_evk/flash_config.c +++ b/ports/mimxrt10xx/boards/imxrt1060_evk/flash_config.c @@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data"))) /************************************* * Boot Data *************************************/ -const BOOT_DATA_T boot_data = { +const BOOT_DATA_T g_boot_data = { BOARD_BOOT_START, /* boot start location */ BOARD_BOOT_LENGTH, /* bootloader size 48K */ PLUGIN_FLAG, /* Plugin flag */ diff --git a/ports/mimxrt10xx/boards/imxrt1064_evk/flash_config.c b/ports/mimxrt10xx/boards/imxrt1064_evk/flash_config.c index cf203851c..bc5ac51d2 100644 --- a/ports/mimxrt10xx/boards/imxrt1064_evk/flash_config.c +++ b/ports/mimxrt10xx/boards/imxrt1064_evk/flash_config.c @@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data"))) /************************************* * Boot Data *************************************/ -const BOOT_DATA_T boot_data = { +const BOOT_DATA_T g_boot_data = { BOARD_BOOT_START, /* boot start location */ BOARD_BOOT_LENGTH, /* bootloader size 48K */ PLUGIN_FLAG, /* Plugin flag */ diff --git a/ports/mimxrt10xx/boards/metro_m7_1011/flash_config.c b/ports/mimxrt10xx/boards/metro_m7_1011/flash_config.c index fd1c0fb7a..0136c0052 100644 --- a/ports/mimxrt10xx/boards/metro_m7_1011/flash_config.c +++ b/ports/mimxrt10xx/boards/metro_m7_1011/flash_config.c @@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data"))) /************************************* * Boot Data *************************************/ -const BOOT_DATA_T boot_data = { +const BOOT_DATA_T g_boot_data = { BOARD_BOOT_START, /* boot start location */ BOARD_BOOT_LENGTH, /* bootloader size 32K */ PLUGIN_FLAG, /* Plugin flag */