J-Link Commander Cannot Download Image to PN7642 (Some Units Previously Working Now Failing)

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

J-Link Commander Cannot Download Image to PN7642 (Some Units Previously Working Now Failing)

1,049 Views
axis-zhao
Contributor I

Hi all,

I'm encountering an issue when using J-Link Commander to download firmware to the PN7642 .

Summary:

* Total units: 36

* 22 units: working normally

* 14 units: consistently failing

Important note:

All units were previously programmed successfully with our earlier firmware. The issue appeared when attempting to reprogram them with a newer image.

Issue description:

For the failing units, J-Link Commander cannot connect to the target device. The log output is shown below:

```

Connecting to target via SWD
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map seems to be reached
AP[0]: AHB-AP (IDR: 0x84770001, ADDR: 0x00000000)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Could not read CPUID register
Attach to CPU failed. Executing connect under reset.
Failed to power up DAP
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map seems to be reached
AP[0]: AHB-AP (IDR: 0x84770001, ADDR: 0x00000000)
Iterating through AP map to find AHB-AP to use
AP[0]: Skipped. Could not read CPUID register
Attach to CPU failed. Executing connect under reset.
Failed to power up DAP
Error occurred: Could not connect to the target device.
For troubleshooting steps visit: https://wiki.segger.com/J-Link_Troubleshooting
```

Additional information:

  • I have tried issuing the r (reset) command in J-Link Commander, but it does not resolve the issue
  • Same hardware setup is used for both working and failing units (same J-Link, same board, same procedure)
  • All failing units show identical behavior

Observations:

  • Failure occurs during SWD connection:
    • Cannot read CPUID
    • DAP power-up fails
  • Working units remain fully programmable

Questions:

  1. Are there known mechanisms in PN7642 that can disable or lock SWD after programming?
  2. Is there a recommended way recover access (e.g., connect under reset, mass erase, boot pin configuration)?
  3. Could this indicate the device entering a protected or low-power state that blocks debug access?

Any guidance on how to recover these devices or further debug the root cause would be greatly appreciated.

Thanks in advance!

 

 

 

0 Kudos
Reply
2 Replies

1,029 Views
axis-zhao
Contributor I

Hello @KaiLi,

Thanks for the suggestion to try J-Flash.

I've attempted to use J-Flash with my PN7642, but I'm consistently running into connection failures. The behavior is similar to what I observed with J-Link Commander - J-Flash is unable to establish a connection to the target. (See the attached file, 'j_flash_connection_error.png').

Are there any additional steps or recovery methods you would recommend to regain access?

Any guidance would be greatly appreciated!

 

Thanks!

 

I

0 Kudos
Reply

1,032 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @axis-zhao 

Please try J-Flash, it works fine on my side, like attach picture.

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2344508%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EJ-Link%20Commander%20Cannot%20Download%20Image%20to%20PN7642%20(Some%20Units%20Previously%20Working%20Now%20Failing)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2344508%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI'm%20encountering%20an%20issue%20when%20using%20%3CEM%3E%3CSTRONG%3EJ-Link%20Commander%3C%2FSTRONG%3E%3C%2FEM%3E%20to%20download%20firmware%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FPN7642%2Fpd-p%2FPN7642%22%20class%3D%22lia-product-mention%22%20data-product%3D%221588-1%22%20target%3D%22_blank%22%3EPN7642%3C%2FA%3E%26nbsp%3B.%3C%2FP%3E%3CP%3E%3CSTRONG%3ESummary%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E*%20Total%20units%3A%2036%3C%2FP%3E%3CP%3E*%2022%20units%3A%20working%20normally%3C%2FP%3E%3CP%3E*%2014%20units%3A%20consistently%20failing%3C%2FP%3E%3CP%3E%3CSTRONG%3EImportant%20note%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EAll%20units%20were%20previously%20programmed%20successfully%20with%20our%20earlier%20firmware.%20The%20issue%20appeared%20when%20attempting%20to%20reprogram%20them%20with%20a%20newer%20image.%3C%2FP%3E%3CP%3E%3CSTRONG%3EIssue%20description%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EFor%20the%20failing%20units%2C%20J-Link%20Commander%20cannot%20connect%20to%20the%20target%20device.%20The%20log%20output%20is%20shown%20below%3A%3C%2FP%3E%3CP%3E%60%60%60%3C%2FP%3E%3CP%3EConnecting%20to%20target%20via%20SWD%3CBR%20%2F%3EFound%20SW-DP%20with%20ID%200x6BA02477%3CBR%20%2F%3EDPIDR%3A%200x6BA02477%3CBR%20%2F%3ECoreSight%20SoC-400%20or%20earlier%3CBR%20%2F%3EScanning%20AP%20map%20to%20find%20all%20available%20APs%3CBR%20%2F%3EAP%5B1%5D%3A%20Stopped%20AP%20scan%20as%20end%20of%20AP%20map%20seems%20to%20be%20reached%3CBR%20%2F%3EAP%5B0%5D%3A%20AHB-AP%20(IDR%3A%200x84770001%2C%20ADDR%3A%200x00000000)%3CBR%20%2F%3EIterating%20through%20AP%20map%20to%20find%20AHB-AP%20to%20use%3CBR%20%2F%3EAP%5B0%5D%3A%20Skipped.%20Could%20not%20read%20CPUID%20register%3CBR%20%2F%3EAttach%20to%20CPU%20failed.%20Executing%20connect%20under%20reset.%3CBR%20%2F%3EFailed%20to%20power%20up%20DAP%3CBR%20%2F%3EFound%20SW-DP%20with%20ID%200x6BA02477%3CBR%20%2F%3EDPIDR%3A%200x6BA02477%3CBR%20%2F%3ECoreSight%20SoC-400%20or%20earlier%3CBR%20%2F%3EScanning%20AP%20map%20to%20find%20all%20available%20APs%3CBR%20%2F%3EAP%5B1%5D%3A%20Stopped%20AP%20scan%20as%20end%20of%20AP%20map%20seems%20to%20be%20reached%3CBR%20%2F%3EAP%5B0%5D%3A%20AHB-AP%20(IDR%3A%200x84770001%2C%20ADDR%3A%200x00000000)%3CBR%20%2F%3EIterating%20through%20AP%20map%20to%20find%20AHB-AP%20to%20use%3CBR%20%2F%3EAP%5B0%5D%3A%20Skipped.%20Could%20not%20read%20CPUID%20register%3CBR%20%2F%3EAttach%20to%20CPU%20failed.%20Executing%20connect%20under%20reset.%3CBR%20%2F%3EFailed%20to%20power%20up%20DAP%3CBR%20%2F%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%2Fwiki.segger.com%2FJ-Link_Troubleshooting%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwiki.segger.com%2FJ-Link_Troubleshooting%3C%2FA%3E%3CBR%20%2F%3E%60%60%60%3C%2FP%3E%3CP%3E%3CSTRONG%3EAdditional%20information%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EI%20have%20tried%20issuing%20the%20r%20(reset)%20command%20in%20J-Link%20Commander%2C%20but%20it%20does%20not%20resolve%20the%20issue%3C%2FLI%3E%3CLI%3ESame%20hardware%20setup%20is%20used%20for%20both%20working%20and%20failing%20units%20(same%20J-Link%2C%20same%20board%2C%20same%20procedure)%3C%2FLI%3E%3CLI%3EAll%20failing%20units%20show%20identical%20behavior%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EObservations%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EFailure%20occurs%20during%20SWD%20connection%3A%3CUL%3E%3CLI%3ECannot%20read%20CPUID%3C%2FLI%3E%3CLI%3EDAP%20power-up%20fails%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EWorking%20units%20remain%20fully%20programmable%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EQuestions%3A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3EAre%20there%20known%20mechanisms%20in%20PN7642%20that%20can%20disable%20or%20lock%20SWD%20after%20programming%3F%3C%2FLI%3E%3CLI%3EIs%20there%20a%20recommended%20way%20recover%20access%20(e.g.%2C%20connect%20under%20reset%2C%20mass%20erase%2C%20boot%20pin%20configuration)%3F%3C%2FLI%3E%3CLI%3ECould%20this%20indicate%20the%20device%20entering%20a%20protected%20or%20low-power%20state%20that%20blocks%20debug%20access%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3EAny%20guidance%20on%20how%20to%20recover%20these%20devices%20or%20further%20debug%20the%20root%20cause%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2344508%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EConnected%20Tag%20Solutions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHITAG%20Reader%20ICs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMIFARE%20SAMs%20for%20Reader%20Systems%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENFC%20Controller%20Solutions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENFC%20Frontend%20Solutions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENFC%20Reader%20Library%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2344661%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20J-Link%20Commander%20Cannot%20Download%20Image%20to%20PN7642%20(Some%20Units%20Previously%20Working%20Now%20Failing)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2344661%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%2F205266%22%20target%3D%22_blank%22%3E%40KaiLi%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EThanks%20for%20the%20suggestion%20to%20try%20J-Flash.%3C%2FP%3E%3CP%3EI've%20attempted%20to%20use%20J-Flash%20with%20my%20PN7642%2C%20but%20I'm%20consistently%20running%20into%20connection%20failures.%20The%20behavior%20is%20similar%20to%20what%20I%20observed%20with%20J-Link%20Commander%20-%20J-Flash%20is%20unable%20to%20establish%20a%20connection%20to%20the%20target.%20(See%20the%20attached%20file%2C%20'j_flash_connection_error.png').%3C%2FP%3E%3CP%3EAre%20there%20any%20additional%20steps%20or%20recovery%20methods%20you%20would%20recommend%20to%20regain%20access%3F%3C%2FP%3E%3CP%3EAny%20guidance%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks!%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2344608%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20J-Link%20Commander%20Cannot%20Download%20Image%20to%20PN7642%20(Some%20Units%20Previously%20Working%20Now%20Failing)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2344608%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%2F261323%22%20target%3D%22_blank%22%3E%40axis-zhao%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20try%20J-Flash%2C%20it%20works%20fine%20on%20my%20side%2C%20like%20attach%20picture.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorKaiLi_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E