Add support for the microchipOpen toolchain
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4864 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
59b426bff4
commit
a4d0745539
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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/
|
||||
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.
|
||||
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.
|
||||
|
||||
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
|
||||
-----------------------
|
||||
|
Loading…
Reference in New Issue
Block a user