Solved! Go to Solution.
Hi Celeste_Liu, sorry for the delay in responding.
I managed to discover the problem.
The problem was not related to the low power mode, but rather to pin 19 of the MKL03Z32VFK4R.
I discovered that pin 19 returns to the default configuration, which is the NMI (Non-Maskable Interrupt) function, after the partial reset that occurs after wake-up.
I use pin 19 as GPIO input, that is, as PTB5 to read the state of a switch.
I believe that after the reset, some noise was activating the NMI handler before it was possible to configure the pin as PTB5.
As I don't use the NMI function, I saw that the default NMI handler is a while(1){} loop that locks the processor.
I solved the problem by disabling the NMI option, according to the guidance I found in the post: https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949741
I changed Flash_Config word4 to 0xFFFF3BFE and did many tests to confirm that the problem had been resolved.
I thank you for the support.
Hello @carlos_takeo_ta ,
Thanks for your post. I think this may be related to ERR008010. Please check whether PMC_REGSC[ACKISO] is cleared and whether the corresponding flag of the comparator in the LLWU_Fx register is cleared. Correspondingly, it provides a workaround.
KL03Z Errata Link: KL03Z_1N86K
Hope it help you. If you have any further questions or need more information, please let me know.
Best Regards,
Celeste
--------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
--------------------------------------------------------------------------------------
Hi Celeste_Liu, thank you very much for the feedback.
I am not using the CMP comparator module in my project.
Do you think that even so, the ERR008010 errata would be relevant?
Anyway, could you show me what the code suggested by the workaround would look like?
Best Regards.
Hello carlos,
You are correct. Since CMP was not used, it should have nothing to do with this errata.
I would suggest you refer to the power manager demo under the SDK installation folder
SDK_2.3.1_FRDM-KL03Z\boards\frdmkl03z\demo_apps\power_manager
This demo application demonstrates the use of power modes in the SDK. and use source pin to wake up from VLLS3.
SDK download link: Select Board | MCUXpresso SDK Builder
Hope it can help you.
BRs,
Celeste
Hi Celeste_Liu, sorry for the delay in responding.
I managed to discover the problem.
The problem was not related to the low power mode, but rather to pin 19 of the MKL03Z32VFK4R.
I discovered that pin 19 returns to the default configuration, which is the NMI (Non-Maskable Interrupt) function, after the partial reset that occurs after wake-up.
I use pin 19 as GPIO input, that is, as PTB5 to read the state of a switch.
I believe that after the reset, some noise was activating the NMI handler before it was possible to configure the pin as PTB5.
As I don't use the NMI function, I saw that the default NMI handler is a while(1){} loop that locks the processor.
I solved the problem by disabling the NMI option, according to the guidance I found in the post: https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949741
I changed Flash_Config word4 to 0xFFFF3BFE and did many tests to confirm that the problem had been resolved.
I thank you for the support.