Storing data in GPR registers through SNVS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Storing data in GPR registers through SNVS

765 Views
pb3
Contributor II

Hi 

I need to store some data by the TF-A (1 data byte) in non volatile storage that will survive resets. 

I noticed that in the TF-A there is something like SNVS, that uses GPR0 register. I tried to use GPR0 register by myself in order to store data in this register but for some reason whenever I write a value to GPR0 i I get 0 when I read it. Therefore I have two questions:
- how can I store a value in GPR0/1/2/3 register in TF-A? 

- if I don't use battery backup but instead low power domain block is connected to VDD (as suggested by the manual) will the value stored in GPRx persist the reset when requested by CPU through RESET_REQ?

I use LS1028A

0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2250317%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EStoring%20data%20in%20GPR%20registers%20through%20SNVS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250317%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20store%20some%20data%20by%20the%20TF-A%20(1%20data%20byte)%20in%20non%20volatile%20storage%20that%20will%20survive%20resets.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20noticed%20that%20in%20the%20TF-A%20there%20is%20something%20like%20SNVS%2C%20that%20uses%20GPR0%20register.%20I%20tried%20to%20use%20GPR0%20register%20by%20myself%20in%20order%20to%20store%20data%20in%20this%20register%20but%20for%20some%20reason%20whenever%20I%20write%20a%20value%20to%20GPR0%20i%20I%20get%200%20when%20I%20read%20it.%20Therefore%20I%20have%20two%20questions%3A%3CBR%20%2F%3E-%20how%20can%20I%20store%20a%20value%20in%20GPR0%2F1%2F2%2F3%20register%20in%20TF-A%3F%26nbsp%3B%3C%2FP%3E%3CP%3E-%20if%20I%20don't%20use%20battery%20backup%20but%20instead%20low%20power%20domain%20block%20is%20connected%20to%20VDD%20(as%20suggested%20by%20the%20manual)%20will%20the%20value%20stored%20in%20GPRx%20persist%20the%20reset%20when%20requested%20by%20CPU%20through%20RESET_REQ%3F%3C%2FP%3E%3CP%3EI%20use%20LS1028A%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E