From 5f5e980f087430c1a9c5511e3ff1b2b0f9bcc301 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 9 Jul 2012 18:12:22 +0000 Subject: Update to LPC4330 scripts and README git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4922 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/lpc4330-xplorer/README.txt | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'nuttx/configs/lpc4330-xplorer/README.txt') diff --git a/nuttx/configs/lpc4330-xplorer/README.txt b/nuttx/configs/lpc4330-xplorer/README.txt index 25eac7c2c..031d7b234 100644 --- a/nuttx/configs/lpc4330-xplorer/README.txt +++ b/nuttx/configs/lpc4330-xplorer/README.txt @@ -273,6 +273,18 @@ Code Red IDE Command Line Flash Programming ------------------------------ + The first step is to active the LPCLink's boot mode. For my installation + path, that can be done using the following steps in a Cygwin bash shell: + + $ /cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin/Scripts/bootLPCXpresso.cmd winusb + Booting LPC-Link with LPCXpressoWIN.enc + Press any key to continue . . . + + NOTE that the following alias is defined in the setenv.sh file and + can be used to enter the boot mode with a simpler command: + + alias lpc43xx='${REDSUITE_BIN}/Scripts/bootLPCXpresso.cmd winusb' + The underlying debugger within Red Suite/LPCXpresso is GDB. That GDB used from the command line. The GDB configuration details for command line use are on Code Red Wiki: @@ -318,6 +330,37 @@ Code Red IDE configuration file when you build NuttX. That option is necessary to build in debugging symbols. + Troubleshooting. This page provides some troubleshooting information that + you can use to verify that the LPCLink is working correctly: + + http://support.code-red-tech.com/CodeRedWiki/LPCLinkDiagnostics + + For example: + + C:\code_red\RedSuite_4.2.3_379\redsuite\bin\Scripts>bootLPCXpresso winusb + Booting LPC-Link with LPCXpressoWIN.enc + Press any key to continue . . . + C:\code_red\RedSuite_4.2.3_379\redsuite\bin\Scripts>set CRT_DEBUG_TRACE=1 + C:\code_red\RedSuite_4.2.3_379\redsuite\bin\Scripts>cd .. + C:\code_red\RedSuite_4.2.3_379\redsuite\bin>crt_emu_lpc18_43_nxp.exe -info-emu -wire=winusb + Ni: Code Red Technologies Debug Driver v4.0 (May 21 2012 22:04:03) + 1 Emulators available: + 0. T1S6RGRIA LPC-Link Probe v1.1 (Code Red - LPCXpresso) + + C:\code_red\RedSuite_4.2.3_379\redsuite\bin>crt_emu_lpc18_43_nxp.exe -info-target -wire=winusb + Ni: Code Red Technologies Debug Driver v4.0 (May 21 2012 22:04:03) + Nc: Looked for vendor directory XML file in C:/code_red/RedSuite_4.2.3_379/redsuite/bin/nxp_directory.xml + + Nc: Found generic directory XML file in C:/code_red/RedSuite_4.2.3_379/redsuite/bin/crt_directory.xml + + AP Ack: 04 + Nc: Mem-AP ID: 0x24770011 ROM Addr: 0xE00FF003 + Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: T1S6RGRIA + Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False. + Nc: Packet delay: 16 Poll delay: 0. + Wc: XML Error in info file C:/code_red/RedSuite_4.2.3_379/redsuite/bin/nxp_lpc2xxx.xme: no matching info '*' + Ed:03: Failed on chip setup: Ec(01). Invalid, mismatched, or unknown part + NuttX buildroot Toolchain ========================= -- cgit v1.2.3