FRDM-MCXA156 and Segger J-Link

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FRDM-MCXA156 and Segger J-Link

712 次查看
rjrapier
Contributor I

I am trying to use a Segger J-Link JTAG with the FRDM-MCXA156, and no matter the jumper configuration I am unable to get the Segger tools to connect to the processor.  Lotest Segger tools installed, J-Link firmware updated to latest version.

Ultimately I plan to use IAR tools with the Segger J-Link, but for now, I am just trying to get the J-Link to work.  Any suggestions are welcome.

When I try to connect to the processor using J-Link Commander V9.36, it goes through the motions, but fails with :

****** Error: J-Link script file function InitTarget() returned with error code -1

Error occurred: Could not connect to the target device.
For troubleshooting steps visit: https://kb.segger.com/J-Link_Troubleshooting
J-Link>

标签 (1)
0 项奖励
回复
4 回复数

655 次查看
rjrapier
Contributor I

Sadly, not what I am seeing with J-Flash.  I had configured my board with the jumpers in the same way as you have yours.  I tried both SWD and JTAG, all I get is an error when trying to connect to the processor.  I tried two different J-Link devices with two different 10 pin adapters.

J-Flash Error.jpg

0 项奖励
回复

644 次查看
rjrapier
Contributor I

I reconfigured to no use the J-Link, and instead use the USB interface, and am able to connect and program the board that way with the IAR tools.  For now we will proceed with this mechanism instead of the J-Link devices.

0 项奖励
回复

630 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @rjrapier ,

Thanks for your update. Glad to hear that. At least you can move forward now. If you run into any new issues, feel free to open a new post.

BR

Celeste

0 项奖励
回复

663 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @rjrapier ,

Thanks for your post.

Please refer to table 21 of FRDM-MCXA156 Board User Manual . If you want to use external debugger, you must short JP7 and then connect the external debugger to J24.

Celeste_Liu_0-1776942759837.png

Celeste_Liu_2-1776943101564.png

 

I have tested on my FRDM-MCXA156 board with J-Flash, it's okay to flash the firmware. Please check again on your side. Thanks!

Celeste_Liu_1-1776942853742.png

Have a nice day.

BR

Celeste

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2354805%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-MCXA156%20%E5%92%8C%20Segger%20J-Link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2354805%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E8%AF%95%E5%9B%BE%E5%B0%86%20Segger%20J-Link%20JTAG%20%E4%B8%8E%20FRDM-MCXA156%20%E9%85%8D%E5%90%88%E4%BD%BF%E7%94%A8%EF%BC%8C%E4%BD%86%E6%97%A0%E8%AE%BA%E5%A6%82%E4%BD%95%E9%85%8D%E7%BD%AE%E8%B7%B3%E7%BA%BF%EF%BC%8C%E6%88%91%E9%83%BD%E6%97%A0%E6%B3%95%E8%AE%A9%20Segger%20%E5%B7%A5%E5%85%B7%E4%B8%8E%E5%A4%84%E7%90%86%E5%99%A8%E8%BF%9E%E6%8E%A5%E3%80%82%20%E5%B7%B2%E5%AE%89%E8%A3%85%20Lotest%20Segger%20%E5%B7%A5%E5%85%B7%EF%BC%8CJ-Link%20%E5%9B%BA%E4%BB%B6%E5%B7%B2%E6%9B%B4%E6%96%B0%E8%87%B3%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E3%80%82%3C%2FP%3E%3CP%3E%E6%9C%80%E7%BB%88%EF%BC%8C%E6%88%91%E8%AE%A1%E5%88%92%E5%B0%86%20IAR%20%E5%B7%A5%E5%85%B7%E4%B8%8E%20Segger%20J-Link%20%E7%BB%93%E5%90%88%E4%BD%BF%E7%94%A8%EF%BC%8C%E4%BD%86%E7%9B%AE%E5%89%8D%E6%88%91%E5%8F%AA%E6%83%B3%E8%AE%A9%20J-Link%20%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%E3%80%82%20%E6%AC%A2%E8%BF%8E%E6%8F%90%E5%87%BA%E4%BB%BB%E4%BD%95%E5%BB%BA%E8%AE%AE%E3%80%82%3C%2FP%3E%3CP%3E%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20J-Link%20Commander%20V9.36%20%E7%89%88%E4%B8%8E%E5%A4%84%E7%90%86%E5%99%A8%E8%BF%9E%E6%8E%A5%E6%97%B6%EF%BC%8C%E5%AE%83%E6%8C%89%E9%83%A8%E5%B0%B1%E7%8F%AD%E5%9C%B0%E8%BF%9B%E8%A1%8C%EF%BC%8C%E4%BD%86%E5%8D%B4%E4%BB%A5......%E5%A4%B1%E8%B4%A5%EF%BC%9A%3C%2FP%3E%3CP%3E******%20%E9%94%99%E8%AF%AF%EF%BC%9AJ-Link%20%E8%84%9A%E6%9C%AC%E6%96%87%E4%BB%B6%E5%87%BD%E6%95%B0%20InitTarget()%20%E8%BF%94%E5%9B%9E%E9%94%99%E8%AF%AF%E4%BB%A3%E7%A0%81%20-1%3C%2FP%3E%3CP%3E%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%EF%BC%9A%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%88%B0%E7%9B%AE%E6%A0%87%E8%AE%BE%E5%A4%87%E3%80%82%3CBR%20%2F%3E%E6%9C%89%E5%85%B3%E6%95%85%E9%9A%9C%E6%8E%92%E9%99%A4%E6%AD%A5%E9%AA%A4%EF%BC%8C%E8%AF%B7%E8%AE%BF%E9%97%AE%3CA%20href%3D%22https%3A%2F%2Fkb.segger.com%2FJ-Link_Troubleshooting%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%EF%BC%9A%20https%3A%2F%2Fkb.segger.com%2FJ-Link_Troubleshooting%3C%2FA%3E%3CBR%20%2F%3EJ-Link%26gt%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2354805%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMCXA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355562%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-MCXA156%20and%20Segger%20J-Link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355562%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261998%22%20target%3D%22_blank%22%3E%40rjrapier%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%9B%B4%E6%96%B0%E3%80%82%20%E5%BE%88%E9%AB%98%E5%85%B4%E5%90%AC%E5%88%B0%E8%BF%99%E4%B8%AA%E6%B6%88%E6%81%AF%E3%80%82%E8%87%B3%E5%B0%91%E4%BD%A0%E7%8E%B0%E5%9C%A8%E5%8F%AF%E4%BB%A5%E5%90%91%E5%89%8D%E7%9C%8B%E4%BA%86%E3%80%82%E5%A6%82%E6%9E%9C%E6%82%A8%E9%81%87%E5%88%B0%E4%BB%BB%E4%BD%95%E6%96%B0%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AF%B7%E9%9A%8F%E6%97%B6%E5%8F%91%E8%A1%A8%E6%96%B0%E7%9A%84%E5%B8%96%E5%AD%90%E3%80%82%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3E%E8%A5%BF%E8%8E%B1%E6%96%AF%E7%89%B9%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355388%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-MCXA156%20and%20Segger%20J-Link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355388%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E9%87%8D%E6%96%B0%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%B8%8D%E4%BD%BF%E7%94%A8%20J-Link%EF%BC%8C%E8%80%8C%E6%98%AF%E4%BD%BF%E7%94%A8%20USB%20%E6%8E%A5%E5%8F%A3%EF%BC%8C%E5%B9%B6%E4%B8%94%E8%83%BD%E5%A4%9F%E4%BD%BF%E7%94%A8%20IAR%20%E5%B7%A5%E5%85%B7%E4%BB%A5%E8%BF%99%E7%A7%8D%E6%96%B9%E5%BC%8F%E8%BF%9E%E6%8E%A5%E4%B8%BB%E6%9D%BF%E5%B9%B6%E5%AF%B9%E5%85%B6%E8%BF%9B%E8%A1%8C%E7%BC%96%E7%A8%8B%E3%80%82%E7%8E%B0%E5%9C%A8%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E7%BB%A7%E7%BB%AD%E4%BD%BF%E7%94%A8%E8%BF%99%E7%A7%8D%E6%9C%BA%E5%88%B6%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AFJ-Link%E8%AE%BE%E5%A4%87%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-MCXA156%20and%20Segger%20J-Link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%81%97%E6%86%BE%E7%9A%84%E6%98%AF%EF%BC%8C%E6%88%91%E5%9C%A8%20J-Flash%20%E8%BA%AB%E4%B8%8A%E7%9C%8B%E5%88%B0%E7%9A%84%E5%B9%B6%E9%9D%9E%E5%A6%82%E6%AD%A4%E3%80%82%20%E6%88%91%E7%94%A8%E8%B7%B3%E7%BA%BF%E9%85%8D%E7%BD%AE%E4%BA%86%E6%88%91%E7%9A%84%E6%9D%BF%EF%BC%8C%E5%B0%B1%E5%83%8F%E4%BD%A0%E7%9A%84%E8%B7%B3%E7%BA%BF%E4%B8%80%E6%A0%B7%E3%80%82%E6%88%91%E5%B0%9D%E8%AF%95%E4%BA%86%20SWD%20%E5%92%8C%20JTAG%EF%BC%8C%E4%BD%86%E5%9C%A8%E5%B0%9D%E8%AF%95%E8%BF%9E%E6%8E%A5%E5%A4%84%E7%90%86%E5%99%A8%E6%97%B6%E9%83%BD%E5%87%BA%E7%8E%B0%E4%BA%86%E9%94%99%E8%AF%AF%E3%80%82%20%E6%88%91%E7%94%A8%E4%B8%A4%E4%B8%AA%E4%B8%8D%E5%90%8C%E7%9A%84%2010%20%E9%92%88%E9%80%82%E9%85%8D%E5%99%A8%E5%B0%9D%E8%AF%95%E4%BA%86%E4%B8%A4%E7%A7%8D%E4%B8%8D%E5%90%8C%E7%9A%84%20J-Link%20%E8%AE%BE%E5%A4%87%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22J-Flash%20Error.jpg%22%20style%3D%22width%3A%20919px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22J-Flash%20Error.jpg%22%20style%3D%22width%3A%20919px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383347i731B6DEC9B3C5CE3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22J-Flash%20Error.jpg%22%20alt%3D%22J-Flash%20Error.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355189%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-MCXA156%20and%20Segger%20J-Link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355189%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261998%22%20target%3D%22_blank%22%3E%40rjrapier%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CP%3E%E8%B0%A2%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%96%E5%AD%90%E3%80%82%3C%2FP%3E%0A%3CP%3E%E8%AF%B7%E5%8F%82%E9%98%85%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com.cn%2Fdocs%2Fen%2Fuser-manual%2FUM12121.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EFRDM-MCXA156%20%E4%B8%BB%E6%9D%BF%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C%3C%2FA%3E%E7%9A%84%E8%A1%A8%2021%E3%80%82%E5%A6%82%E6%9E%9C%E8%A6%81%E4%BD%BF%E7%94%A8%E5%A4%96%E9%83%A8%E8%B0%83%E8%AF%95%E5%99%A8%EF%BC%8C%E5%BF%85%E9%A1%BB%E7%9F%AD%E6%8E%A5%20JP7%EF%BC%8C%E7%84%B6%E5%90%8E%E5%B0%86%E5%A4%96%E9%83%A8%E8%B0%83%E8%AF%95%E5%99%A8%E8%BF%9E%E6%8E%A5%E5%88%B0%20J24%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Celeste_Liu_0-1776942759837.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Celeste_Liu_0-1776942759837.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383325iB1D5F29977413531%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Celeste_Liu_0-1776942759837.png%22%20alt%3D%22Celeste_Liu_0-1776942759837.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Celeste_Liu_2-1776943101564.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Celeste_Liu_2-1776943101564.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383327iDBDA53CD3B51684C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Celeste_Liu_2-1776943101564.png%22%20alt%3D%22Celeste_Liu_2-1776943101564.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E5%9C%A8%E6%88%91%E7%9A%84%20FRDM-MCXA156%20%E4%B8%BB%E6%9D%BF%E4%B8%8A%E4%BD%BF%E7%94%A8%20J-Flash%20%E8%BF%9B%E8%A1%8C%E4%BA%86%E6%B5%8B%E8%AF%95%EF%BC%8C%E5%88%B7%E6%96%B0%E5%9B%BA%E4%BB%B6%E6%B2%A1%E9%97%AE%E9%A2%98%E3%80%82%E8%AF%B7%E6%82%A8%E5%86%8D%E6%A3%80%E6%9F%A5%E4%B8%80%E9%81%8D%E3%80%82%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Celeste_Liu_1-1776942853742.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Celeste_Liu_1-1776942853742.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383326i6C31CD9093CBF56B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Celeste_Liu_1-1776942853742.png%22%20alt%3D%22Celeste_Liu_1-1776942853742.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E7%A5%9D%E6%82%A8%E6%84%89%E5%BF%AB%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3E%E8%A5%BF%E8%8E%B1%E6%96%AF%E7%89%B9%3C%2FP%3E%3C%2FLINGO-BODY%3E