1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-23 15:08:19 +00:00

fix(core/prodtest): fix prodtest mpu setting

[no changelog]

(cherry picked from commit 48459a09dd)
This commit is contained in:
tychovrahe 2025-06-26 13:16:14 +02:00 committed by Lukas Bielesch
parent e2b8206b9b
commit a09e6f04d4

View File

@ -237,7 +237,11 @@ static void mpu_init_fixed_regions(void) {
SET_REGION( 0, FIRMWARE_START, 1024, FLASH_DATA, YES, NO );
SET_REGION( 1, FIRMWARE_START + 1024, FIRMWARE_MAXSIZE - 1024, FLASH_CODE, NO, NO );
SET_REGION( 2, MAIN_RAM_START, MAIN_RAM_SIZE, SRAM, YES, NO );
#ifdef AUX2_RAM_START
SET_REGION( 3, AUX2_RAM_START, AUX2_RAM_SIZE, SRAM, YES, NO );
#else
DIS_REGION( 3 );
#endif
SET_REGION( 4, AUX1_RAM_START, AUX1_RAM_SIZE, SRAM, YES, NO );
#elif defined(SECMON)