diff --git a/configs/demo9s12ne64/README.txt b/configs/demo9s12ne64/README.txt index cf35bc6d39a..e89bc4f9cb0 100755 --- a/configs/demo9s12ne64/README.txt +++ b/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 /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/configs/demo9s12ne64/ostest/Make.defs b/configs/demo9s12ne64/ostest/Make.defs index 1068d304223..cdbfda2b355 100755 --- a/configs/demo9s12ne64/ostest/Make.defs +++ b/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/configs/demo9s12ne64/ostest/ld.script.banked b/configs/demo9s12ne64/ostest/ld.script.banked index 39d0631873c..17c73dd53e1 100755 --- a/configs/demo9s12ne64/ostest/ld.script.banked +++ b/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/configs/demo9s12ne64/ostest/ld.script.nonbanked b/configs/demo9s12ne64/ostest/ld.script.nonbanked index d27ebff9723..8e2a2768841 100755 --- a/configs/demo9s12ne64/ostest/ld.script.nonbanked +++ b/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/configs/demo9s12ne64/ostest/setenv.sh b/configs/demo9s12ne64/ostest/setenv.sh index fcfc38af4f5..0010997b7c0 100755 --- a/configs/demo9s12ne64/ostest/setenv.sh +++ b/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}"