Refs #1773. Disable ICache before updating flash memory.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1048 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2023-04-28 19:55:13 +00:00
parent 1307619a55
commit ef163c8d18
1 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,8 @@ void FlashInit(void)
/* init the flash block info structs by setting the address to an invalid address */
blockInfo.base_addr = FLASH_INVALID_ADDRESS;
bootBlockInfo.base_addr = FLASH_INVALID_ADDRESS;
/* make sure the instruction cache is disabled prior to updating cacheable memory. */
HAL_ICACHE_Disable();
} /*** end of FlashInit ***/