1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Enabled MPU for ITCM-RAM and MemManage_Handler

This commit is contained in:
Andrey Mironov 2018-07-24 12:59:16 +03:00
parent 805b2f4b1e
commit 134616ed32
3 changed files with 30 additions and 2 deletions

View file

@ -162,6 +162,10 @@ void systemInit(void)
{
checkForBootLoaderRequest();
// Mark ITCM-RAM as read-only
LL_MPU_ConfigRegion(LL_MPU_REGION_NUMBER0, 0, RAMITCM_BASE, LL_MPU_REGION_SIZE_16KB | LL_MPU_REGION_PRIV_RO_URO);
LL_MPU_Enable(LL_MPU_CTRL_PRIVILEGED_DEFAULT);
//SystemClock_Config();
// Configure NVIC preempt/priority groups