Hello,
I am trying to debug the PN7412 FW using the LPCxpresso and Jlink-2 and i am facing some troubles. Really the problem is not with the debug itself but with the download FW to the PN7412.
When I try to download the FW, I am getting the following when the writing process starts (the connection process seems correct).
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)
XML Error - no license-type XML file 'crt_common.xme' on path.
note - part information contained no product license-type data
Inspected v.2 On-chip Flash Memory PN7xxxxx_158k.cfx
Image 'PN7xxxxx_158k Mar 8 2016 16:35:06'
Connected: was_reset=true. was_stopped=false
Awaiting telnet connection to port 3330 ...
GDB nonstop mode enabled
Opening flash driver PN7xxxxx_158k.cfx
Using SOFT reset to run the flash driver
request to clear DAP error failed - status 5
After error Nn(05). Wire ACK Fault in DAP access -
Failed to read address register in DAP - Nn(05). Wire ACK Fault in DAP access
(100) Writing Flash ended with an error.
Target error from Commit Flash write: Em(17). Debug port inaccessible after access at location 0x00100020
GDB stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.
request to clear DAP error failed - status 5
request to clear DAP error failed - status 5
error closing down debug session - Nn(05). Wire ACK Fault in DAP access
Doing some test, I am able to debug a built FW but only attaching to the debug session without loading the image (in debug properties enabling the "attach only" option). In order to be able to debug, I have to update the PN7412 through the host as USB mass storage following the information provided in UM10883 ( section 8.10 Updating flash and EEPROM via USB MSD interface).
Could you please help me to understand why it is happening and how to fix it?
Thanks a lot,
Best regards.