cancel
Showing results for 
Search instead for 
Did you mean: 

READ from OTP

arunl4g
Associate II
Posted on June 12, 2015 at 09:48

Hej

can anyone tell me how to read from OTP. If possible put some sample code.

Thank you ..
5 REPLIES 5
Posted on June 12, 2015 at 09:53

It's plainly memory-mapped, as the vast majority of other resources in these chips, due to the huge address space... So either you learn how to map variables (linker script stuff), or you resort to the low-level *(type_you_want *)(address_you_want).

JW
arunl4g
Associate II
Posted on June 12, 2015 at 10:07

hej JW,

i can follow the second step. i would like to programming steps that i need to follow. can u put some sample code for that. i have written the program that write uint32_t(word)

at a time . now i want to read word at a time ....

can anyone help me ?

Posted on June 12, 2015 at 10:21

printf(''%u'', *(uint32_t*)(0x1fff7810))

Posted on June 12, 2015 at 15:24

Cast a pointer to the structure at the address of the OTP, and access the structure via that point. Some basic C

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
arunl4g
Associate II
Posted on June 15, 2015 at 09:33

thank you for both of you 🙂