Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ports/mimxrt10xx/boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,19 @@ void board_app_jump(void) {

// TODO protect bootloader region

// Clean and disable caches before jumping to app
// This is needed when running at full speed (996MHz) - without it
// stale cache data can cause a crash on startup
#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT
SCB_CleanDCache();
SCB_DisableDCache();
#endif
#if defined(__ICACHE_PRESENT) && __ICACHE_PRESENT
SCB_DisableICache();
#endif
__DSB();
__ISB();

/* switch exception handlers to the application */
SCB->VTOR = (uint32_t)BOARD_FLASH_APP_START;

Expand Down
Loading