I'm trying to use low leakage stop mode in MKL27Z128VFT4 but when call SMC_HAL_GetProtection(SMC, kAllowPowerModeLls), I get a "0". Even when I try to set that bit nothing happens. I'm stuck . Please can anybody tell me whats going on?
SMC_PMPROT is a write-once register so if there is initialisation code setting it to 0 you can never change the setting again (until after next reset).
Therefore, search the code to see whether it is being written already, and then write the value that you require in your application instead.