1
0
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:
Alessio Morale 2014-06-17 00:51:24 +02:00
parent ef14235cbe
commit 0682e60053

View File

@ -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);