mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 09:01:24 +02:00
Use non-guarded OTP reads to avoid bus faults.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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) {
|
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;
|
return (uint8_t *)p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user