Misc m9s12x updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3278 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
b4fab8f555
commit
dfc84c1a56
@ -4,6 +4,16 @@ README
|
||||
This README discusses issues unique to NuttX configurations for the
|
||||
Freescale DEMO9S12NE64 development board.
|
||||
|
||||
CONTENTS
|
||||
^^^^^^^^
|
||||
• MC9S12NE64 Features
|
||||
• Development Environment
|
||||
• NuttX Buildroot Toolchain
|
||||
• FreeScale HCS12 Serial Monitor
|
||||
• Soft Registers
|
||||
• HCS12/DEMO9S12NEC64-specific Configuration Options
|
||||
• Configurations
|
||||
|
||||
MC9S12NE64 Features
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@ -97,7 +107,7 @@ Development Environment
|
||||
environment. The source has been built only using the GNU toolchain
|
||||
(see below). Other toolchains will likely cause problems.
|
||||
|
||||
NuttX buildroot Toolchain
|
||||
NuttX Buildroot Toolchain
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
||||
@ -122,12 +132,17 @@ NuttX buildroot Toolchain
|
||||
|
||||
4. cd <some-dir>/buildroot
|
||||
|
||||
5. cp configs/m68hc12-defconfig-3.4.6 .config
|
||||
5. cp configs/m9s12x-defconfig-3.3.6 .config
|
||||
|
||||
6. make oldconfig
|
||||
|
||||
7. make
|
||||
|
||||
If the make fails because it can't find the file to download, you may
|
||||
have to locate the file on the internet and download it into the archives/
|
||||
directory manually. For example, binutils-2.18 can be found here:
|
||||
http://ftp.gnu.org/gnu/binutils/
|
||||
|
||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
||||
the path to the newly built binaries.
|
||||
|
||||
@ -239,7 +254,7 @@ Soft Registers
|
||||
files from the Make.defs file so that they no longer cause a problem.
|
||||
|
||||
HCS12/DEMO9S12NEC64-specific Configuration Options
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
CONFIG_ARCH - Identifies the arch/ subdirectory. This should
|
||||
be set to:
|
||||
|
@ -38,15 +38,15 @@ include ${TOPDIR}/.config
|
||||
# Setup for the selected toolchain
|
||||
# NuttX buildroot under Linux or Cygwin
|
||||
|
||||
CROSSDEV = m68hc12-elf-
|
||||
CROSSDEV = m9s12x-elf-
|
||||
MAXOPTIMIZATION = -Os
|
||||
WINTOOL = n
|
||||
|
||||
ifeq ($(CONFIG_HCS12_NONBANKED),y)
|
||||
ARCHCPUFLAGS = -m68hcs12 -mshort -mnolong-calls
|
||||
ARCHCPUFLAGS = -m9s12x -mshort -mnolong-calls
|
||||
LDSCRIPT = ld.script.nonbanked
|
||||
else
|
||||
ARCHCPUFLAGS = -m68hcs12 -mshort -mlong-calls
|
||||
ARCHCPUFLAGS = -m9x12x -mshort -mlong-calls
|
||||
LDSCRIPT = ld.script.banked
|
||||
endif
|
||||
|
||||
|
@ -84,7 +84,6 @@ MEMORY
|
||||
vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
|
||||
}
|
||||
|
||||
OUTPUT_ARCH(m68hc12)
|
||||
ENTRY(_stext)
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -57,7 +57,6 @@ MEMORY
|
||||
vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
|
||||
}
|
||||
|
||||
OUTPUT_ARCH(m68hc12)
|
||||
ENTRY(_stext)
|
||||
SECTIONS
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ fi
|
||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
|
||||
|
||||
WD=`pwd`
|
||||
export BUILDROOT_BIN="${WD}/../buildroot/build_m68hc12/staging_dir/bin"
|
||||
export BUILDROOT_BIN="${WD}/../buildroot/build_m9s12x/staging_dir/bin"
|
||||
export PATH="${BUILDROOT_BIN}:${RIDE_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||
|
||||
echo "PATH : ${PATH}"
|
||||
|
Loading…
Reference in New Issue
Block a user