Skip to content

Commit 6f70939

Browse files
committed
【修正】mpu 配置 flash 容量错误
1 parent 6ab531d commit 6f70939

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

projects/art_pi_blink_led/board/drv_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int mpu_init(void)
8787
/* Configure the MPU attributes as WT for QSPI */
8888
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
8989
MPU_InitStruct.BaseAddress = 0x90000000;
90-
MPU_InitStruct.Size = MPU_REGION_SIZE_512KB;
90+
MPU_InitStruct.Size = MPU_REGION_SIZE_8MB;
9191
MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
9292
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
9393
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;

projects/art_pi_factory/board/drv_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int mpu_init(void)
8787
/* Configure the MPU attributes as WT for QSPI */
8888
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
8989
MPU_InitStruct.BaseAddress = 0x90000000;
90-
MPU_InitStruct.Size = MPU_REGION_SIZE_512KB;
90+
MPU_InitStruct.Size = MPU_REGION_SIZE_8MB;
9191
MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
9292
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
9393
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;

projects/art_pi_net_player/board/drv_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int mpu_init(void)
8787
/* Configure the MPU attributes as WT for QSPI */
8888
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
8989
MPU_InitStruct.BaseAddress = 0x90000000;
90-
MPU_InitStruct.Size = MPU_REGION_SIZE_512KB;
90+
MPU_InitStruct.Size = MPU_REGION_SIZE_8MB;
9191
MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
9292
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
9393
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;

projects/art_pi_wifi/board/drv_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int mpu_init(void)
8787
/* Configure the MPU attributes as WT for QSPI */
8888
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
8989
MPU_InitStruct.BaseAddress = 0x90000000;
90-
MPU_InitStruct.Size = MPU_REGION_SIZE_512KB;
90+
MPU_InitStruct.Size = MPU_REGION_SIZE_8MB;
9191
MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
9292
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
9393
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;

projects/industry_io_gateway/board/drv_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int mpu_init(void)
7171
/* Configure the MPU attributes as WT for QSPI */
7272
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
7373
MPU_InitStruct.BaseAddress = 0x90000000;
74-
MPU_InitStruct.Size = MPU_REGION_SIZE_512KB;
74+
MPU_InitStruct.Size = MPU_REGION_SIZE_8MB;
7575
MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
7676
MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
7777
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;

0 commit comments

Comments
 (0)