Fix secure otp build for non rp2350.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-11-08 19:45:50 +01:00
parent 621d5553e1
commit 9018ebb55d
3 changed files with 10 additions and 3 deletions

View File

@@ -168,8 +168,10 @@ int otp_enable_secure_boot(uint8_t bootkey, bool secure_lock) {
uint8_t flagsp2[] = { page2v, page2v, page2v, 0x00 };
PICOKEY_CHECK(otp_write_data_raw(OTP_DATA_PAGE2_LOCK1_ROW, flagsp2, sizeof(flagsp2)));
}
#elif defined(ESP_PLATFORM)
// TODO: Implement secure boot for ESP32-S3
#endif // PICO_RP2350
goto err;
err:
if (ret != PICOKEY_OK) {
return ret;