diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-10 20:15:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-10 20:15:42 +0000 |
commit | 3a799e882bbeaa2826e759e444d090ec7cef8618 (patch) | |
tree | 76152fa33644681acced1a605f639c868ba59902 /nuttx/configs/demo9s12ne64 | |
parent | d19dd54ecdf49431160e6f71fd4bab17ef3c70ab (diff) | |
download | px4-nuttx-3a799e882bbeaa2826e759e444d090ec7cef8618.tar.gz px4-nuttx-3a799e882bbeaa2826e759e444d090ec7cef8618.tar.bz2 px4-nuttx-3a799e882bbeaa2826e759e444d090ec7cef8618.zip |
Misc m9s12x updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3278 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/demo9s12ne64')
-rwxr-xr-x | nuttx/configs/demo9s12ne64/README.txt | 21 | ||||
-rwxr-xr-x | nuttx/configs/demo9s12ne64/ostest/Make.defs | 6 | ||||
-rwxr-xr-x | nuttx/configs/demo9s12ne64/ostest/ld.script.banked | 1 | ||||
-rwxr-xr-x | nuttx/configs/demo9s12ne64/ostest/ld.script.nonbanked | 1 | ||||
-rwxr-xr-x | nuttx/configs/demo9s12ne64/ostest/setenv.sh | 2 |
5 files changed, 22 insertions, 9 deletions
diff --git a/nuttx/configs/demo9s12ne64/README.txt b/nuttx/configs/demo9s12ne64/README.txt index cf35bc6d3..e89bc4f9c 100755 --- a/nuttx/configs/demo9s12ne64/README.txt +++ b/nuttx/configs/demo9s12ne64/README.txt @@ -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: diff --git a/nuttx/configs/demo9s12ne64/ostest/Make.defs b/nuttx/configs/demo9s12ne64/ostest/Make.defs index 1068d3042..cdbfda2b3 100755 --- a/nuttx/configs/demo9s12ne64/ostest/Make.defs +++ b/nuttx/configs/demo9s12ne64/ostest/Make.defs @@ -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 diff --git a/nuttx/configs/demo9s12ne64/ostest/ld.script.banked b/nuttx/configs/demo9s12ne64/ostest/ld.script.banked index 39d063187..17c73dd53 100755 --- a/nuttx/configs/demo9s12ne64/ostest/ld.script.banked +++ b/nuttx/configs/demo9s12ne64/ostest/ld.script.banked @@ -84,7 +84,6 @@ MEMORY vectors (rx) : ORIGIN = 0xff80, LENGTH = 256 } -OUTPUT_ARCH(m68hc12) ENTRY(_stext) SECTIONS { diff --git a/nuttx/configs/demo9s12ne64/ostest/ld.script.nonbanked b/nuttx/configs/demo9s12ne64/ostest/ld.script.nonbanked index d27ebff97..8e2a27688 100755 --- a/nuttx/configs/demo9s12ne64/ostest/ld.script.nonbanked +++ b/nuttx/configs/demo9s12ne64/ostest/ld.script.nonbanked @@ -57,7 +57,6 @@ MEMORY vectors (rx) : ORIGIN = 0xff80, LENGTH = 256 } -OUTPUT_ARCH(m68hc12) ENTRY(_stext) SECTIONS { diff --git a/nuttx/configs/demo9s12ne64/ostest/setenv.sh b/nuttx/configs/demo9s12ne64/ostest/setenv.sh index fcfc38af4..0010997b7 100755 --- a/nuttx/configs/demo9s12ne64/ostest/setenv.sh +++ b/nuttx/configs/demo9s12ne64/ostest/setenv.sh @@ -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}" |