FRDM-MCXA156 and Segger J-Link

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

FRDM-MCXA156 and Segger J-Link

713 Views
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>

Labels (1)
0 Kudos
Reply
4 Replies

656 Views
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 Kudos
Reply

645 Views
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 Kudos
Reply

631 Views
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 Kudos
Reply

664 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2354805%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-MCXA156%20and%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%3EI%20am%20trying%20to%20use%20a%20Segger%20J-Link%20JTAG%20with%20the%20FRDM-MCXA156%2C%20and%20no%20matter%20the%20jumper%20configuration%20I%20am%20unable%20to%20get%20the%20Segger%20tools%20to%20connect%20to%20the%20processor.%26nbsp%3B%20Lotest%20Segger%20tools%20installed%2C%20J-Link%20firmware%20updated%20to%20latest%20version.%3C%2FP%3E%3CP%3EUltimately%20I%20plan%20to%20use%20IAR%20tools%20with%20the%20Segger%20J-Link%2C%20but%20for%20now%2C%20I%20am%20just%20trying%20to%20get%20the%20J-Link%20to%20work.%26nbsp%3B%20Any%20suggestions%20are%20welcome.%3C%2FP%3E%3CP%3EWhen%20I%20try%20to%20connect%20to%20the%20processor%20using%20J-Link%20Commander%20V9.36%2C%20it%20goes%20through%20the%20motions%2C%20but%20fails%20with%20%3A%3C%2FP%3E%3CP%3E******%20Error%3A%20J-Link%20script%20file%20function%20InitTarget()%20returned%20with%20error%20code%20-1%3C%2FP%3E%3CP%3EError%20occurred%3A%20Could%20not%20connect%20to%20the%20target%20device.%3CBR%20%2F%3EFor%20troubleshooting%20steps%20visit%3A%20%3CA%20href%3D%22https%3A%2F%2Fkb.segger.com%2FJ-Link_Troubleshooting%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%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%3EHello%26nbsp%3B%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%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20update.%26nbsp%3BGlad%20to%20hear%20that.%20At%20least%20you%20can%20move%20forward%20now.%20If%20you%20run%20into%20any%20new%20issues%2C%20feel%20free%20to%20open%20a%20new%20post.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3ECeleste%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%3EI%20reconfigured%20to%20no%20use%20the%20J-Link%2C%20and%20instead%20use%20the%20USB%20interface%2C%20and%20am%20able%20to%20connect%20and%20program%20the%20board%20that%20way%20with%20the%20IAR%20tools.%26nbsp%3B%20For%20now%20we%20will%20proceed%20with%20this%20mechanism%20instead%20of%20the%20J-Link%20devices.%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%3ESadly%2C%20not%20what%20I%20am%20seeing%20with%20J-Flash.%26nbsp%3B%20I%20had%20configured%20my%20board%20with%20the%20jumpers%20in%20the%20same%20way%20as%20you%20have%20yours.%26nbsp%3B%20I%20tried%20both%20SWD%20and%20JTAG%2C%20all%20I%20get%20is%20an%20error%20when%20trying%20to%20connect%20to%20the%20processor.%26nbsp%3B%20I%20tried%20two%20different%20J-Link%20devices%20with%20two%20different%2010%20pin%20adapters.%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%3EHello%26nbsp%3B%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%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20table%2021%20of%26nbsp%3B%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%20Board%20User%20Manual%20%3C%2FA%3E.%20If%20you%20want%20to%20use%20external%20debugger%2C%20you%20must%20short%20JP7%20and%20then%26nbsp%3Bconnect%20the%20external%20debugger%20to%20J24.%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%3EI%20have%20tested%20on%20my%20FRDM-MCXA156%20board%20with%20J-Flash%2C%20it's%20okay%20to%20flash%20the%20firmware.%20Please%20check%20again%20on%20your%20side.%20Thanks!%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%3EHave%20a%20nice%20day.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3ECeleste%3C%2FP%3E%3C%2FLINGO-BODY%3E