LPCxpresso Debug fails with Error reported by server Redlink

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

LPCxpresso Debug fails with Error reported by server Redlink

2,396 Views
davidluca3000
Contributor I

Hello,

I'm having trouble with the latest LPCxpresso IDE v8.2.2,  cannot program a LPC11U14 RevA (2011) board with LPC-Link, I programmed it in the past using an older version from last year and don't know why isn't working with this version, it fails with following message:

Error in final launch sequence
Error: Error reported by server (redlinkserv.exe):
Status fail
LinkServer has been terminated and will be restarted.
Please restart your debug session.
If the problem recurs, please power cycle your debug probe and restart LPCXpresso.
Error: Error reported by server (redlinkserv.exe):
Status fail
LinkServer has been terminated and will be restarted.
Please restart your debug session.
If the problem recurs, please power cycle your debug probe and restart LPCXpresso.

I tried all those steps and still cannot launch a debug session. When I plug in the USB cable to the LPC-Link side, the LED2 is on and SJ1 is soldered. Launching debug shows a window that lists "LPC-Link Probe v1.3" , serial number: "WIN64HS12", type: LinkServer". My system is Win10 x64 Pro, run it as administrator. Any idea what's wrong? 

Thank you in advance,

David.

Labels (1)
Tags (1)
0 Kudos
3 Replies

1,474 Views
davidluca3000
Contributor I

Build console shows:

11:48:01 **** Incremental Build of configuration Debug for project ControlBox ****
make -r -j8 all
Building target: ControlBox.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"M:\OneDrive\lpc11u14joystick\controlbox\nxp_lpcxpresso_11u14_board_lib\Debug" -L"M:\OneDrive\lpc11u14joystick\controlbox\lpc_chip_11uxx_lib\Debug" -L"M:\OneDrive\lpc11u14joystick\controlbox\lpc_chip_11uxx_lib\libs" -Xlinker -Map="ControlBox.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "nxp_lpcxpresso_11u14_freertos_blinky_Debug.ld" -o "ControlBox.axf" ./freertos/src/FreeRTOSCommonHooks.o ./freertos/src/croutine.o ./freertos/src/heap_1.o ./freertos/src/list.o ./freertos/src/port.o ./freertos/src/queue.o ./freertos/src/tasks.o ./freertos/src/timers.o ./example/src/adc.o ./example/src/cr_startup_lpc11xx.o ./example/src/freertos_blinky.o ./example/src/hid_desc.o ./example/src/hid_main.o ./example/src/hid_mouse.o ./example/src/keyboard.o ./example/src/sysinit.o -lnxp_lpcxpresso_11u14_board_lib -llpc_chip_11uxx_lib -lusbd_11uxx_lib
Finished building target: ControlBox.axf

make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "ControlBox.axf"; # arm-none-eabi-objcopy -O binary "ControlBox.axf" "ControlBox.bin" ; checksum -p LPC11U14_201 -d "ControlBox.bin";
text data bss dec hex filename
19312 76 2380 21768 5508 ControlBox.axf

11:48:44 Build Finished (took 42s.737ms)

RedlinkServer console shows:

[Started server]
[Connected on port 3025]
redlink>ProbeList
Index = 1
Manufacturer = NXP - LPC-Link
Description = LPC-Link Probe v1.3
Serial Number = WIN64HS12
VID:PID = 1FC9:0009
Path = Not Available
redlink>ProbeStatus
Index = 1
Manufacturer = NXP - LPC-Link
Description = LPC-Link Probe v1.3
Serial Number = WIN64HS12
VID:PID = 1FC9:0009
Path = Not Available
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = JTAG
CoresConfigured = FALSE
PacketSize = 512
Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = WINUSB
Probe Reference Count = 0
redlink>ProbeIsOpen 1
FALSE
redlink>ProbeOpenByIndex 1
Status fail
[Closed]
[Connected on port 3025]
redlink>ProbeStatus
Index = 1
Manufacturer = NXP - LPC-Link
Description = LPC-Link Probe v1.3
Serial Number = WIN64HS12
VID:PID = 1FC9:0009
Path = Not Available
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = JTAG
CoresConfigured = FALSE
PacketSize = 512
Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = WINUSB
Probe Reference Count = 0
redlink>quit
[Closed]

Debug console shows:

GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160616-cvs
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

GDB Traces console shoes:

539,949 2-gdb-version
539,954 ~"GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160616-cvs\n"
539,954 ~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
539,954 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
539,954 ~"This GDB was configured as \"--host=i686-w64-mingw32 --target=arm-none-eabi\".\nType \"sho\
w configuration\" for configuration details."
539,955 ~"\nFor bug reporting instructions, please see:\n"
539,955 ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
539,955 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\
ware/gdb/documentation/>.\n"
539,955 ~"For help, type \"help\".\n"
539,955 ~"Type \"apropos word\" to search for commands related to \"word\".\n"
539,955 2^done
539,956 (gdb)
539,958 3-environment-cd M:/OneDrive/lpc11u14joystick/controlbox/ControlBox
539,965 3^done
539,965 (gdb)
539,966 4-gdb-set breakpoint pending on
539,975 4^done
539,975 (gdb)
539,976 5-enable-pretty-printing
539,985 5^done
539,985 (gdb)
539,985 6-gdb-set python print-stack none
539,995 6^done
539,995 (gdb)
539,995 7-gdb-set print object on
540,005 7^done
540,005 (gdb)
540,006 8-gdb-set print sevenbit-strings on
540,015 8^done
540,015 (gdb)
540,015 9-gdb-set charset ISO-8859-1
540,026 9^done
540,026 (gdb)
540,027 10-gdb-set auto-solib-add on
540,036 10^done
540,036 (gdb)
540,042 11-file-exec-and-symbols --thread-group i1 M:/OneDrive/lpc11u14joystick/controlbox/ControlBo\
x/Debug/ControlBox.axf
540,052 11^done
540,052 (gdb)
540,055 12-interpreter-exec console "set remotetimeout 60000"
540,062 =cmd-param-changed,param="remotetimeout",value="60000"
540,062 12^done
540,062 (gdb)
546,135 13-target-disconnect
546,135 14-gdb-exit
546,143 13^error,msg="You can't do that when your target is `exec'"
546,143 (gdb)
546,143 14^exit

 

The <terminated> Debug messages console (last in the list when the error dialog is displayed) shows no message.

Let me know if you need more info please.

Best regards,

David.

0 Kudos

1,474 Views
lpcxpresso_supp
NXP Employee
NXP Employee

It's hard to say what's going on without the debug log. Set the Debug Level configuration to 4, then post the Debug Log seen after the failure. I'd first check the Task Manager to see if there's a defunct redlinkserv.exe process left running after the failure. If so, kill it and retry the connection.

Thanks and regards,

LPCXpresso Support

0 Kudos

1,474 Views
davidluca3000
Contributor I

By the way, I did follow the sequence from Regaining debug access to target MCU , my firmware is flashing LED2 and when I connect ISP to GND and insert the USB cable, disconnect ISP from GND, then LED2 becomes solid on, no flashing. That's when I start debug session and get the error above.

0 Kudos