Use non-guarded OTP reads to avoid bus faults.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
84c3efd782
commit
32eed01508
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue