Merge pull request #2488 from openmv/boot_fix_xn
Some checks failed
🔎 Check Code Formatting / formatting-check (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_GIGA) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NANO_33_BLE_SENSE) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NANO_RP2040_CONNECT) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_NICLA_VISION) (push) Has been cancelled
🔥 Firmware Build / build-firmware (ARDUINO_PORTENTA_H7) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV2) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV3) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV4) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV4P) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMVPT) (push) Has been cancelled
🔥 Firmware Build / build-firmware (OPENMV_RT1060) (push) Has been cancelled
🔥 Firmware Build / code-size-report (push) Has been cancelled
🔥 Firmware Build / stable-release (push) Has been cancelled
🔥 Firmware Build / development-release (push) Has been cancelled

bootloader: Fix XN bit for first partition.
This commit is contained in:
Ibrahim Abdelkader 2024-11-07 12:02:01 +02:00 committed by GitHub
commit 11a1256eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ __weak void port_mpu_init(void) {
for (size_t i = 0; i < OMV_BOOT_PARTITIONS_COUNT; i++) {
// Note first region is the bootloader's partition,
// which normally needs to be executable.
port_mpu_config(&OMV_BOOT_PARTITIONS[i], 1, 1, (i == 0));
port_mpu_config(&OMV_BOOT_PARTITIONS[i], 1, 1, (i != 0));
}
}