LLS POWER MODE PROTECTION

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

LLS POWER MODE PROTECTION

713 Views
mirsadcurri
Contributor I

Hi,

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?

Thank you!

Labels (2)
0 Kudos
2 Replies

606 Views
mirsadcurri
Contributor I

Mark thank you, I found the code. It was generated automatically from Processor Expert on the system_MKL27Z4.h  file.

Regards

0 Kudos

606 Views
mjbcswitzerland
Specialist V

Hi

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.

Regards

Mark


Kinetis: http://www.utasker.com/kinetis.html
Kinetis KL27:
- http://www.utasker.com/kinetis/FRDM-KL27Z.html
- http://www.utasker.com/kinetis/Capuccino-KL27.html
Low power and LLWU: http://www.utasker.com/kinetis/LLWU.html
Low power videos:
- https://youtu.be/kWNlsAoMly4
- https://youtu.be/iZEMRiDmHzw
- https://youtu.be/v4UnfcDiaE4

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

Professional Kinetis support, one-on-one training and complete fast-track project solutions: http://www.utasker.com/support.html

0 Kudos