forked from Archive/PX4-Autopilot
Update3 LPC4330 README files
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4921 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
28947f6f72
commit
862e934f6b
|
@ -273,17 +273,50 @@ Code Red IDE
|
||||||
Command Line Flash Programming
|
Command Line Flash Programming
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
The GCC toolchain in LPCXpresso can be used from the command line. The
|
The underlying debugger within Red Suite/LPCXpresso is GDB. That GDB
|
||||||
GDB configuration details for command line use are on Code Red Wiki:
|
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
|
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 | <debug driver> <options> : Start debug driver, connect to target
|
||||||
|
load : Load image and download to target
|
||||||
|
|
||||||
|
The where <debug driver> 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
|
/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.
|
And <options> are:
|
||||||
Other JTAG interfaces are supported in the full version.
|
|
||||||
|
-n set information level for the debug driver. n should be 2, 3 or 4.
|
||||||
|
2 should be sufficient in most circumstances
|
||||||
|
|
||||||
|
-p<part> is the target device to connect to and you should use
|
||||||
|
<part>=LPC4330.
|
||||||
|
|
||||||
|
-wire=<probe> specifies the debug probe. For LPCLink on Windows 7 use
|
||||||
|
<probe>=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
|
NuttX buildroot Toolchain
|
||||||
=========================
|
=========================
|
||||||
|
|
|
@ -52,11 +52,13 @@ fi
|
||||||
# Code Red toolchain in any other location or if you install a different
|
# Code Red toolchain in any other location or if you install a different
|
||||||
# version
|
# version
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin"
|
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
|
# 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
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
# the CodeSourcery toolchain in any other location
|
# the CodeSourcery toolchain in any other location
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
#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
|
# 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
|
# 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.
|
# 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 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 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
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
# toolchain.
|
# toolchain.
|
||||||
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
#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}"
|
echo "PATH : ${PATH}"
|
||||||
|
|
|
@ -307,8 +307,7 @@ Code Red IDE
|
||||||
^^^^^^^^^^^^
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
NuttX is built using command-line make. It can be used with an IDE, but some
|
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
|
effort will be required to create the project.
|
||||||
in the RIDE subdirectory).
|
|
||||||
|
|
||||||
Makefile Build
|
Makefile Build
|
||||||
--------------
|
--------------
|
||||||
|
|
Loading…
Reference in New Issue