Hi,
I am using KE06 (MKE06Z128xxx4, FRDM eval board) and putting it in deep sleep using following piece of code -
{
SCB->SCR |= 1<<2; // Enable deep sleep feature
__asm ("WFI \n"); // Wait for interrupt
}
I looks going in sleep but if i send a J1939 packet to it, it doesn't wake-up.
Please let me know if i am missing something.
Thanks
Vikas
解決済! 解決策の投稿を見る。
Hi vikas shrivastava,
Did you configure the bit in the wake-up interrupt note before you entering power down mode?
NOTE
This interrupt can only occur if the MSCAN was in sleep mode
(SLPRQ = 1 and SLPAK = 1) before entering power down
mode, the wake-up option is enabled (WUPE = 1), and the
wake-up interrupt is enabled (WUPIE = 1).
Please check it.
Regards
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi vikas shrivastava,
Did you configure the bit in the wake-up interrupt note before you entering power down mode?
NOTE
This interrupt can only occur if the MSCAN was in sleep mode
(SLPRQ = 1 and SLPAK = 1) before entering power down
mode, the wake-up option is enabled (WUPE = 1), and the
wake-up interrupt is enabled (WUPIE = 1).
Please check it.
Regards
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jingjing,
Thanks for your reply.
Looks like it started working (waking up with CAN message), the only additional thing after setting SLPRQ, SLPAK, WUPE, WUPIE i had to put small delay.
For now after wakingup it is not accepting any CAN messages, i am observing it and let you know.
I have another observation - if i keep the STLink debugger plugged to evaluation board, it doesn't go to sleep. But if i unplug the STLink from board and then restart, it goes to sleep. Is it expected behaviour or i am missing something.