mirror of https://github.com/rusefi/openblt.git
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:
parent
1307619a55
commit
ef163c8d18
|
@ -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 ***/
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue