External debug reset catch debug event not working

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

External debug reset catch debug event not working

1,191件の閲覧回数
pauricmcginty
Contributor I

I am developing an external JTAG debugger for some NXP products.

For external debug a Reset Catch debug event should be generated when EDECR.RCE = 1 and the processor exits reset state. If halting debug mode is enabled this should cause the processor to enter debug mode.

This does not seem to work for either i.MX8MQ or i.MX6Q.

When I set EDECR.RCE = 1 and do a reset the processor boots (does not break at reset).

When I check the reset state (EDPRSR.R) it actually shows that the processor is in reset state, even though it is booting.

Are there any known issues with external debug reset catch debug events?

0 件の賞賛
返信
3 返答(返信)

1,045件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Pauric

issue may be explained below arm article "Why is my target not responding to debug commands..", as

i.MX6,8 reset is handled by boot rom and System Reset Controller (SRC).

ARM Information Center 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,045件の閲覧回数
pauricmcginty
Contributor I

Thanks Igor.

The link is interesting. However, I'm not sure how it works as I'm pretty certain that hardware breakpoints get cleared by a system reset. I have tried setting a breakpoint at 0x0 and then asserting nSRST but it does not break.

I have tried playing around with the A53 Reset Control Register (SRC_A53RCR0) on i.MX8 to assert a reset (instead of using the nSRST pin) and in that case I do see it breaking at 0x0 when I set EDECR.RCE = 1. It would be nice if it did the same thing when asserting nSRST.

0 件の賞賛
返信

1,045件の閲覧回数
ranjith_tc
Contributor I

Hi Pauric,

What all things i need to do on i.MX8 to assert a reset in A53 using Reset Control Register and break at reset (other than set EDECR.RCE = 1) ?

0 件の賞賛
返信