PN7412 SWD debugging issue

cancel
Showing results for 
Search instead for 
Did you mean: 

PN7412 SWD debugging issue

863 Views
adab
Contributor I

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.

0 Kudos
3 Replies

851 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @adab ,

 

Looks like the application code inside prevents the connection, maybe you have to put this device into USB MSD bootloader mode before performing the SWD download.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

824 Views
adab
Contributor I

Hello @Kan_Li

I have tried to download the FW in both cases (when the application is running and when the pn7412 is in usb mass storage mode), and the result is exactly the same that the comment in my previous post. 

Besides I have tried connecting the RST signal from the LPC-Link to the PN7412 and it does not work. I can see that the pn7412 is reseted, but the FW is not download. 

Could you please give me more information about how to fix it? 

Thanks a lot, 

Best regards. 

796 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @adab ,

 

I noticed you are using LPCXpresso, but have you tried the latest MCUXpresso? was the result the same?

Please kindly refer to https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-:MCUXPRESSO for details.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos