pc67247005 bin # ./crt_emu_lpc11_13_nxp -wire=winusb -flash-mass Ni: LPCXpresso Debug Driver v2.0 (Oct 27 2010 16:01:27) GetModuleFileName path == /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp Nc: Looked for vendor directory XML file in /usr/local/LPCXpresso/bin/nxp_directory.xml Nc: Found generic directory XML file in /usr/local/LPCXpresso/bin/crt_directory.xml Ed:02: Failed on connect: Ee(02). Not connected to emulator. Et: Emu(0): Connected. Was: None. DpID: EDB6. Info: LPCLINK_1_1 Error 0: (null) Last sticky: 0. AIndex: 0 No MemAp selected No Speed test SWD Frequency: 50 KHz. RTCK: False. Vector catch: False. Packet delay: 0 Poll delay: 0. |
pc67247005 ~ # ldd /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp linux-gate.so.1 => (0xb78dc000) libgdb_remote_lpc11_13_nxp.so => /usr/lib/libgdb_remote_lpc11_13_nxp.so (0xb7871000) libchip_flash_lpc11_13_nxp.so => /usr/lib/libchip_flash_lpc11_13_nxp.so (0xb782c000) libproc_cm3.so => /usr/lib/libproc_cm3.so (0xb77ea000) libelf.so => /usr/lib/libelf.so (0xb77e4000) libdl.so.2 => /lib/libdl.so.2 (0xb77df000) libpthread.so.0 => /lib/libpthread.so.0 (0xb77c6000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/libstdc++.so.6 (0xb76d2000) libm.so.6 => /lib/libm.so.6 (0xb76ac000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/libgcc_s.so.1 (0xb7690000) libc.so.6 => /lib/libc.so.6 (0xb7535000) /lib/ld-linux.so.2 (0xb78c0000) |
pc67247005 ~ # ~/bin/lpc LPCLink Bootless Found:"Bus 001 Device 016: ID 0471:df55 Philips (or NXP) LPCXpresso LPC-Link" Bus/Dev No:001/016 ATTR{bMaxPower}=="100mA" |
pc67247005 bin # ~/bin/lpc LPCLink Ready to Link Found:"Bus 001 Device 017: ID 1fc9:0009 " Bus/Dev No:001/017 ATTR{bMaxPower}=="500mA" ATTR{manufacturer}=="Code Red Technologies" ATTR{product}=="LPC-Link Probe v1.1" ATTR{serial}=="T1S6RGRIA" |
pc67247005 bin # ./crt_emu_lpc11_13_nxp -wire=winusb -flash-mass Ni: LPCXpresso Debug Driver v2.0 (Oct 27 2010 16:01:27) GetModuleFileName path == /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp Nc: Looked for vendor directory XML file in /usr/local/LPCXpresso/bin/nxp_directory.xml Nc: Found generic directory XML file in /usr/local/LPCXpresso/bin/crt_directory.xml Ed:02: Failed on connect: Ee(02). Not connected to emulator. Et: Emu(0): Connected. Was: None. DpID: EDB6. Info: LPCLINK_1_1 Error 0: (null) Last sticky: 0. AIndex: 0 No MemAp selected No Speed test SWD Frequency: 50 KHz. RTCK: False. Vector catch: False. Packet delay: 0 Poll delay: 0. |
$ ldd /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp |
#!/bin/sh LPCLink_New_ID="0471:df55" LPCLink_Ready_ID="1fc9:0009" USB_LIST=$(lsusb) target_udev_info () { udevadm info -a -p $(udevadm info -q path -n /dev/bus/usb/${1}/${2}) | egrep "ATTR{(bMaxPower|manufacturer|product|serial)}" } LPCLink_New=$(echo "${USB_LIST}" | grep ${LPCLink_New_ID}) if [ -n "${LPCLink_New}" ]; then echo "LPCLink Bootless Found:\"${LPCLink_New}\"" LPCLink_New_BusNo=$(echo "${LPCLink_New}" | sed -n "s/^Bus[[:space:]]\([[:digit:]]\{3\}\).*/\1/p") LPCLink_New_DevNo=$(echo "${LPCLink_New}" | sed -n 's/^.*Device[[:space:]]\([[:digit:]]\{3\}\).*/\1/p') echo -e "\t Bus/Dev No:${LPCLink_New_BusNo}/${LPCLink_New_DevNo}" target_udev_info "${LPCLink_New_BusNo}" "${LPCLink_New_DevNo}" fi LPCLink_Ready=$(echo "${USB_LIST}" | grep ${LPCLink_Ready_ID}) if [ -n "${LPCLink_Ready}" ]; then echo "LPCLink Ready to Link Found:\"${LPCLink_Ready}\"" LPCLink_Ready_BusNo=$(echo "${LPCLink_Ready}" | sed -n "s/^Bus[[:space:]]\([[:digit:]]\{3\}\).*/\1/p") LPCLink_Ready_DevNo=$(echo "${LPCLink_Ready}" | sed -n "s/^.*Device[[:space:]]\([[:digit:]]\{3\}\).*/\1/p") echo -e "\t Bus/Dev No:${LPCLink_Ready_BusNo}/${LPCLink_Ready_DevNo}" target_udev_info "${LPCLink_Ready_BusNo}" "${LPCLink_Ready_DevNo}" fi |
./crt_emu_lpc11_13_nxp -wire=winusb -info-emu Ni: LPCXpresso Debug Driver v2.0 (Oct 27 2010 16:01:27) 1 Emulators available: 0. LPCLINK_1_1 LPC-Link Driver LINUX32 v1.1 (Code Red - LPCXpresso) |
./crt_emu_lpc11_13_nxp -pLPC1343 -wire=winusb -flash-load=~/LPCXpresso/eclipse/workspace/LPCXpresso/blinky/Debug/blinky.axf Ni: LPCXpresso Debug Driver v2.0 (Oct 27 2010 16:01:27) GetModuleFileName path == /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp Nc: Looked for chip XML file in /usr/local/LPCXpresso/bin/LPC1343.xml Nc: Looked for vendor directory XML file in /usr/local/LPCXpresso/bin/nxp_directory.xml Nc: Found generic directory XML file in /usr/local/LPCXpresso/bin/crt_directory.xml Ed:02: Failed on connect: Ee(02). Not connected to emulator. Et: Emu(0): Connected. Was: None. DpID: EDB6. Info: LPCLINK_1_1 Error 0: (null) Last sticky: 0. AIndex: 0 No MemAp selected No Speed test SWD Frequency: 50 KHz. RTCK: False. Vector catch: False. Packet delay: 0 Poll delay: 0. |
Scripts\bootLPCXpresso.c md winusb |