PN7462 Debugging Error in MCUXpresso IDE – Need Root Cause and Resolution

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

PN7462 Debugging Error in MCUXpresso IDE – Need Root Cause and Resolution

1,173 Views
Vignesh_Venkatesan123
Contributor I

Hello All,

I am using the PN7462 Development Kit with MCUXpresso IDE version 12.24.148. While attempting to debug code on the PN7462, I am encountering the error shown below.

I have included the debug log and attached a screenshot of the error for your reference.

Could you please help identify the root cause of this issue and suggest a possible solution?

Thank you in advance for your support.

Error Log:

LinkServer RedlinkMulti Driver v24.12 (Dec 18 2024 18:34:07 - crt_emu_cm_redlink build 869)

Found part description in XML file PN74xxAU.xml

Reconnected to existing LinkServer process.

============= SCRIPT: PN7xxxxx_Connect.scp =============

DpID = 0BB11477

APID = 0x04770021

============= END SCRIPT ===============================

Probe Firmware: LPC-LINK2 CMSIS-DAP V5.224 (NXP Semiconductors)

Serial Number:  PUDQPZIU

VID:PID:  1FC9:0090

USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&31d1711e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

Using memory from core 0 after searching for a good core

debug interface type      = CoreSight DP (DAP DP ID 0BB11477) over SWD TAP 0

processor type            = Cortex-M0 (CPU ID 00000C20) on DAP AP 0

number of h/w breakpoints = 4

number of flash patches   = 0

number of h/w watchpoints = 2

Probe(0): Connected&Reset. DpID: 0BB11477. CpuID: 00000C20. Info: <None>

Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.

Content of CoreSight Debug ROM(s):

RBASE E00FF000: CID B105100D PID 04000BB471 ROM (type 0x1)

ROM 1 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)

ROM 1 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)

ROM 1 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)

NXP: PN7462AU-C3-00

DAP stride is 1024 bytes (256 words)

Inspected v.2 On-chip Flash Memory PN7xxxxx_158k.cfx

Image 'PN7xxxxx_158k Mar  8 2016 16:35:06'

( 65) Chip Setup Complete

Connected: was_reset=true. was_stopped=false

Awaiting telnet connection to port 3330 ...

GDB nonstop mode enabled

FreeRTOS stack backtrace is disabled

Opening flash driver PN7xxxxx_158k.cfx

VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.

Using SOFT reset to run the flash driver

Flash device supported (158KB = 79*2K at 0x203000)

Writing 120260 bytes to address 0x00203000 in Flash

driver "ProgramPage" timeout (500 ms)  PC: FFFFFFFE

Closing flash driver PN7xxxxx_158k.cfx

Target error from Commit Flash write: Ec: Flash driver "ProgramPage" timeout (500 ms)  PC: FFFFFFFE

GDB stub (C:\NXP\LinkServer_24.12.21\binaries\crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.

0 Kudos
Reply
5 Replies

1,157 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Vignesh_Venkatesan123 

Try turning the power off and then on again. In principle, EVK+example project should not have any problems. It works on my side.

0 Kudos
Reply

1,153 Views
Vignesh_Venkatesan123
Contributor I

Hello KaiLi,

I am working on below example code "NfcrdlibEx10_MIFAREDESFire_EVx". I could able to progress for certificate read/write and flash. Now i am facing this issue in board side. there are no changes made to SW which worked earlier.

Probe used : LPC-LINK2 CMSIS-DAP V5.224

Best regards,

Vignesh Venkatesan

 

0 Kudos
Reply

1,034 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @Vignesh_Venkatesan123 

Please try updating the LPC-Link2 firmware. Normally, the EVK board and software code haven't been modified, so there shouldn't be any problems.

Please update firmware by going LPC-Link2 | NXP Semiconductors

0 Kudos
Reply

631 Views
Vignesh_Venkatesan123
Contributor I

There is no problem with LPC-Link2. As i connected another EVK board with the same LPC-Link2 and same probe, debug flashing is happening properly. Problem is with EVK board.

0 Kudos
Reply

532 Views
Vignesh_Venkatesan123
Contributor I

Hi @KaiLi 

Can you please explain the process of how to do full erase ?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2367352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPN7462%20Debugging%20Error%20in%20MCUXpresso%20IDE%20%E2%80%93%20Need%20Root%20Cause%20and%20Resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%3CP%3EHello%20All%2C%3C%2FP%3E%3CP%3EI%20am%20using%20the%20PN7462%20Development%20Kit%20with%20MCUXpresso%20IDE%20version%2012.24.148.%20While%20attempting%20to%20debug%20code%20on%20the%20PN7462%2C%20I%20am%20encountering%20the%20error%20shown%20below.%3C%2FP%3E%3CP%3EI%20have%20included%20the%20debug%20log%20and%20attached%20a%20screenshot%20of%20the%20error%20for%20your%20reference.%3C%2FP%3E%3CP%3ECould%20you%20please%20help%20identify%20the%20root%20cause%20of%20this%20issue%20and%20suggest%20a%20possible%20solution%3F%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20support.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EError%20Log%3A%3C%2FP%3E%3CP%3ELinkServer%20RedlinkMulti%20Driver%20v24.12%20(Dec%2018%202024%2018%3A34%3A07%20-%20crt_emu_cm_redlink%20build%20869)%3C%2FP%3E%3CP%3EFound%20part%20description%20in%20XML%20file%20PN74xxAU.xml%3C%2FP%3E%3CP%3EReconnected%20to%20existing%20LinkServer%20process.%3C%2FP%3E%3CP%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%20SCRIPT%3A%20PN7xxxxx_Connect.scp%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FP%3E%3CP%3EDpID%20%3D%200BB11477%3C%2FP%3E%3CP%3EAPID%20%3D%200x04770021%3C%2FP%3E%3CP%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%20END%20SCRIPT%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FP%3E%3CP%3EProbe%20Firmware%3A%20LPC-LINK2%20CMSIS-DAP%20V5.224%20(NXP%20Semiconductors)%3C%2FP%3E%3CP%3ESerial%20Number%3A%26nbsp%3B%20PUDQPZIU%3C%2FP%3E%3CP%3EVID%3APID%3A%26nbsp%3B%201FC9%3A0090%3C%2FP%3E%3CP%3EUSB%20Path%3A%20%5C%5C%3F%5Chid%23vid_1fc9%26amp%3Bpid_0090%26amp%3Bmi_00%237%26amp%3B31d1711e%26amp%3B0%26amp%3B0000%23%7B4d1e55b2-f16f-11cf-88cb-001111000030%7D%3C%2FP%3E%3CP%3EUsing%20memory%20from%20core%200%20after%20searching%20for%20a%20good%20core%3C%2FP%3E%3CP%3Edebug%20interface%20type%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3D%20CoreSight%20DP%20(DAP%20DP%20ID%200BB11477)%20over%20SWD%20TAP%200%3C%2FP%3E%3CP%3Eprocessor%20type%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3D%20Cortex-M0%20(CPU%20ID%2000000C20)%20on%20DAP%20AP%200%3C%2FP%3E%3CP%3Enumber%20of%20h%2Fw%20breakpoints%20%3D%204%3C%2FP%3E%3CP%3Enumber%20of%20flash%20patches%26nbsp%3B%26nbsp%3B%20%3D%200%3C%2FP%3E%3CP%3Enumber%20of%20h%2Fw%20watchpoints%20%3D%202%3C%2FP%3E%3CP%3EProbe(0)%3A%20Connected%26amp%3BReset.%20DpID%3A%200BB11477.%20CpuID%3A%2000000C20.%20Info%3A%20%3CNONE%3E%3C%2FNONE%3E%3C%2FP%3E%3CP%3EDebug%20protocol%3A%20SWD.%20RTCK%3A%20Disabled.%20Vector%20catch%3A%20Disabled.%3C%2FP%3E%3CP%3EContent%20of%20CoreSight%20Debug%20ROM(s)%3A%3C%2FP%3E%3CP%3ERBASE%20E00FF000%3A%20CID%20B105100D%20PID%2004000BB471%20ROM%20(type%200x1)%3C%2FP%3E%3CP%3EROM%201%20E000E000%3A%20CID%20B105E00D%20PID%2004000BB008%20Gen%20SCS%20(type%200x0)%3C%2FP%3E%3CP%3EROM%201%20E0001000%3A%20CID%20B105E00D%20PID%2004000BB00A%20Gen%20DWT%20(type%200x0)%3C%2FP%3E%3CP%3EROM%201%20E0002000%3A%20CID%20B105E00D%20PID%2004000BB00B%20Gen%20FPB%20(type%200x0)%3C%2FP%3E%3CP%3ENXP%3A%20PN7462AU-C3-00%3C%2FP%3E%3CP%3EDAP%20stride%20is%201024%20bytes%20(256%20words)%3C%2FP%3E%3CP%3EInspected%20v.2%20On-chip%20Flash%20Memory%20PN7xxxxx_158k.cfx%3C%2FP%3E%3CP%3EImage%20'PN7xxxxx_158k%20Mar%26nbsp%3B%208%202016%2016%3A35%3A06'%3C%2FP%3E%3CP%3E(%2065)%20Chip%20Setup%20Complete%3C%2FP%3E%3CP%3EConnected%3A%20was_reset%3Dtrue.%20was_stopped%3Dfalse%3C%2FP%3E%3CP%3EAwaiting%20telnet%20connection%20to%20port%203330%20...%3C%2FP%3E%3CP%3EGDB%20nonstop%20mode%20enabled%3C%2FP%3E%3CP%3EFreeRTOS%20stack%20backtrace%20is%20disabled%3C%2FP%3E%3CP%3EOpening%20flash%20driver%20PN7xxxxx_158k.cfx%3C%2FP%3E%3CP%3EVECTRESET%20requested%2C%20but%20not%20supported%20on%20ARMv6-M%20CPUs.%20Using%20SOFTRESET%20instead.%3C%2FP%3E%3CP%3EUsing%20SOFT%20reset%20to%20run%20the%20flash%20driver%3C%2FP%3E%3CP%3EFlash%20device%20supported%20(158KB%20%3D%2079*2K%20at%200x203000)%3C%2FP%3E%3CP%3EWriting%20120260%20bytes%20to%20address%200x00203000%20in%20Flash%3C%2FP%3E%3CP%3E%3CSPAN%3Edriver%20%22ProgramPage%22%20timeout%20(500%20ms)%26nbsp%3B%20PC%3A%20FFFFFFFE%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EClosing%20flash%20driver%20PN7xxxxx_158k.cfx%3C%2FP%3E%3CP%3E%3CSPAN%3ETarget%20error%20from%20Commit%20Flash%20write%3A%20Ec%3A%20Flash%20driver%20%22ProgramPage%22%20timeout%20(500%20ms)%26nbsp%3B%20PC%3A%20FFFFFFFE%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EGDB%20stub%20(C%3A%5CNXP%5CLinkServer_24.12.21%5Cbinaries%5Ccrt_emu_cm_redlink)%20terminating%20-%20GDB%20protocol%20problem%3A%20Pipe%20has%20been%20closed%20by%20GDB.%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20Debugging%20Error%20in%20MCUXpresso%20IDE%20%E2%80%93%20Need%20Root%20Cause%20and%20Resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20KaiLi%2C%3C%2FP%3E%3CP%3EI%20am%20working%20on%20below%20example%20code%20%22NfcrdlibEx10_MIFAREDESFire_EVx%22.%20I%20could%20able%20to%20progress%20for%20certificate%20read%2Fwrite%20and%20flash.%20Now%20i%20am%20facing%20this%20issue%20in%20board%20side.%20there%20are%20no%20changes%20made%20to%20SW%20which%20worked%20earlier.%3C%2FP%3E%3CP%3EProbe%20used%20%3A%20LPC-LINK2%20CMSIS-DAP%20V5.224%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EVignesh%20Venkatesan%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367537%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20Debugging%20Error%20in%20MCUXpresso%20IDE%20%E2%80%93%20Need%20Root%20Cause%20and%20Resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367537%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%2F253318%22%20target%3D%22_blank%22%3E%40Vignesh_Venkatesan123%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%20turning%20the%20power%20off%20and%20then%20on%20again.%20In%20principle%2C%20EVK%2Bexample%20project%20should%20not%20have%20any%20problems.%20It%20works%20on%20my%20side.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2369241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20Debugging%20Error%20in%20MCUXpresso%20IDE%20%E2%80%93%20Need%20Root%20Cause%20and%20Resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2369241%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%2F253318%22%20target%3D%22_blank%22%3E%40Vignesh_Venkatesan123%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20try%20updating%20the%20LPC-Link2%20firmware.%20Normally%2C%20the%20EVK%20board%20and%20software%20code%20haven't%20been%20modified%2C%20so%20there%20shouldn't%20be%20any%20problems.%3C%2FP%3E%0A%3CP%3EPlease%20update%20firmware%20by%20going%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2FOM13054%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ELPC-Link2%20%7C%20NXP%20Semiconductors%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2376634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20Debugging%20Error%20in%20MCUXpresso%20IDE%20%E2%80%93%20Need%20Root%20Cause%20and%20Resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2376634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThere%20is%20no%20problem%20with%20LPC-Link2.%20As%20i%20connected%20another%20EVK%20board%20with%20the%20same%20LPC-Link2%20and%20same%20probe%2C%20debug%20flashing%20is%20happening%20properly.%20Problem%20is%20with%20EVK%20board.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2379325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20Debugging%20Error%20in%20MCUXpresso%20IDE%20%E2%80%93%20Need%20Root%20Cause%20and%20Resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2379325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%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%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20explain%20the%20process%20of%20how%20to%20do%20full%20erase%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E