KE06 does not wakeup on MSCAN interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KE06 does not wakeup on MSCAN interrupt

ソリューションへジャンプ
1,001件の閲覧回数
newke06user
Contributor I

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

ラベル(1)
0 件の賞賛
返信
1 解決策
768件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

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!

-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
769件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

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!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
768件の閲覧回数
newke06user
Contributor I

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.



0 件の賞賛
返信