How to access GPREGRET2 with sd API call?
thanks
jing
How to access GPREGRET2 with sd API call?
thanks
jing
Thank you very much for your quick reply!
@Vidar Berg : is it possible that the code above doesn't work with Keil code optimization? I am using Keil and developpement phase was fine without code optimization (level 0), then compile for production with optimization level 3 and errors occur?!
did not manage to reproduce this, but please try to add a DSB instruction after 'unprotect' line to ensure that the register is set before you access the power register (i.e., __DSB()).
@Vidar Berg : We have tried your suggestion today and it is working. Thanks a lot for your support.
it is possible? this is not a 8 bit register?