diff --git a/nuttx/configs/lpc4330-xplorer/README.txt b/nuttx/configs/lpc4330-xplorer/README.txt index b319a75370..25eac7c2c2 100644 --- a/nuttx/configs/lpc4330-xplorer/README.txt +++ b/nuttx/configs/lpc4330-xplorer/README.txt @@ -273,17 +273,50 @@ Code Red IDE Command Line Flash Programming ------------------------------ - The GCC toolchain in LPCXpresso can be used from the command line. The - GDB configuration details for command line use are on Code Red Wiki: + 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: http://support.code-red-tech.com/CodeRedWiki/UsingGDB - The driver for the LPC18xx and LPC43xx is (in my installation path): + and is also summarized here (see the full Wiki for additional details + and optins). + + The Code Red Debug Driver implements the GDB "remote" protocol to allow + connection to debug targets. To start a debug session using GDB, use + following steps: + + arm-none-eabi-gdb executable.axf : Start GDB and name the debug image + target extended-remote | : Start debug driver, connect to target + load : Load image and download to target + + The where is crt_emu_lpc18_43_nxp for LPC18xx and LPC43xx. + Your PATH variable should be set up so that the debug driver executable + can be found. For my installation, the driver for the LPC18xx and LPC43xx + is located at: /cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin/crt_emu_lpc18_43_nxp.exe - The 128K free version only supports the LPC-Link and RedProbe debug probes. - Other JTAG interfaces are supported in the full version. + And are: + + -n set information level for the debug driver. n should be 2, 3 or 4. + 2 should be sufficient in most circumstances + + -p is the target device to connect to and you should use + =LPC4330. + + -wire= specifies the debug probe. For LPCLink on Windows 7 use + =winusb. The 128K free version only supports the LPC-Link + and RedProbe debug probes. Other JTAG interfaces are supported in + the full version. + + Thus the correct invocation for the LPC4330 under Windows7 would be: + + target extended-remote | crt_emu_lpc18_43_nxp -2 -pLPC4330 -wire=winusb + + NOTE: Don't forget to enable CONFIG_DEBUG_SYMBOLS=y in your NuttX + configuration file when you build NuttX. That option is necessary to build + in debugging symbols. NuttX buildroot Toolchain ========================= diff --git a/nuttx/configs/lpc4330-xplorer/ostest/setenv.sh b/nuttx/configs/lpc4330-xplorer/ostest/setenv.sh index c2e0325d59..91c8d73c41 100755 --- a/nuttx/configs/lpc4330-xplorer/ostest/setenv.sh +++ b/nuttx/configs/lpc4330-xplorer/ostest/setenv.sh @@ -52,11 +52,13 @@ fi # Code Red toolchain in any other location or if you install a different # version export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin" +export REDSUITE_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin" # This the Cygwin path to the location where I installed the CodeSourcery # toolchain under windows. You will also have to edit this if you install # the CodeSourcery toolchain in any other location #export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin" +#export REDSUITE_BIN= # These are the Cygwin paths to the locations where I installed the Atollic # toolchain under windows. You will also have to edit this if you install @@ -65,12 +67,20 @@ export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin # at those locations as well. #export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin" #export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin" +#export REDSUITE_BIN= # This the Cygwin path to the location where I build the buildroot # toolchain. #export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin" +#export REDSUITE_BIN= -# Andd add the selected toolchain path to the PATH variable +# And add the selected toolchain path[s] to the PATH variable -export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}" +export PATH="/sbin:/usr/sbin:${PATH_ORIG}" + +if [ ! -z ${REDSUITE_BIN} ]; then + export PATH="${REDSUITE_BIN}:${PATH}" +fi + +export PATH="${TOOLCHAIN_BIN}:${PATH}" echo "PATH : ${PATH}" diff --git a/nuttx/configs/lpcxpresso-lpc1768/README.txt b/nuttx/configs/lpcxpresso-lpc1768/README.txt index 9df5648dc0..b0ead543f4 100755 --- a/nuttx/configs/lpcxpresso-lpc1768/README.txt +++ b/nuttx/configs/lpcxpresso-lpc1768/README.txt @@ -307,8 +307,7 @@ Code Red IDE ^^^^^^^^^^^^ NuttX is built using command-line make. It can be used with an IDE, but some - effort will be required to create the project (There is a simple RIDE project - in the RIDE subdirectory). + effort will be required to create the project. Makefile Build --------------