From 32eed015082e17bb0762ac8e13ab0bb08c6100b7 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 13 Oct 2024 20:21:43 +0200 Subject: [PATCH] Use non-guarded OTP reads to avoid bus faults. Signed-off-by: Pol Henarejos --- src/fs/otp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/otp.c b/src/fs/otp.c index 94458df..a224fd2 100644 --- a/src/fs/otp.c +++ b/src/fs/otp.c @@ -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; }