summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-22 18:58:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-22 18:58:24 +0000
commita164b44b1ed5d4182a3cd3fcc3d0fae69c6e8874 (patch)
tree08f291a3ee94a94aa3bdef50c85a4d671083a199 /nuttx
parentbec3f70c3858c97444ebac1a1a26e71658c36935 (diff)
downloadpx4-nuttx-a164b44b1ed5d4182a3cd3fcc3d0fae69c6e8874.tar.gz
px4-nuttx-a164b44b1ed5d4182a3cd3fcc3d0fae69c6e8874.tar.bz2
px4-nuttx-a164b44b1ed5d4182a3cd3fcc3d0fae69c6e8874.zip
Add support for the microchipOpen toolchain
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4864 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/configs/mirtoo/README.txt24
-rw-r--r--nuttx/configs/mirtoo/ostest/Make.defs12
-rw-r--r--nuttx/configs/mirtoo/ostest/defconfig1
-rwxr-xr-xnuttx/configs/mirtoo/ostest/setenv.sh7
-rw-r--r--nuttx/configs/pcblogic-pic32mx/README.txt16
-rw-r--r--nuttx/configs/pic32-starterkit/README.txt16
-rw-r--r--nuttx/configs/pic32mx7mmb/README.txt16
-rw-r--r--nuttx/configs/sure-pic32mx/README.txt16
-rw-r--r--nuttx/configs/ubw32/README.txt16
9 files changed, 107 insertions, 17 deletions
diff --git a/nuttx/configs/mirtoo/README.txt b/nuttx/configs/mirtoo/README.txt
index 5b1b9dd5b..9074c6875 100644
--- a/nuttx/configs/mirtoo/README.txt
+++ b/nuttx/configs/mirtoo/README.txt
@@ -348,14 +348,32 @@ Toolchains
An alternative, build-it-yourself toolchain is available here:
http://sourceforge.net/projects/microchipopen/ . These tools were
last updated circa 2010. However, this is the only way that I know of
- to get free C++ support.
+ to get free C++ support. Use this option to select the microchipopen
+ toolchain:
+
+ CONFIG_PIC32MX_MICROCHIPOPENL - microchipOpen toolchain for Linux
+
+ And set the path appropriately in the setenv.sh file.
Building MicrochipOpen (on Linux)
+ ---------------------------------
1) Get the build script from this location:
- http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
+ http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
2) Build the code using the build script, for example:
- ./build.sh -b v105_freeze
+
+ ./build.sh -b v105_freeze
+
+ This will check out the selected branch and build the tools.
+
+ 3) Binaries will then be available in a subdirectory with a name something like
+ pic32-v105-freeze-20120622/install-image/bin (depending on the current data
+ and the branch that you selected.
+
+ Note that the tools will have the prefix, mypic32- so, for example, the
+ compiler will be called mypic32-gcc.
This will check out the selected branch and build the tools.
diff --git a/nuttx/configs/mirtoo/ostest/Make.defs b/nuttx/configs/mirtoo/ostest/Make.defs
index 7f1ea6ed6..4e7ce69b4 100644
--- a/nuttx/configs/mirtoo/ostest/Make.defs
+++ b/nuttx/configs/mirtoo/ostest/Make.defs
@@ -58,7 +58,7 @@ ifeq ($(CONFIG_PIC32MX_MICROCHIPW_LITE),y)
LDFLAGS += -nostartfiles -nodefaultlibs
endif
ifeq ($(CONFIG_PIC32MX_MICROCHIPL),y)
- # Microchip XC32 toolchain under Linux
+ # Microchip C32 toolchain under Linux
CROSSDEV = pic32-
# CROSSDEV = xc32-
MAXOPTIMIZATION = -O2
@@ -67,7 +67,7 @@ ifeq ($(CONFIG_PIC32MX_MICROCHIPL),y)
LDFLAGS += -nostartfiles -nodefaultlibs
endif
ifeq ($(CONFIG_PIC32MX_MICROCHIPL_LITE),y)
- # Microchip XC32 toolchain under Linux
+ # Microchip C32 toolchain under Linux
CROSSDEV = pic32-
# CROSSDEV = xc32-
# MAXOPTIMIZATION = -O2
@@ -75,6 +75,14 @@ ifeq ($(CONFIG_PIC32MX_MICROCHIPL_LITE),y)
ARCHPICFLAGS = -fpic -membedded-pic
LDFLAGS += -nostartfiles -nodefaultlibs
endif
+ifeq ($(CONFIG_PIC32MX_MICROCHIPOPENL),y)
+ # microchipOpen -toolchain under Linux
+ CROSSDEV = mypic32-
+ # MAXOPTIMIZATION = -O2
+ ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data
+ ARCHPICFLAGS = -fpic -membedded-pic
+ LDFLAGS += -nostartfiles -nodefaultlibs
+endif
ifeq ($(WINTOOL),y)
# Windows-native toolchains
diff --git a/nuttx/configs/mirtoo/ostest/defconfig b/nuttx/configs/mirtoo/ostest/defconfig
index c15d7b7e1..5ed0043cc 100644
--- a/nuttx/configs/mirtoo/ostest/defconfig
+++ b/nuttx/configs/mirtoo/ostest/defconfig
@@ -117,6 +117,7 @@ CONFIG_PIC32MX_MICROCHIPW=n
CONFIG_PIC32MX_MICROCHIPL=n
CONFIG_PIC32MX_MICROCHIPW_LITE=y
CONFIG_PIC32MX_MICROCHIPL_LITE=n
+CONFIG_PIC32MX_MICROCHIPOPENL=n
#
# Individual subsystems can be enabled:
diff --git a/nuttx/configs/mirtoo/ostest/setenv.sh b/nuttx/configs/mirtoo/ostest/setenv.sh
index 1175bd482..8551e9bbc 100755
--- a/nuttx/configs/mirtoo/ostest/setenv.sh
+++ b/nuttx/configs/mirtoo/ostest/setenv.sh
@@ -53,11 +53,16 @@ fi
export TOOLCHAIN_BIN="/cygdrive/c/MicroChip/mplabc32/v1.12/bin"
# This the Linux path to the location where I installed the MicroChip
-# PIC32MX XC32 toolchain under Linus. This is the default install
+# PIC32MX XC32 toolchain under Linux. This is the default install
# location. You will also have to edit this if you install a different
# version of if you install the toolchain at a different location
#export TOOLCHAIN_BIN="/opt/microchip/xc32/v1.00/bin"
+# This the Linux path to the location where I installed the microchipOpen
+# toolchain under Linux. You will have to edit this if you use the
+# microchipOpen toolchain.
+#export TOOLCHAIN_BIN="~/projects/microchipopen/v105_freeze/pic32-v105-freeze-20120622/install-image/bin"
+
# This is the path to the toosl subdirectory
export PIC32TOOL_DIR="${WD}/tools/pic32mx"
diff --git a/nuttx/configs/pcblogic-pic32mx/README.txt b/nuttx/configs/pcblogic-pic32mx/README.txt
index fbc8e4704..a28f42ee1 100644
--- a/nuttx/configs/pcblogic-pic32mx/README.txt
+++ b/nuttx/configs/pcblogic-pic32mx/README.txt
@@ -195,9 +195,21 @@ Toolchains
Building MicrochipOpen (on Linux)
1) Get the build script from this location:
- http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
+ http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
2) Build the code using the build script, for example:
- ./build.sh -b v105_freeze
+
+ ./build.sh -b v105_freeze
+
+ This will check out the selected branch and build the tools.
+
+ 3) Binaries will then be available in a subdirectory with a name something like
+ pic32-v105-freeze-20120622/install-image/bin (depending on the current data
+ and the branch that you selected.
+
+ Note that the tools will have the prefix, mypic32- so, for example, the
+ compiler will be called mypic32-gcc.
This will check out the selected branch and build the tools.
diff --git a/nuttx/configs/pic32-starterkit/README.txt b/nuttx/configs/pic32-starterkit/README.txt
index 27c312d56..0ebb95d18 100644
--- a/nuttx/configs/pic32-starterkit/README.txt
+++ b/nuttx/configs/pic32-starterkit/README.txt
@@ -412,9 +412,21 @@ Toolchains
Building MicrochipOpen (on Linux)
1) Get the build script from this location:
- http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
+ http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
2) Build the code using the build script, for example:
- ./build.sh -b v105_freeze
+
+ ./build.sh -b v105_freeze
+
+ This will check out the selected branch and build the tools.
+
+ 3) Binaries will then be available in a subdirectory with a name something like
+ pic32-v105-freeze-20120622/install-image/bin (depending on the current data
+ and the branch that you selected.
+
+ Note that the tools will have the prefix, mypic32- so, for example, the
+ compiler will be called mypic32-gcc.
This will check out the selected branch and build the tools.
diff --git a/nuttx/configs/pic32mx7mmb/README.txt b/nuttx/configs/pic32mx7mmb/README.txt
index b1297fa2d..7f5e7cb0f 100644
--- a/nuttx/configs/pic32mx7mmb/README.txt
+++ b/nuttx/configs/pic32mx7mmb/README.txt
@@ -180,9 +180,21 @@ Toolchains
Building MicrochipOpen (on Linux)
1) Get the build script from this location:
- http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
+ http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
2) Build the code using the build script, for example:
- ./build.sh -b v105_freeze
+
+ ./build.sh -b v105_freeze
+
+ This will check out the selected branch and build the tools.
+
+ 3) Binaries will then be available in a subdirectory with a name something like
+ pic32-v105-freeze-20120622/install-image/bin (depending on the current data
+ and the branch that you selected.
+
+ Note that the tools will have the prefix, mypic32- so, for example, the
+ compiler will be called mypic32-gcc.
This will check out the selected branch and build the tools.
diff --git a/nuttx/configs/sure-pic32mx/README.txt b/nuttx/configs/sure-pic32mx/README.txt
index 594dad59b..32f93ba00 100644
--- a/nuttx/configs/sure-pic32mx/README.txt
+++ b/nuttx/configs/sure-pic32mx/README.txt
@@ -261,9 +261,21 @@ Toolchains
Building MicrochipOpen (on Linux)
1) Get the build script from this location:
- http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
+ http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
2) Build the code using the build script, for example:
- ./build.sh -b v105_freeze
+
+ ./build.sh -b v105_freeze
+
+ This will check out the selected branch and build the tools.
+
+ 3) Binaries will then be available in a subdirectory with a name something like
+ pic32-v105-freeze-20120622/install-image/bin (depending on the current data
+ and the branch that you selected.
+
+ Note that the tools will have the prefix, mypic32- so, for example, the
+ compiler will be called mypic32-gcc.
This will check out the selected branch and build the tools.
diff --git a/nuttx/configs/ubw32/README.txt b/nuttx/configs/ubw32/README.txt
index d4d44be03..7a34745cb 100644
--- a/nuttx/configs/ubw32/README.txt
+++ b/nuttx/configs/ubw32/README.txt
@@ -205,11 +205,21 @@ Toolchains
Building MicrochipOpen (on Linux)
1) Get the build script from this location:
- http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
+ http://microchipopen.svn.sourceforge.net/viewvc/microchipopen/ccompiler4pic32/buildscripts/trunk/
+
2) Build the code using the build script, for example:
- ./build.sh -b v105_freeze
- This will check out the selected branch and build the tools.
+ ./build.sh -b v105_freeze
+
+ This will check out the selected branch and build the tools.
+
+ 3) Binaries will then be available in a subdirectory with a name something like
+ pic32-v105-freeze-20120622/install-image/bin (depending on the current data
+ and the branch that you selected.
+
+ Note that the tools will have the prefix, mypic32- so, for example, the
+ compiler will be called mypic32-gcc.
MPLAB/C32 vs MPLABX/X32
-----------------------