File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
projects/industry_io_gateway/board Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments