Use security register bits 15-31 as EEPROM

Technical questions regarding the XTC tools and programming with XMOS.
mmar
Experienced Member
Posts: 123
Joined: Fri Jul 05, 2013 5:55 pm

Use security register bits 15-31 as EEPROM

Post by mmar »

I try found how to use bits 15-31 from program code but only in datasheet say user usage.

How many times may be reprogram this bits?

How code i need?


User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

You can program it once only as far as I know.
mmar
Experienced Member
Posts: 123
Joined: Fri Jul 05, 2013 5:55 pm

Post by mmar »

Xburn provides two writes when OTP enabled with XTAG for debug, then i mean multiple writes is possible from code in any time.

But how ?
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

With OTP memory you can only write one state of a bit (blowing fuses).
Say the unwritten state is 1 and we can only write zeros then we have for example

Initial: 1111
Write1: 1110
Write2: 0110
Write3: 0000
write4: 1111
mmar
Experienced Member
Posts: 123
Joined: Fri Jul 05, 2013 5:55 pm

Post by mmar »

Is security register part of OTP???

I mean NO.
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

Yes, the security register is loaded from the OTP array.