Trouble debugging with JTAG when using the WFI instruction

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

Trouble debugging with JTAG when using the WFI instruction

ソリューションへジャンプ
1,537件の閲覧回数
nathanpalmer
Contributor IV

I know that the JTAG (SJC) controller is prone to drop off when in WFI mode because the clock source is turned off.  I have read that there is a way to keep the JTAG clock active while in WFI mode on the iMX6 but I could not find the way to do it.

I did find the SJC_GPCCR register but I don't know how to use it?

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 解決策
1,159件の閲覧回数
AnsonHuang
NXP Employee
NXP Employee

Hi, Nathan

     Which kernel are you using, I think you can try disable WAIT mode.

     For L3.10, you can comment out BM_CLPCR_ARM_CLK_DIS_ON_LPM setting in arch/arm/mach-imx/pm-imx6.c->imx6_set_lpm->WAIT_UNCLOCKED;

     For L3.0.35, you can make sure bit5 of CCM_CLPCR is clear, just clear it after kernel boot up, or just pass "enable_wait_mode=off" in kernel command line to disable WAIT mode.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,160件の閲覧回数
AnsonHuang
NXP Employee
NXP Employee

Hi, Nathan

     Which kernel are you using, I think you can try disable WAIT mode.

     For L3.10, you can comment out BM_CLPCR_ARM_CLK_DIS_ON_LPM setting in arch/arm/mach-imx/pm-imx6.c->imx6_set_lpm->WAIT_UNCLOCKED;

     For L3.0.35, you can make sure bit5 of CCM_CLPCR is clear, just clear it after kernel boot up, or just pass "enable_wait_mode=off" in kernel command line to disable WAIT mode.

0 件の賞賛
返信
1,159件の閲覧回数
nathanpalmer
Contributor IV

I am on Baremetal using some functions from the MX6 SDK 1.1.  Thanks for pointing me to the BM_CLPCR_ARM_CLK_DIS_ON_LPM flag, that is just what I was looking for.  I clear the flag when in DEBUG mode and the JTAG keeps on going.  Thanks.

Side question:  Is there a public repo or release schedule for the Freescale Baremetal SDK? 

0 件の賞賛
返信
1,159件の閲覧回数
AnsonHuang
NXP Employee
NXP Employee

Hi, Nathan

     Sorry that I am not aware of this baremetal SDK, I am from linux BSP team, you can post your question again, hope someone else would help you.

0 件の賞賛
返信