AnsweredAssumed Answered

IDE cannot find MEM-AP (LPCXpresso54608)

Question asked by Hossein Ragheb on Nov 6, 2017
Latest reply on Nov 13, 2017 by Hossein Ragheb

My LPCXpresso54608 board seems to have got a problem with power as the MCUXpresso IDE can no longer debug/flash code using the board, although it finds the probe. Below is what I get from the debugger. Also using LPCScript queryflash, only BankA and EEPROM are listed. Any idea what has caused this and how to fix it?

 

Thank you.

 

MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redlink build 272)
Found chip XML file in C:/Users/hr140529/Documents/MCUXpressoIDE_10.0.2_411/workspace/sdk_demo_apps_hello_world/Debug\LPC54608J512.xml
( 5) Remote configuration complete
Reconnected to existing redlink server (PID 4294967295)
Connecting to probe 1 core 0 (server PID unknown) gave 'OK'
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)
Serial Number: NRA2CQGQ
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&15e160a5&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
connection to debug bus (DpID 0x2BA01477 AP Index[0]: 0xFFFFFFFF) SWD failed - 'Em(01). Cannot find selected MEM-AP (check t ›¿ m
connection failed - Em(01). Cannot find selected MEM-AP (check target power).. Retrying
connection to debug bus (DpID 0x2BA01477 AP Index[0]: 0xFFFFFFFF) SWD failed - 'Em(01). Cannot find selected MEM-AP (check t-›¿ m
Failed on connect: Em(01). Cannot find selected MEM-AP (check target power)
Connected&Reset. Was: NotConnected. DpID: 00634BA8. CpuID: 00000000. Info: <None>
Last stub error 0: OK
Last sticky error: 0x0 AIndex: 0
No debug bus (MemAp) selected
DAP Speed test unexecuted or failed
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
(100) Target Connection Failed
error closing down debug session - Em(02). MEM-AP is not selected.

 

 

Also here are some responses to LPCScrypt commands:

 

LPCScrypt - CMSIS-DAP firmware programming script v1.8.2 April 2017.

Connect an LPC-Link2 or LPCXpresso V2/V3 Board via USB then press Space.

Press any key to continue . . .

Booting LPCScrypt target with "LPCScrypt_158.bin.hdr"
LPCScrypt target booted
.
Programming LPCXpresso V2/V3 with "lpc4322_bl_crc.bin"

- LPCXpresso V2/V3 programmed sucessfully and has the unique ID: NRA2CQGQ
- To use: remove DFU link and reboot.

Connect Next Board then press Space (or CTRL-C to Quit)

Press any key to continue . . .
Terminate batch job (Y/N)? y

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt memDisplay 0x00000000
0x0 10007fe0 100014f5 10000179 10001ded
0x10 1000017d 1000017f 10000181 00000000
0x20 00000000 00000000 00000000 10000183
0x30 10000185 00000000 10000187 10001e4d
0x40 1000018b 00000000 1000018b 00000000
0x50 1000018b 1000018b 1000018b 1000018b
0x60 10001e75 10001e5d 1000018b 1000018b
0x70 1000018b 1000018b 1000018b 1000018b
0x80 1000018b 1000018b 1000018b 1000018b
0x90 00000000 1000018b 1000018b 1000018b
0xa0 1000018b 1000018b 1000018b 1000018b
0xb0 1000018b 1000018b 1000018b 1000018b
0xc0 1000018b 1000018b 1000018b 1000018b
0xd0 1000018b 1000018b 1000018b 1000018b
0xe0 1000018b 1000018b 1000018b 1000018b
0xf0 00000000 00000000 1000018b 1000018b

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt queryOTPMem
0x40045000 a00bcb3c 00a66f29 00000000 00000080
0x40045010 00000000 00000000 00000000 00000000
0x40045020 00000000 00000000 00000000 00000000
0x40045030 00000000 00000000 00000000 00000000
0x40045040 00000000 00000000 00000000 00000000
0x40045050 86b95973 6384ab77 c2057d0c aa2d6a07
0x40045060 00000000 00000000 00000000 00000000
0x40045070 00000000 00000000 00000000 00000000

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt querypart
partID = 0xa00bcb3c 80
decode = LPC4322: BankA 512KB
Core Clock = 180000000

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt queryflash
Number of Flash Devices = 2
Name = BankA
Base = 0x1a000000
Size = 0x80000
Page = 0x1000
Sector = 8-64KB
Blank = 0xff
Buffer = 0x8000
Name = EEPROM
Base = 0x20040000
Size = 0x3f80
Page = 0x80
Sector = NA
Blank = 0x0
Buffer = 0x8000

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt erase BankA
Erasing BankA LPC_Error Fatal 0x10
... completed in 0.106s
Error: <Command line>:1: Fatal 0x10
Script cmd: erase BankA
Last target cmd: =eraseFlash 1a000000
Terminated with errors

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt program sdkusb_examples_
usb_keyboard2mouse_bm.bin.hdr BankA
..
Programmed 62480 bytes to 0x1a000000 in 0.149s (409.460KB/sec)

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt verify sdkusb_examples_u
sb_keyboard2mouse_bm.bin.hdr BankA
..
Verified 62480 bytes to 0x1a000000 in 0.017s (3588.943KB/sec)

C:\nxp\LPCScrypt\scripts>C:\nxp\LPCScrypt\bin\lpcscrypt erase BankA
Erasing BankA LPC_Error Fatal 0x10
... completed in 0.106s
Error: <Command line>:1: Fatal 0x10
Script cmd: erase BankA
Last target cmd: =eraseFlash 1a000000
Terminated with errors

C:\nxp\LPCScrypt\scripts>

Outcomes