Skip to content

Commit f415677

Browse files
committed
完善industry_io_gateway的mpu配置
1 parent 20929bc commit f415677

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/industry_io_gateway/board/drv_mpu.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ int mpu_init(void)
5252

5353
#ifdef BSP_USING_ETH
5454
/* Configure the MPU attributes as Device not cacheable
55-
for ETH DMA descriptors */
55+
for ETH DMA descriptors and RX Buffers*/
5656
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
5757
MPU_InitStruct.BaseAddress = 0x30040000;
58-
MPU_InitStruct.Size = MPU_REGION_SIZE_256B;
58+
MPU_InitStruct.Size = MPU_REGION_SIZE_32KB;
5959
MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
60-
MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
60+
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
6161
MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
62-
MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
62+
MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
6363
MPU_InitStruct.Number = MPU_REGION_NUMBER2;
64-
MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
64+
MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
6565
MPU_InitStruct.SubRegionDisable = 0x00;
6666
MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_ENABLE;
6767

0 commit comments

Comments
 (0)