Use non-guarded OTP reads to avoid bus faults.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-10-13 20:21:43 +02:00
parent 84c3efd782
commit 32eed01508
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -56,7 +56,7 @@ static int otp_write_data_raw(uint16_t row, uint8_t *data, uint16_t len) {
}
static uint8_t* otp_buffer(uint16_t row) {
volatile uint32_t *p = ((uint32_t *)(OTP_DATA_GUARDED_BASE + (row*2)));
volatile uint32_t *p = ((uint32_t *)(OTP_DATA_BASE + (row*2)));
return (uint8_t *)p;
}