My J-Link debugger is not works.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

My J-Link debugger is not works.

1,211 Views
dnewbe
Contributor III

Hi Dears.

 

My custom board is not work after my code is run the error message is 

ERROR: Can not read register (xx) while CPU is running.

xx : 0 ~ 16

 

I can download my code to my custom board with J-Link debugger.

But I can't set breakpoint after the code is run.

I read some others have same problem but I can't find how to solve it.

 

MCU : S32K312

IDE : S32DS for S32 Platform Version 3.4

Debugger J-Link Pro (GDB Server V7.82)

 

Thaks.

0 Kudos
Reply
2 Replies

1,185 Views
dnewbe
Contributor III

Thanks for VaneB

 

I read your comment and I did trace to find where make this problem. I find at Port_Ipw_Init_UnusedPins in Port_Init.

So I did make workaround that the JTAG_TDO pin config to JTAG_TDO without no configuration.

After that my debugger start to run and I also can set breakpoint. 

 

Thanks.

1,196 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @dnewbe 

Please verify the connections of the debug, for this take a look to the schematic of the S32K312EVB-Q172: S32K312EVB-Q172 Evaluation Board Design Files 

Also, this community post will be useful for you: Design Considerations for Debug 

 

B.R. 

VaneB

0 Kudos
Reply