How to access GPREGRET2 with sd API call?
thanks
jing
How to access GPREGRET2 with sd API call?
thanks
jing
From s132 v.3.0.0 it is possible to use the sd_power_gpregret_ APIs to access the GREPRET2 register.
Do you get a hardfault when you run the code above?
I have a print statement (via the UART, non interrupt driven, just out the UART register, loop until its done etc so super simple, yes, locks the cpu from much else while printing but quick and dirty)
Print statement never executes.
Comment out the writing to the register and all good. prints fine.
but are you using s132 v.3.0.0?
@Vidar Berg : please, could you confirm that the workaround above is the still valid and it is the right way to use GPREGRET2 with softdevice 132 v2.0.0? Thank you
Yes, this is still a valid workaround for s132 v2.0.0. New parameter to access the second register was added in v.3.0.0.