Skip to content

Commit

Permalink
stm32/sdram: Fix MPU config to use MPU_CONFIG_NOACCESS.
Browse files Browse the repository at this point in the history
Followup to 2345c1a.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 8, 2024
1 parent bedb649 commit d712feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/stm32/sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static void sdram_init_seq(SDRAM_HandleTypeDef
then enable access/caching for the size used
*/
uint32_t irq_state = mpu_config_start();
mpu_config_region(MPU_REGION_SDRAM1, SDRAM_START_ADDRESS, MPU_CONFIG_DISABLE(0x00, MPU_REGION_SIZE_512MB));
mpu_config_region(MPU_REGION_SDRAM1, SDRAM_START_ADDRESS, MPU_CONFIG_NOACCESS(0x00, MPU_REGION_SIZE_512MB));
mpu_config_region(MPU_REGION_SDRAM2, SDRAM_START_ADDRESS, MPU_CONFIG_SDRAM(SDRAM_MPU_REGION_SIZE));
mpu_config_end(irq_state);
#endif
Expand Down

0 comments on commit d712feb

Please sign in to comment.