mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
OP-1275 Add a memory barrier before remapping the vector table
This commit is contained in:
parent
ef14235cbe
commit
0682e60053
@ -212,6 +212,8 @@ void NVIC_Configuration(void)
|
||||
for (uint32_t i = 0; i < 48; i++) {
|
||||
VectorTable[i] = romTable[i];
|
||||
}
|
||||
// Ensure all memory operation completes prior the remap
|
||||
__DSB();
|
||||
|
||||
/* Enable the SYSCFG peripheral clock*/
|
||||
RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user