Merge remote-tracking branch 'origin/master' into ieee802154
This commit is contained in:
commit
feba99e99c
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,8 +14,6 @@ core
|
|||||||
/.config.old
|
/.config.old
|
||||||
/.version
|
/.version
|
||||||
/Make.defs
|
/Make.defs
|
||||||
/setenv.sh
|
|
||||||
/setenv.bat
|
|
||||||
/nuttx
|
/nuttx
|
||||||
/nuttx.*
|
/nuttx.*
|
||||||
/nuttx-*
|
/nuttx-*
|
||||||
|
@ -742,12 +742,10 @@
|
|||||||
| `-- <i>(board-specific source files)</i>
|
| `-- <i>(board-specific source files)</i>
|
||||||
|-- <i><config1-dir></i>
|
|-- <i><config1-dir></i>
|
||||||
| |-- Make.defs
|
| |-- Make.defs
|
||||||
| |-- defconfig
|
| `-- defconfig
|
||||||
| `-- setenv.sh
|
|
||||||
|-- <i><config2-dir></i>
|
|-- <i><config2-dir></i>
|
||||||
| |-- Make.defs
|
| |-- Make.defs
|
||||||
| |-- defconfig
|
| `-- defconfig
|
||||||
| `-- setenv.sh
|
|
||||||
| ...
|
| ...
|
||||||
`-- <i>(other board-specific configuration sub-directories)</i>/
|
`-- <i>(other board-specific configuration sub-directories)</i>/
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
@ -780,7 +778,7 @@
|
|||||||
The <code>configs/</code><i><board-name></i><code>/</code> sub-directory holds all of the
|
The <code>configs/</code><i><board-name></i><code>/</code> sub-directory holds all of the
|
||||||
files that are necessary to configure NuttX for the particular board.
|
files that are necessary to configure NuttX for the particular board.
|
||||||
A board may have various different configurations using the common source files.
|
A board may have various different configurations using the common source files.
|
||||||
Each board configuration is described by three files: <code>Make.defs</code>, <code>defconfig</code>, and <code>setenv.sh</code>.
|
Each board configuration is described by two files: <code>Make.defs</code> and <code>defconfig</code>.
|
||||||
Typically, each set of configuration files is retained in a separate configuration sub-directory
|
Typically, each set of configuration files is retained in a separate configuration sub-directory
|
||||||
(<i><config1-dir></i>, <i><config2-dir></i>, .. in the above diagram).
|
(<i><config1-dir></i>, <i><config2-dir></i>, .. in the above diagram).
|
||||||
|
|
||||||
@ -836,15 +834,6 @@
|
|||||||
most C files in the system.</li>
|
most C files in the system.</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<p>
|
|
||||||
<code>setenv.sh</code>: This is a script that can be included that will be installed at
|
|
||||||
the top level of the directory structure and can be sourced to set any
|
|
||||||
necessary environment variables.
|
|
||||||
You will most likely have to customize the default <code>setenv.sh</code> script in order
|
|
||||||
for it to work correctly in your environment.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3><a name="supportedboards">2.5.3 Supported Boards</a></h3>
|
<h3><a name="supportedboards">2.5.3 Supported Boards</a></h3>
|
||||||
@ -1364,7 +1353,6 @@ tools/
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]Make.defs</code> to <code>${TOPDIR}/Make.defs</code>,<li>
|
<li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]Make.defs</code> to <code>${TOPDIR}/Make.defs</code>,<li>
|
||||||
<li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]setenv.sh</code> to <code>${TOPDIR}/setenv.sh</code>, and</li>
|
|
||||||
<li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]defconfig</code> to <code>${TOPDIR}/.config</code></li>
|
<li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]defconfig</code> to <code>${TOPDIR}/.config</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -1464,7 +1452,6 @@ tools/version.h -v 6.1 .version
|
|||||||
</p>
|
</p>
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
cd ${TOPDIR}
|
cd ${TOPDIR}
|
||||||
source ./setenv.sh
|
|
||||||
make
|
make
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
<p>
|
<p>
|
||||||
@ -1477,15 +1464,12 @@ make
|
|||||||
That directory also holds:
|
That directory also holds:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>The makefile fragment <a href="#boardconfigsubdirs"><code>.config</code></a> that describes the current configuration.</li>
|
<li>The makefile fragment <a href="#boardconfigsubdirs"><code>.config</code></a> that describes the current configuration, and</li>
|
||||||
<li>The makefile fragment <a href="#boardconfigsubdirs"><code>Make.defs</code></a> that provides customized build targets, and</li>
|
<li>The makefile fragment <a href="#boardconfigsubdirs"><code>Make.defs</code></a> that provides customized build targets.</li>
|
||||||
<li>The shell script <a href="#boardconfigsubdirs"><code>setenv.sh</code></a> that sets up the configuration environment for the build.</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
The <a href="#boardconfigsubdirs"><code>setenv.sh</code></a> contains Linux/Cygwin environmental settings that are needed for the build.
|
<b>Environment Variables</b>.
|
||||||
The specific environmental definitions are unique for each board but should include, as a minimum, updates to the <code>PATH</code> variable to include the full path to the architecture-specific toolchain identified in <a href="#boardconfigsubdirs"><code>Make.defs</code></a>.
|
The specific environmental definitions are unique for each board but should include, as a minimum, updates to the <code>PATH</code> variable to include the full path to the architecture-specific toolchain identified in <a href="#boardconfigsubdirs"><code>Make.defs</code></a>.
|
||||||
The <a href="#boardconfigsubdirs"><code>setenv.sh</code></a> only needs to be source'ed at the beginning of a session.
|
|
||||||
The system can be re-made subsequently by just typing <code>make</code>.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>First Time Make.</b>
|
<b>First Time Make.</b>
|
||||||
|
@ -558,8 +558,6 @@ ifeq ($(CONFIG_BUILD_2PASS),y)
|
|||||||
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" distclean
|
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" distclean
|
||||||
endif
|
endif
|
||||||
$(call DELFILE, Make.defs)
|
$(call DELFILE, Make.defs)
|
||||||
$(call DELFILE, setenv.sh)
|
|
||||||
$(call DELFILE, setenv.bat)
|
|
||||||
$(call DELFILE, .config)
|
$(call DELFILE, .config)
|
||||||
$(call DELFILE, .config.old)
|
$(call DELFILE, .config.old)
|
||||||
|
|
||||||
|
@ -536,8 +536,6 @@ ifeq ($(CONFIG_BUILD_2PASS),y)
|
|||||||
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" distclean
|
$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" distclean
|
||||||
endif
|
endif
|
||||||
$(call DELFILE, Make.defs)
|
$(call DELFILE, Make.defs)
|
||||||
$(call DELFILE, setenv.sh)
|
|
||||||
$(call DELFILE, setenv.bat)
|
|
||||||
$(call DELFILE, .config)
|
$(call DELFILE, .config)
|
||||||
$(call DELFILE, .config.old)
|
$(call DELFILE, .config.old)
|
||||||
|
|
||||||
|
24
README.txt
24
README.txt
@ -550,13 +550,6 @@ Instantiating "Canned" Configurations
|
|||||||
and link code. You may need to modify this file to match the
|
and link code. You may need to modify this file to match the
|
||||||
specific needs of your toolchain.
|
specific needs of your toolchain.
|
||||||
|
|
||||||
Copy configs/<board-name>/<config-dir>/setenv.sh to ${TOPDIR}/setenv.sh
|
|
||||||
|
|
||||||
setenv.sh is an optional convenience file that I use to set
|
|
||||||
the PATH variable to the toolchain binaries. You may chose to
|
|
||||||
use setenv.sh or not. If you use it, then it may need to be
|
|
||||||
modified to include the path to your toolchain binaries.
|
|
||||||
|
|
||||||
Copy configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
|
Copy configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
|
||||||
|
|
||||||
The defconfig file holds the actual build configuration. This
|
The defconfig file holds the actual build configuration. This
|
||||||
@ -928,10 +921,8 @@ Cross-Development Toolchains
|
|||||||
That README file contains suggestions and information about appropriate
|
That README file contains suggestions and information about appropriate
|
||||||
tools and development environments for use with your board.
|
tools and development environments for use with your board.
|
||||||
|
|
||||||
In any case, the script, setenv.sh that was deposited in the top-
|
In any case, the PATH environment variable will need to be updated to
|
||||||
level directory when NuttX was configured should be edited to set
|
include the loction where the build can find the toolchain binaries.
|
||||||
the path to where you installed the toolchain. The use of setenv.sh
|
|
||||||
is optional but can save a lot of confusion in the future.
|
|
||||||
|
|
||||||
NuttX Buildroot Toolchain
|
NuttX Buildroot Toolchain
|
||||||
-------------------------
|
-------------------------
|
||||||
@ -1009,12 +1000,11 @@ Building
|
|||||||
|
|
||||||
NuttX builds in-place in the source tree. You do not need to create
|
NuttX builds in-place in the source tree. You do not need to create
|
||||||
any special build directories. Assuming that your Make.defs is setup
|
any special build directories. Assuming that your Make.defs is setup
|
||||||
properly for your tool chain and that setenv.sh contains the path to where
|
properly for your tool chain and that PATH environment variable contains
|
||||||
your cross-development tools are installed, the following steps are all that
|
the path to where your cross-development tools are installed, the
|
||||||
are required to build NuttX:
|
following steps are all that are required to build NuttX:
|
||||||
|
|
||||||
cd ${TOPDIR}
|
cd ${TOPDIR}
|
||||||
. ./setenv.sh
|
|
||||||
make
|
make
|
||||||
|
|
||||||
At least one configuration (eagle100) requires additional command line
|
At least one configuration (eagle100) requires additional command line
|
||||||
@ -1186,10 +1176,6 @@ Native Windows Build
|
|||||||
(2) it still lacks some of the creature-comforts of the more mature
|
(2) it still lacks some of the creature-comforts of the more mature
|
||||||
environments.
|
environments.
|
||||||
|
|
||||||
There is an alternative to the setenv.sh script available for the Windows
|
|
||||||
native environment: tools/configure.bat. See tools/README.txt for additional
|
|
||||||
information.
|
|
||||||
|
|
||||||
Installing GNUWin32
|
Installing GNUWin32
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -618,7 +618,7 @@ config ARCH_ROMPGTABLE
|
|||||||
config DEBUG_HARDFAULT
|
config DEBUG_HARDFAULT
|
||||||
bool "Verbose Hard-Fault Debug"
|
bool "Verbose Hard-Fault Debug"
|
||||||
default n
|
default n
|
||||||
depends on DEBUG_FEATURES && (ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7)
|
depends on DEBUG_FEATURES && (ARCH_CORTEXM0 || ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7)
|
||||||
---help---
|
---help---
|
||||||
Enables verbose debug output when a hard fault is occurs. This verbose
|
Enables verbose debug output when a hard fault is occurs. This verbose
|
||||||
output is sometimes helpful when debugging difficult hard fault problems,
|
output is sometimes helpful when debugging difficult hard fault problems,
|
||||||
|
@ -45,7 +45,12 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
/* STM32F476, STM32F486. Differences between family members: 486 has AES.
|
/* STM32L476, STM32L486, STM32L496, STM32L4A6
|
||||||
|
*
|
||||||
|
* Differences between family members:
|
||||||
|
* - L486 has AES
|
||||||
|
* - L496, L4A6 has 320 Kib SRAM, 2xCAN and CameraIF. Most (all?) of these have I2C4.
|
||||||
|
* - L4A6 has AES and HASH
|
||||||
*
|
*
|
||||||
* ----------- ---------------- ----- ------ ------ ---- ---- -----
|
* ----------- ---------------- ----- ------ ------ ---- ---- -----
|
||||||
* PART PACKAGE GPIOs LCD Tamper FSMC CapS AdcCh
|
* PART PACKAGE GPIOs LCD Tamper FSMC CapS AdcCh
|
||||||
@ -56,6 +61,7 @@
|
|||||||
* STM32L4x6Rx LQFP64 51 8x28 2 No 12 16
|
* STM32L4x6Rx LQFP64 51 8x28 2 No 12 16
|
||||||
* STM32L4x6Vx LQFP100 82 8x40 3 Yes 21 16
|
* STM32L4x6Vx LQFP100 82 8x40 3 Yes 21 16
|
||||||
* STM32L4x6Zx LQFP144 114 8x40 3 Yes 24 24
|
* STM32L4x6Zx LQFP144 114 8x40 3 Yes 24 24
|
||||||
|
* STM32L4x6Ax UFBGA169 132 8x40 3 Yes 24 24
|
||||||
* ----------- ---------------- ----- ------ ------ ---- ---- -----
|
* ----------- ---------------- ----- ------ ------ ---- ---- -----
|
||||||
*
|
*
|
||||||
* Parts STM32L4x6xC have 256Kb of FLASH
|
* Parts STM32L4x6xC have 256Kb of FLASH
|
||||||
@ -66,8 +72,13 @@
|
|||||||
* selection.
|
* selection.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
|
# define STM32L4_SRAM1_SIZE (256*1024) /* 256Kb SRAM1 on AHB bus Matrix */
|
||||||
|
# define STM32L4_SRAM2_SIZE (64*1024) /* 64Kb SRAM2 on AHB bus Matrix */
|
||||||
|
#else
|
||||||
# define STM32L4_SRAM1_SIZE (96*1024) /* 96Kb SRAM1 on AHB bus Matrix */
|
# define STM32L4_SRAM1_SIZE (96*1024) /* 96Kb SRAM1 on AHB bus Matrix */
|
||||||
# define STM32L4_SRAM2_SIZE (32*1024) /* 32Kb SRAM2 on AHB bus Matrix */
|
# define STM32L4_SRAM2_SIZE (32*1024) /* 32Kb SRAM2 on AHB bus Matrix */
|
||||||
|
#endif
|
||||||
|
|
||||||
# define STM32L4_NFSMC 1 /* Have FSMC memory controller */
|
# define STM32L4_NFSMC 1 /* Have FSMC memory controller */
|
||||||
# define STM32L4_NATIM 2 /* Two advanced timers TIM1 and 8 */
|
# define STM32L4_NATIM 2 /* Two advanced timers TIM1 and 8 */
|
||||||
@ -81,14 +92,22 @@
|
|||||||
# define STM32L4_NUSART 3 /* USART 1-3 */
|
# define STM32L4_NUSART 3 /* USART 1-3 */
|
||||||
# define STM32L4_NLPUART 1 /* LPUART 1 */
|
# define STM32L4_NLPUART 1 /* LPUART 1 */
|
||||||
# define STM32L4_NSPI 3 /* SPI1-3 */
|
# define STM32L4_NSPI 3 /* SPI1-3 */
|
||||||
|
#if defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
|
# define STM32L4_NI2C 4 /* I2C1-4 */
|
||||||
|
#else
|
||||||
# define STM32L4_NI2C 3 /* I2C1-3 */
|
# define STM32L4_NI2C 3 /* I2C1-3 */
|
||||||
|
#endif
|
||||||
# define STM32L4_NUSBOTGFS 1 /* USB OTG FS */
|
# define STM32L4_NUSBOTGFS 1 /* USB OTG FS */
|
||||||
|
#if defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
|
# define STM32L4_NCAN 2 /* CAN1-2 */
|
||||||
|
#else
|
||||||
# define STM32L4_NCAN 1 /* CAN1 */
|
# define STM32L4_NCAN 1 /* CAN1 */
|
||||||
|
#endif
|
||||||
# define STM32L4_NSAI 2 /* SAI1-2 */
|
# define STM32L4_NSAI 2 /* SAI1-2 */
|
||||||
# define STM32L4_NSDMMC 1 /* SDMMC interface */
|
# define STM32L4_NSDMMC 1 /* SDMMC interface */
|
||||||
# define STM32L4_NDMA 2 /* DMA1-2 */
|
# define STM32L4_NDMA 2 /* DMA1-2 */
|
||||||
# define STM32L4_NPORTS 8 /* 8 GPIO ports, GPIOA-H */
|
# define STM32L4_NPORTS 8 /* 8 GPIO ports, GPIOA-H */
|
||||||
# define STM32L4_NADC 3 /* 12-bit ADC1-3, 24 channels *except V series) */
|
# define STM32L4_NADC 3 /* 12-bit ADC1-3, 24 channels (except V series) */
|
||||||
# define STM32L4_NDAC 2 /* 12-bit DAC1-2 */
|
# define STM32L4_NDAC 2 /* 12-bit DAC1-2 */
|
||||||
# define STM32L4_NCRC 1 /* CRC */
|
# define STM32L4_NCRC 1 /* CRC */
|
||||||
# define STM32L4_NCOMP 2 /* Comparators */
|
# define STM32L4_NCOMP 2 /* Comparators */
|
||||||
|
@ -76,7 +76,8 @@
|
|||||||
|
|
||||||
#define STM32L4_IRQ_FIRST (16) /* Vector number of the first external interrupt */
|
#define STM32L4_IRQ_FIRST (16) /* Vector number of the first external interrupt */
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include <arch/stm32l4/stm32l4x6xx_irq.h>
|
# include <arch/stm32l4/stm32l4x6xx_irq.h>
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32 L4 chip"
|
# error "Unsupported STM32 L4 chip"
|
||||||
|
@ -24,7 +24,7 @@ config ARCH_CHIP_STM32L476RE
|
|||||||
select STM32L4_STM32L476XX
|
select STM32L4_STM32L476XX
|
||||||
select STM32L4_FLASH_512KB
|
select STM32L4_FLASH_512KB
|
||||||
---help---
|
---help---
|
||||||
STM32 L4 Cortex M4, 512 FLASH, 96+32 Kb SRAM
|
STM32 L4 Cortex M4, 512Kb FLASH, 96+32 Kb SRAM
|
||||||
|
|
||||||
config ARCH_CHIP_STM32L486
|
config ARCH_CHIP_STM32L486
|
||||||
bool "STM32L486xx"
|
bool "STM32L486xx"
|
||||||
@ -33,6 +33,29 @@ config ARCH_CHIP_STM32L486
|
|||||||
---help---
|
---help---
|
||||||
STM32 L4 Cortex M4, AES, 1024Kb FLASH, 96+32 Kb SRAM
|
STM32 L4 Cortex M4, AES, 1024Kb FLASH, 96+32 Kb SRAM
|
||||||
|
|
||||||
|
config ARCH_CHIP_STM32L496ZE
|
||||||
|
bool "STM32L496ZE"
|
||||||
|
select STM32L4_STM32L496XX
|
||||||
|
select STM32L4_FLASH_512KB
|
||||||
|
---help---
|
||||||
|
STM32 L4 Cortex M4, 512Kb FLASH, 320 Kb SRAM
|
||||||
|
|
||||||
|
config ARCH_CHIP_STM32L496ZG
|
||||||
|
bool "STM32L496ZG"
|
||||||
|
select STM32L4_STM32L496XX
|
||||||
|
select STM32L4_FLASH_1024KB
|
||||||
|
---help---
|
||||||
|
STM32 L4 Cortex M4, 1024Kb FLASH, 320 Kb SRAM
|
||||||
|
|
||||||
|
config ARCH_CHIP_STM32L4A6
|
||||||
|
bool "STM32L4A6xx"
|
||||||
|
select STM32L4_STM32L496XX # Close enough to L496
|
||||||
|
select STM32L4_FLASH_1024KB
|
||||||
|
select STM32L4_HAVE_AES
|
||||||
|
select STM32L4_HAVE_HASH
|
||||||
|
---help---
|
||||||
|
STM32 L4 Cortex M4, AES, HASH, 1024Kb FLASH, 320 Kb SRAM
|
||||||
|
|
||||||
endchoice # STM32 L4 Chip Selection
|
endchoice # STM32 L4 Chip Selection
|
||||||
|
|
||||||
# Chip families
|
# Chip families
|
||||||
@ -82,12 +105,25 @@ config STM32L4_STM32L486XX
|
|||||||
select ARMV7M_HAVE_DTCM
|
select ARMV7M_HAVE_DTCM
|
||||||
select STM32L4_FLASH_1024KB
|
select STM32L4_FLASH_1024KB
|
||||||
|
|
||||||
|
config STM32L4_STM32L496XX
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
select STM32L4_STM32L4X6
|
||||||
|
select ARCH_HAVE_FPU
|
||||||
|
select ARCH_HAVE_DPFPU # REVISIT
|
||||||
|
select ARMV7M_HAVE_ITCM
|
||||||
|
select ARMV7M_HAVE_DTCM
|
||||||
|
select STM32L4_HAVE_I2C4
|
||||||
|
select STM32L4_HAVE_CAN2
|
||||||
|
select STM32L4_HAVE_DCMI
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Embedded FLASH size"
|
prompt "Embedded FLASH size"
|
||||||
default STM32L4_FLASH_1024KB
|
default STM32L4_FLASH_1024KB
|
||||||
|
|
||||||
config STM32L4_FLASH_256KB
|
config STM32L4_FLASH_256KB
|
||||||
bool "256 KB"
|
bool "256 KB"
|
||||||
|
depends on !STM32L4_STM32L496XX
|
||||||
|
|
||||||
config STM32L4_FLASH_512KB
|
config STM32L4_FLASH_512KB
|
||||||
bool "512 KB"
|
bool "512 KB"
|
||||||
@ -132,6 +168,30 @@ menu "STM32L4 Peripheral Support"
|
|||||||
# These "hidden" settings determine is a peripheral option is available for the
|
# These "hidden" settings determine is a peripheral option is available for the
|
||||||
# selection MCU
|
# selection MCU
|
||||||
|
|
||||||
|
config STM32L4_HAVE_AES
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32L4_HAVE_CAN2
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32L4_HAVE_COMP
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32L4_HAVE_DCMI
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32L4_HAVE_HASH
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32L4_HAVE_I2C4
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config STM32L4_HAVE_LTDC
|
config STM32L4_HAVE_LTDC
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
@ -144,10 +204,6 @@ config STM32L4_HAVE_LPTIM2
|
|||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config STM32L4_HAVE_COMP
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config STM32L4_HAVE_SAI1
|
config STM32L4_HAVE_SAI1
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
@ -244,6 +300,17 @@ config STM32L4_ADC3
|
|||||||
config STM32L4_AES
|
config STM32L4_AES
|
||||||
bool "AES"
|
bool "AES"
|
||||||
default n
|
default n
|
||||||
|
depends on STM32L4_HAVE_AES
|
||||||
|
|
||||||
|
config STM32L4_DCMI
|
||||||
|
bool "DCMI"
|
||||||
|
default n
|
||||||
|
depends on STM32L4_HAVE_DCMI
|
||||||
|
|
||||||
|
config STM32L4_HASH
|
||||||
|
bool "HASH"
|
||||||
|
default n
|
||||||
|
depends on STM32L4_HAVE_HASH
|
||||||
|
|
||||||
config STM32L4_RNG
|
config STM32L4_RNG
|
||||||
bool "RNG"
|
bool "RNG"
|
||||||
@ -534,12 +601,25 @@ config STM32L4_I2C3
|
|||||||
default n
|
default n
|
||||||
select STM32L4_I2C
|
select STM32L4_I2C
|
||||||
|
|
||||||
|
config STM32L4_I2C4
|
||||||
|
bool "I2C4"
|
||||||
|
default n
|
||||||
|
select STM32L4_I2C
|
||||||
|
depends on STM32L4_HAVE_I2C4
|
||||||
|
|
||||||
config STM32L4_CAN1
|
config STM32L4_CAN1
|
||||||
bool "CAN1"
|
bool "CAN1"
|
||||||
default n
|
default n
|
||||||
select CAN
|
select CAN
|
||||||
select STM32L4_CAN
|
select STM32L4_CAN
|
||||||
|
|
||||||
|
config STM32L4_CAN2
|
||||||
|
bool "CAN2"
|
||||||
|
default n
|
||||||
|
select CAN
|
||||||
|
select STM32L4_CAN
|
||||||
|
depends on STM32L4_HAVE_CAN2
|
||||||
|
|
||||||
config STM32L4_DAC1
|
config STM32L4_DAC1
|
||||||
bool "DAC1"
|
bool "DAC1"
|
||||||
default n
|
default n
|
||||||
@ -2865,7 +2945,7 @@ config STM32L4_I2C_DUTY16_9
|
|||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "CAN driver configuration"
|
menu "CAN driver configuration"
|
||||||
depends on STM32L4_CAN1
|
depends on STM32L4_CAN1 || STM32L4_CAN2
|
||||||
|
|
||||||
config CAN1_BAUD
|
config CAN1_BAUD
|
||||||
int "CAN1 BAUD"
|
int "CAN1 BAUD"
|
||||||
@ -2874,6 +2954,13 @@ config CAN1_BAUD
|
|||||||
---help---
|
---help---
|
||||||
CAN1 BAUD rate. Required if CONFIG_STM32L4_CAN1 is defined.
|
CAN1 BAUD rate. Required if CONFIG_STM32L4_CAN1 is defined.
|
||||||
|
|
||||||
|
config CAN2_BAUD
|
||||||
|
int "CAN2 BAUD"
|
||||||
|
default 250000
|
||||||
|
depends on STM32L4_CAN2
|
||||||
|
---help---
|
||||||
|
CAN2 BAUD rate. Required if CONFIG_STM32L4_CAN2 is defined.
|
||||||
|
|
||||||
config CAN_TSEG1
|
config CAN_TSEG1
|
||||||
int "TSEG1 quanta"
|
int "TSEG1 quanta"
|
||||||
default 6
|
default 6
|
||||||
|
@ -27,7 +27,7 @@ DMA : works; at least tested with QSPI
|
|||||||
SRAM2 : OK; can be included in MM region or left separate for special app purposes
|
SRAM2 : OK; can be included in MM region or left separate for special app purposes
|
||||||
FIREWALL : Code written, to be tested, requires support from ldscript
|
FIREWALL : Code written, to be tested, requires support from ldscript
|
||||||
SPI : Code written, to be tested, including DMA
|
SPI : Code written, to be tested, including DMA
|
||||||
I2C : Registers defined
|
I2C : Code written, to be tested (I2C4 missing)
|
||||||
RTC : works
|
RTC : works
|
||||||
QSPI : works in polling, interrupt, DMA, and also memory-mapped modes
|
QSPI : works in polling, interrupt, DMA, and also memory-mapped modes
|
||||||
CAN : TODO
|
CAN : TODO
|
||||||
@ -58,4 +58,5 @@ DFSDM : TODO (Digital Filter and Sigma-Delta Modulator)
|
|||||||
LCD : TODO (Segment LCD controller)
|
LCD : TODO (Segment LCD controller)
|
||||||
SAIPLL : works (PLL For Digital Audio interfaces, and other things)
|
SAIPLL : works (PLL For Digital Audio interfaces, and other things)
|
||||||
SAI : TODO (Digital Audio interfaces, I2S, SPDIF, etc)
|
SAI : TODO (Digital Audio interfaces, I2S, SPDIF, etc)
|
||||||
|
HASH : TODO (SHA-1, SHA-224, SHA-256, HMAC)
|
||||||
|
DCMI : TODO (Digital Camera interfaces)
|
||||||
|
@ -53,13 +53,13 @@
|
|||||||
|
|
||||||
/* If the common ARMv7-M vector handling logic is used, then it expects the
|
/* If the common ARMv7-M vector handling logic is used, then it expects the
|
||||||
* following definition in this file that provides the number of supported external
|
* following definition in this file that provides the number of supported external
|
||||||
* interrupts which, for this architecture, is provided in the arch/stm32f7/chip.h
|
* interrupts which, for this architecture, is provided in the arch/stm32l4/chip.h
|
||||||
* header file.
|
* header file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ARMV7M_PERIPHERAL_INTERRUPTS NR_INTERRUPTS
|
#define ARMV7M_PERIPHERAL_INTERRUPTS NR_INTERRUPTS
|
||||||
|
|
||||||
/* Cache line sizes (in bytes)for the STM32L4 */
|
/* Cache line sizes (in bytes) for the STM32L4 */
|
||||||
|
|
||||||
#define ARMV7M_DCACHE_LINESIZE 0 /* no cache */
|
#define ARMV7M_DCACHE_LINESIZE 0 /* no cache */
|
||||||
#define ARMV7M_ICACHE_LINESIZE 0 /* no cache */
|
#define ARMV7M_ICACHE_LINESIZE 0 /* no cache */
|
||||||
|
@ -98,6 +98,20 @@
|
|||||||
# define STM32L4_I2C3_TXDR (STM32L4_I2C3_BASE+STM32L4_I2C_TXDR_OFFSET)
|
# define STM32L4_I2C3_TXDR (STM32L4_I2C3_BASE+STM32L4_I2C_TXDR_OFFSET)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if STM32L4_NI2C > 3
|
||||||
|
# define STM32L4_I2C4_CR1 (STM32L4_I2C4_BASE+STM32L4_I2C_CR1_OFFSET)
|
||||||
|
# define STM32L4_I2C4_CR2 (STM32L4_I2C4_BASE+STM32L4_I2C_CR2_OFFSET)
|
||||||
|
# define STM32L4_I2C4_OAR1 (STM32L4_I2C4_BASE+STM32L4_I2C_OAR1_OFFSET)
|
||||||
|
# define STM32L4_I2C4_OAR2 (STM32L4_I2C4_BASE+STM32L4_I2C_OAR2_OFFSET)
|
||||||
|
# define STM32L4_I2C4_TIMINGR (STM32L4_I2C4_BASE+STM32L4_I2C_TIMINGR_OFFSET)
|
||||||
|
# define STM32L4_I2C4_TIMEOUTR (STM32L4_I2C4_BASE+STM32L4_I2C_TIMEOUTR_OFFSET)
|
||||||
|
# define STM32L4_I2C4_ISR (STM32L4_I2C4_BASE+STM32L4_I2C_ISR_OFFSET)
|
||||||
|
# define STM32L4_I2C4_ICR (STM32L4_I2C4_BASE+STM32L4_I2C_ICR_OFFSET)
|
||||||
|
# define STM32L4_I2C4_PECR (STM32L4_I2C4_BASE+STM32L4_I2C_PECR_OFFSET)
|
||||||
|
# define STM32L4_I2C4_RXDR (STM32L4_I2C4_BASE+STM32L4_I2C_RXDR_OFFSET)
|
||||||
|
# define STM32L4_I2C4_TXDR (STM32L4_I2C4_BASE+STM32L4_I2C_TXDR_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Register Bitfield Definitions ****************************************************/
|
/* Register Bitfield Definitions ****************************************************/
|
||||||
|
|
||||||
/* Control register 1 */
|
/* Control register 1 */
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
/* STM32F40XXX Address Blocks *******************************************************/
|
/* STM32F40XXX Address Blocks *******************************************************/
|
||||||
|
|
||||||
#define STM32L4_CODE_BASE 0x00000000 /* 0x00000000-0x1fffffff: 512Mb code block */
|
#define STM32L4_CODE_BASE 0x00000000 /* 0x00000000-0x1fffffff: 512Mb code block */
|
||||||
#define STM32L4_SRAM_BASE 0x20000000 /* 0x20000000-0x3fffffff: 512Mb sram block (96k) */
|
#define STM32L4_SRAM_BASE 0x20000000 /* 0x20000000-0x3fffffff: 512Mb sram block (96k or 256k) */
|
||||||
#define STM32L4_PERIPH_BASE 0x40000000 /* 0x40000000-0x5fffffff: 512Mb peripheral block */
|
#define STM32L4_PERIPH_BASE 0x40000000 /* 0x40000000-0x5fffffff: 512Mb peripheral block */
|
||||||
#define STM32L4_FSMC_BASE12 0x60000000 /* 0x60000000-0x7fffffff: 512Mb FSMC bank1&2 block */
|
#define STM32L4_FSMC_BASE12 0x60000000 /* 0x60000000-0x7fffffff: 512Mb FSMC bank1&2 block */
|
||||||
# define STM32L4_FSMC_BANK1 0x60000000 /* 0x60000000-0x6fffffff: 256Mb NOR/SRAM */
|
# define STM32L4_FSMC_BANK1 0x60000000 /* 0x60000000-0x6fffffff: 256Mb NOR/SRAM */
|
||||||
@ -53,7 +53,7 @@
|
|||||||
# define STM32L4_QSPI_BANK 0x90000000 /* 0x90000000-0x9fffffff: 256Mb QUADSPI*/
|
# define STM32L4_QSPI_BANK 0x90000000 /* 0x90000000-0x9fffffff: 256Mb QUADSPI*/
|
||||||
#define STM32L4_FSMC_BASE 0xa0000000 /* 0xa0000000-0xbfffffff: FSMC register block */
|
#define STM32L4_FSMC_BASE 0xa0000000 /* 0xa0000000-0xbfffffff: FSMC register block */
|
||||||
#define STM32L4_QSPI_BASE 0xa0001000 /* 0xa0000000-0xbfffffff: QSPI register block */
|
#define STM32L4_QSPI_BASE 0xa0001000 /* 0xa0000000-0xbfffffff: QSPI register block */
|
||||||
/* 0xc0000000-0xdfffffff: 512Mb (not used) */
|
/* 0xc0000000-0xdfffffff: 512Mb (not used) */
|
||||||
#define STM32L4_CORTEX_BASE 0xe0000000 /* 0xe0000000-0xffffffff: 512Mb Cortex-M4 block */
|
#define STM32L4_CORTEX_BASE 0xe0000000 /* 0xe0000000-0xffffffff: 512Mb Cortex-M4 block */
|
||||||
|
|
||||||
#define STM32L4_REGION_MASK 0xf0000000
|
#define STM32L4_REGION_MASK 0xf0000000
|
||||||
@ -63,31 +63,33 @@
|
|||||||
/* Code Base Addresses **************************************************************/
|
/* Code Base Addresses **************************************************************/
|
||||||
|
|
||||||
#define STM32L4_BOOT_BASE 0x00000000 /* 0x00000000-0x000fffff: Aliased boot memory */
|
#define STM32L4_BOOT_BASE 0x00000000 /* 0x00000000-0x000fffff: Aliased boot memory */
|
||||||
/* 0x00100000-0x07ffffff: Reserved */
|
/* 0x00100000-0x07ffffff: Reserved */
|
||||||
#define STM32L4_FLASH_BASE 0x08000000 /* 0x08000000-0x080fffff: FLASH memory */
|
#define STM32L4_FLASH_BASE 0x08000000 /* 0x08000000-0x080fffff: FLASH memory */
|
||||||
/* 0x08100000-0x0fffffff: Reserved */
|
/* 0x08100000-0x0fffffff: Reserved */
|
||||||
#define STM32L4_SRAM2_BASE 0x10000000 /* 0x10000000-0x1000ffff: 32Kb SRAM2 */
|
#define STM32L4_SRAM2_BASE 0x10000000 /* 0x10000000-0x1000ffff: 32Kb or 64Kb SRAM2 */
|
||||||
/* 0x10010000-0x1ffeffff: Reserved */
|
/* 0x10010000-0x1ffeffff: Reserved */
|
||||||
#define STM32L4_SYSMEM_BASE 0x1fff0000 /* 0x1fff0000-0x1fff7a0f: System memory */
|
#define STM32L4_SYSMEM_BASE 0x1fff0000 /* 0x1fff0000-0x1fff7a0f: System memory */
|
||||||
/* 0x1fff7a10-0x1fff7fff: Reserved */
|
/* 0x1fff7a10-0x1fff7fff: Reserved */
|
||||||
#define STM32L4_OPTION_BASE 0x1fffc000 /* 0x1fffc000-0x1fffc007: Option bytes */
|
#define STM32L4_OPTION_BASE 0x1fffc000 /* 0x1fffc000-0x1fffc007: Option bytes */
|
||||||
/* 0x1fffc008-0x1fffffff: Reserved */
|
/* 0x1fffc008-0x1fffffff: Reserved */
|
||||||
|
|
||||||
/* System Memory Addresses **********************************************************/
|
/* System Memory Addresses **********************************************************/
|
||||||
|
|
||||||
#define STM32L4_SYSMEM_UID 0x1fff7590 /* The 96-bit unique device identifier */
|
#define STM32L4_SYSMEM_UID 0x1fff7590 /* The 96-bit unique device identifier */
|
||||||
#define STM32L4_SYSMEM_FSIZE 0x1fff75E0 /* This bitfield indicates the size of
|
#define STM32L4_SYSMEM_FSIZE 0x1fff75E0 /* This bitfield indicates the size of
|
||||||
* the device Flash memory expressed in
|
* the device Flash memory expressed in
|
||||||
* Kbytes. Example: 0x0400 corresponds
|
* Kbytes. Example: 0x0400 corresponds
|
||||||
* to 1024 Kbytes.
|
* to 1024 Kbytes.
|
||||||
*/
|
*/
|
||||||
#define STM32L4_SYSMEM_PACKAGE 0x1fff7500 /* This bitfield indicates the package
|
#define STM32L4_SYSMEM_PACKAGE 0x1fff7500 /* This bitfield indicates the package
|
||||||
* type.
|
* type.
|
||||||
* 0: LQFP64
|
* 0: LQFP64
|
||||||
* 2: LQFP100
|
* 2: LQFP100
|
||||||
* 3: BGA132
|
* 3: UFBGA132
|
||||||
* 4: LQFP144, WLCSP81 or WLCSP72
|
* 4: LQFP144, WLCSP81 or WLCSP72
|
||||||
*/
|
* 16: UFBGA169
|
||||||
|
* 17: WLCSP100
|
||||||
|
*/
|
||||||
|
|
||||||
/* SRAM Base Addresses **************************************************************/
|
/* SRAM Base Addresses **************************************************************/
|
||||||
|
|
||||||
@ -116,11 +118,13 @@
|
|||||||
|
|
||||||
#define STM32L4_LPTIM2_BASE 0x40009400
|
#define STM32L4_LPTIM2_BASE 0x40009400
|
||||||
#define STM32L4_SWPMI1_BASE 0x40008800
|
#define STM32L4_SWPMI1_BASE 0x40008800
|
||||||
|
#define STM32L4_I2C4_BASE 0x40008400
|
||||||
#define STM32L4_LPUART1_BASE 0x40008000
|
#define STM32L4_LPUART1_BASE 0x40008000
|
||||||
#define STM32L4_LPTIM1_BASE 0x40007c00
|
#define STM32L4_LPTIM1_BASE 0x40007c00
|
||||||
#define STM32L4_OPAMP_BASE 0x40007800
|
#define STM32L4_OPAMP_BASE 0x40007800
|
||||||
#define STM32L4_DAC_BASE 0x40007400
|
#define STM32L4_DAC_BASE 0x40007400
|
||||||
#define STM32L4_PWR_BASE 0x40007000
|
#define STM32L4_PWR_BASE 0x40007000
|
||||||
|
#define STM32L4_CAN2_BASE 0x40006800
|
||||||
#define STM32L4_CAN1_BASE 0x40006400
|
#define STM32L4_CAN1_BASE 0x40006400
|
||||||
#define STM32L4_I2C3_BASE 0x40005c00
|
#define STM32L4_I2C3_BASE 0x40005c00
|
||||||
#define STM32L4_I2C2_BASE 0x40005800
|
#define STM32L4_I2C2_BASE 0x40005800
|
||||||
@ -163,6 +167,7 @@
|
|||||||
|
|
||||||
/* AHB1 Base Addresses **************************************************************/
|
/* AHB1 Base Addresses **************************************************************/
|
||||||
|
|
||||||
|
#define STM32L4_DMA2D_BASE 0x4002b000
|
||||||
#define STM32L4_TSC_BASE 0x40024000
|
#define STM32L4_TSC_BASE 0x40024000
|
||||||
#define STM32L4_CRC_BASE 0x40023000
|
#define STM32L4_CRC_BASE 0x40023000
|
||||||
#define STM32L4_FLASHIF_BASE 0x40022000
|
#define STM32L4_FLASHIF_BASE 0x40022000
|
||||||
@ -173,10 +178,13 @@
|
|||||||
/* AHB2 Base Addresses **************************************************************/
|
/* AHB2 Base Addresses **************************************************************/
|
||||||
|
|
||||||
#define STM32L4_RNG_BASE 0x50060800
|
#define STM32L4_RNG_BASE 0x50060800
|
||||||
|
#define STM32L4_HASH_BASE 0x50060400
|
||||||
#define STM32L4_AES_BASE 0x50060000
|
#define STM32L4_AES_BASE 0x50060000
|
||||||
|
#define STM32L4_DCMI_BASE 0x50050000
|
||||||
#define STM32L4_ADC_BASE 0x50040000
|
#define STM32L4_ADC_BASE 0x50040000
|
||||||
#define STM32L4_OTGFS_BASE 0x50000000
|
#define STM32L4_OTGFS_BASE 0x50000000
|
||||||
#define STM32L4_GPIOH_BASE 0x50001c00
|
#define STM32L4_GPIOI_BASE 0x48002000
|
||||||
|
#define STM32L4_GPIOH_BASE 0x48001c00
|
||||||
#define STM32L4_GPIOG_BASE 0x48001800
|
#define STM32L4_GPIOG_BASE 0x48001800
|
||||||
#define STM32L4_GPIOF_BASE 0x48001400
|
#define STM32L4_GPIOF_BASE 0x48001400
|
||||||
#define STM32L4_GPIOE_BASE 0x48001000
|
#define STM32L4_GPIOE_BASE 0x48001000
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "chip/stm32l4x6xx_pinmap.h"
|
# include "chip/stm32l4x6xx_pinmap.h"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32 L4 pin map"
|
# error "Unsupported STM32 L4 pin map"
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -44,7 +44,8 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -64,16 +64,17 @@
|
|||||||
* following definitions must be provided to specify the size and
|
* following definitions must be provided to specify the size and
|
||||||
* location of internal (system) SRAM1 and SRAM2:
|
* location of internal (system) SRAM1 and SRAM2:
|
||||||
*
|
*
|
||||||
* SRAM1_END 0x20018000
|
* SRAM1_START 0x20000000
|
||||||
|
* SRAM1_END
|
||||||
* SRAM2_START 0x10000000
|
* SRAM2_START 0x10000000
|
||||||
* SRAM2_END 0x10008000
|
* SRAM2_END
|
||||||
*
|
*
|
||||||
* In addition to internal SRAM, memory may also be available through the FSMC.
|
* In addition to internal SRAM, memory may also be available through the FSMC.
|
||||||
* In order to use FSMC SRAM, the following additional things need to be
|
* In order to use FSMC SRAM, the following additional things need to be
|
||||||
* present in the NuttX configuration file:
|
* present in the NuttX configuration file:
|
||||||
*
|
*
|
||||||
* CONFIG_STM32L4_FSMC=y : Enables the FSMC
|
* CONFIG_STM32L4_FSMC=y : Enables the FSMC
|
||||||
* CONFIG_STM32L4_FSMC_SRAM=y : Indicates that SRAM is available via the
|
* CONFIG_STM32L4_FSMC_SRAM=y : Indicates that SRAM is available via the
|
||||||
* FSMC (as opposed to an LCD or FLASH).
|
* FSMC (as opposed to an LCD or FLASH).
|
||||||
* CONFIG_HEAP2_BASE : The base address of the SRAM in the FSMC
|
* CONFIG_HEAP2_BASE : The base address of the SRAM in the FSMC
|
||||||
* address space
|
* address space
|
||||||
@ -87,22 +88,28 @@
|
|||||||
# undef CONFIG_STM32L4_FSMC_SRAM
|
# undef CONFIG_STM32L4_FSMC_SRAM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* STM32L4x6xx have 128Kib in two banks, both accessible to DMA:
|
/* STM32L4[7,8]6xx have 128 Kib in two banks, both accessible to DMA:
|
||||||
*
|
*
|
||||||
* 1) 96KiB of System SRAM beginning at address 0x2000:0000 - 0x2001:8000
|
* 1) 96 KiB of System SRAM beginning at address 0x2000:0000 - 0x2001:8000
|
||||||
* 2) 32KiB of System SRAM beginning at address 0x1000:0000 - 0x1000:8000
|
* 2) 32 KiB of System SRAM beginning at address 0x1000:0000 - 0x1000:8000
|
||||||
|
*
|
||||||
|
* STM32L496xx have 320 Kib in two banks, both accessible to DMA:
|
||||||
|
*
|
||||||
|
* 1) 256 KiB of System SRAM beginning at address 0x2000:0000 - 0x2004:0000
|
||||||
|
* 2) 64 KiB of System SRAM beginning at address 0x1000:0000 - 0x1001:0000
|
||||||
*
|
*
|
||||||
* In addition, external FSMC SRAM may be available.
|
* In addition, external FSMC SRAM may be available.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Set the end of system SRAM */
|
/* Set the range of system SRAM */
|
||||||
|
|
||||||
#define SRAM1_END 0x20018000
|
#define SRAM1_START STM32L4_SRAM_BASE
|
||||||
|
#define SRAM1_END (SRAM1_START + STM32L4_SRAM1_SIZE)
|
||||||
|
|
||||||
/* Set the range of SRAM2 as well, requires a second memory region */
|
/* Set the range of SRAM2 as well, requires a second memory region */
|
||||||
|
|
||||||
#define SRAM2_START 0x10000000
|
#define SRAM2_START STM32L4_SRAM2_BASE
|
||||||
#define SRAM2_END 0x10008000
|
#define SRAM2_END (SRAM2_START + STM32L4_SRAM2_SIZE)
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_SRAM2_HEAP) && defined(CONFIG_STM32L4_FSMC_SRAM_HEAP)
|
#if defined(CONFIG_STM32L4_SRAM2_HEAP) && defined(CONFIG_STM32L4_FSMC_SRAM_HEAP)
|
||||||
# if CONFIG_MM_REGIONS < 3
|
# if CONFIG_MM_REGIONS < 3
|
||||||
|
@ -67,7 +67,8 @@
|
|||||||
* chip.h that can associate an STM32 part number with an STM32 family.
|
* chip.h that can associate an STM32 part number with an STM32 family.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
#include "stm32l4x6xx_dma.c"
|
#include "stm32l4x6xx_dma.c"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -49,7 +49,8 @@
|
|||||||
|
|
||||||
/* Include the correct DMA register definitions for this STM32 family */
|
/* Include the correct DMA register definitions for this STM32 family */
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "chip/stm32l4x6xx_dma.h"
|
# include "chip/stm32l4x6xx_dma.h"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -47,7 +47,8 @@
|
|||||||
|
|
||||||
/* Include the correct firewall register definitions for this STM32L4 family */
|
/* Include the correct firewall register definitions for this STM32L4 family */
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "chip/stm32l4x6xx_firewall.h"
|
# include "chip/stm32l4x6xx_firewall.h"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -55,9 +55,7 @@
|
|||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "stm32l4_gpio.h"
|
#include "stm32l4_gpio.h"
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L478XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#include "chip/stm32l4_syscfg.h"
|
||||||
# include "chip/stm32l4_syscfg.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
|
@ -54,7 +54,8 @@
|
|||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "chip/stm32l4x6xx_gpio.h"
|
# include "chip/stm32l4x6xx_gpio.h"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -78,7 +78,8 @@
|
|||||||
|
|
||||||
/* Include chip-specific clocking initialization logic */
|
/* Include chip-specific clocking initialization logic */
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "stm32l4x6xx_rcc.c"
|
# include "stm32l4x6xx_rcc.c"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -45,7 +45,8 @@
|
|||||||
#include "up_arch.h"
|
#include "up_arch.h"
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "chip/stm32l4x6xx_rcc.h"
|
# include "chip/stm32l4x6xx_rcc.h"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -68,7 +68,6 @@
|
|||||||
* Mapped as boot memory address 0x0000:0000 at reset.
|
* Mapped as boot memory address 0x0000:0000 at reset.
|
||||||
* 0x080f:ffff - End of flash region (assuming the max of 2MiB of FLASH).
|
* 0x080f:ffff - End of flash region (assuming the max of 2MiB of FLASH).
|
||||||
* 0x1000:0000 - Start of internal SRAM2
|
* 0x1000:0000 - Start of internal SRAM2
|
||||||
* 0x1000:7fff - End of internal SRAM2
|
|
||||||
* 0x2000:0000 - Start of internal SRAM and start of .data (_sdata)
|
* 0x2000:0000 - Start of internal SRAM and start of .data (_sdata)
|
||||||
* - End of .data (_edata) and start of .bss (_sbss)
|
* - End of .data (_edata) and start of .bss (_sbss)
|
||||||
* - End of .bss (_ebss) and bottom of idle stack
|
* - End of .bss (_ebss) and bottom of idle stack
|
||||||
@ -76,11 +75,11 @@
|
|||||||
* start of heap. NOTE that the ARM uses a decrement before
|
* start of heap. NOTE that the ARM uses a decrement before
|
||||||
* store stack so that the correct initial value is the end of
|
* store stack so that the correct initial value is the end of
|
||||||
* the stack + 4;
|
* the stack + 4;
|
||||||
* 0x2001:7fff - End of internal SRAM and end of heap
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SRAM2_START 0x10000000
|
#define SRAM2_START STM32L4_SRAM2_BASE
|
||||||
#define SRAM2_END 0x10008000
|
#define SRAM2_END (SRAM2_START + STM32L4_SRAM2_SIZE)
|
||||||
|
|
||||||
#define IDLE_STACK ((uintptr_t)&_ebss+CONFIG_IDLETHREAD_STACKSIZE-4)
|
#define IDLE_STACK ((uintptr_t)&_ebss+CONFIG_IDLETHREAD_STACKSIZE-4)
|
||||||
#define HEAP_BASE ((uintptr_t)&_ebss+CONFIG_IDLETHREAD_STACKSIZE)
|
#define HEAP_BASE ((uintptr_t)&_ebss+CONFIG_IDLETHREAD_STACKSIZE)
|
||||||
|
|
||||||
|
@ -44,7 +44,8 @@
|
|||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX)
|
#if defined(CONFIG_STM32L4_STM32L476XX) || defined(CONFIG_STM32L4_STM32L486XX) || \
|
||||||
|
defined(CONFIG_STM32L4_STM32L496XX)
|
||||||
# include "chip/stm32l4x6xx_uart.h"
|
# include "chip/stm32l4x6xx_uart.h"
|
||||||
#else
|
#else
|
||||||
# error "Unsupported STM32L4 chip"
|
# error "Unsupported STM32L4 chip"
|
||||||
|
@ -19,9 +19,6 @@ config AVR_WINAVR_TOOLCHAIN
|
|||||||
For Cygwin development environment on Windows machines, you
|
For Cygwin development environment on Windows machines, you
|
||||||
can use WinAVR: http://sourceforge.net/projects/winavr/files/
|
can use WinAVR: http://sourceforge.net/projects/winavr/files/
|
||||||
|
|
||||||
It is assumed in some places that WinAVR is installed at
|
|
||||||
C:/WinAVR. Edit the setenv.sh file if this is not the case.
|
|
||||||
|
|
||||||
WARNING: There is an incompatible version of cygwin.dll in
|
WARNING: There is an incompatible version of cygwin.dll in
|
||||||
the WinAVR/bin directory! Make sure that the path to the
|
the WinAVR/bin directory! Make sure that the path to the
|
||||||
correct cygwin.dll file precedes the path to the WinAVR
|
correct cygwin.dll file precedes the path to the WinAVR
|
||||||
@ -49,10 +46,6 @@ config AVR_CROSSPACK_TOOLCHAIN
|
|||||||
For OS X, the AVR CrossPack toolchain is supported:
|
For OS X, the AVR CrossPack toolchain is supported:
|
||||||
http://www.obdev.at/products/crosspack/index.html
|
http://www.obdev.at/products/crosspack/index.html
|
||||||
|
|
||||||
It is assumed that /usr/local/CrossPack-AVR/bin is on the
|
|
||||||
user's path. Edit the setenv.sh file if this is not the
|
|
||||||
case.
|
|
||||||
|
|
||||||
config AVR_BUILDROOT_TOOLCHAIN
|
config AVR_BUILDROOT_TOOLCHAIN
|
||||||
bool "Buildroot"
|
bool "Buildroot"
|
||||||
---help---
|
---help---
|
||||||
@ -60,10 +53,6 @@ config AVR_BUILDROOT_TOOLCHAIN
|
|||||||
http://sourceforge.net/projects/nuttx/files/buildroot/. See
|
http://sourceforge.net/projects/nuttx/files/buildroot/. See
|
||||||
the following section for details on building this toolchain.
|
the following section for details on building this toolchain.
|
||||||
|
|
||||||
It is assumed in some places that buildroot toolchain is
|
|
||||||
available at ../buildroot/build_avr. Edit the setenv.sh
|
|
||||||
file if this is not the case.
|
|
||||||
|
|
||||||
endchoice # Toolchain
|
endchoice # Toolchain
|
||||||
|
|
||||||
menu "Atmel AVR Toolchain options"
|
menu "Atmel AVR Toolchain options"
|
||||||
|
@ -72,12 +72,10 @@ following characteristics:
|
|||||||
| `-- (board-specific source files)
|
| `-- (board-specific source files)
|
||||||
|-- <config1-dir>
|
|-- <config1-dir>
|
||||||
| |-- Make.defs
|
| |-- Make.defs
|
||||||
| |-- defconfig
|
| `-- defconfig
|
||||||
| `-- setenv.sh
|
|
||||||
|-- <config2-dir>
|
|-- <config2-dir>
|
||||||
| |-- Make.defs
|
| |-- Make.defs
|
||||||
| |-- defconfig
|
| `-- defconfig
|
||||||
| `-- setenv.sh
|
|
||||||
...
|
...
|
||||||
|
|
||||||
Summary of Files
|
Summary of Files
|
||||||
@ -101,10 +99,10 @@ src/Makefile -- This makefile will be invoked to build the board specific
|
|||||||
and distclean.
|
and distclean.
|
||||||
|
|
||||||
A board may have various different configurations using these common source
|
A board may have various different configurations using these common source
|
||||||
files. Each board configuration is described by three files: Make.defs,
|
files. Each board configuration is described by two files: Make.defs and
|
||||||
defconfig, and setenv.sh. Typically, each set of configuration files is
|
defconfig. Typically, each set of configuration files is retained in a
|
||||||
retained in a separate configuration sub-directory (<config1-dir>,
|
separate configuration sub-directory (<config1-dir>, <config2-dir>, .. in
|
||||||
<config2-dir>, .. in the above diagram).
|
the above diagram).
|
||||||
|
|
||||||
Make.defs -- This makefile fragment provides architecture and
|
Make.defs -- This makefile fragment provides architecture and
|
||||||
tool-specific build options. It will be included by all other
|
tool-specific build options. It will be included by all other
|
||||||
@ -141,12 +139,6 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
(2) to generate include/nuttx/config.h which is included by
|
(2) to generate include/nuttx/config.h which is included by
|
||||||
most C files in the system.
|
most C files in the system.
|
||||||
|
|
||||||
setenv.sh -- This is a script that you can include that will be installed at
|
|
||||||
the toplevel of the directory structure and can be sourced to set any
|
|
||||||
necessary environment variables. You will most likely have to customize the
|
|
||||||
default setenv.sh script in order for it to work correctly in your
|
|
||||||
environment.
|
|
||||||
|
|
||||||
Configuration Variables
|
Configuration Variables
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
@ -816,7 +808,6 @@ Configuring NuttX
|
|||||||
Configuring NuttX requires only copying
|
Configuring NuttX requires only copying
|
||||||
|
|
||||||
configs/<board-name>/<config-dir>/Make.def to ${TOPDIR}/Make.defs
|
configs/<board-name>/<config-dir>/Make.def to ${TOPDIR}/Make.defs
|
||||||
configs/<board-name>/<config-dir>/setenv.sh to ${TOPDIR}/setenv.sh
|
|
||||||
configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
|
configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
|
||||||
|
|
||||||
tools/configure.sh
|
tools/configure.sh
|
||||||
|
@ -199,9 +199,8 @@ Buildroot:
|
|||||||
http://bitbucket.org/nuttx/buildroot/downloads/. See the
|
http://bitbucket.org/nuttx/buildroot/downloads/. See the
|
||||||
following section for details on building this toolchain.
|
following section for details on building this toolchain.
|
||||||
|
|
||||||
It is assumed in some places that buildroot toolchain is available
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
at ../buildroot/build_avr. Edit the setenv.sh file if
|
find the tools.
|
||||||
this is not the case.
|
|
||||||
|
|
||||||
After configuring NuttX, make sure that CONFIG_AVR_BUILDROOT_TOOLCHAIN=y is set in your
|
After configuring NuttX, make sure that CONFIG_AVR_BUILDROOT_TOOLCHAIN=y is set in your
|
||||||
.config file.
|
.config file.
|
||||||
@ -211,8 +210,8 @@ WinAVR:
|
|||||||
For Cygwin development environment on Windows machines, you can use
|
For Cygwin development environment on Windows machines, you can use
|
||||||
WinAVR: http://sourceforge.net/projects/winavr/files/
|
WinAVR: http://sourceforge.net/projects/winavr/files/
|
||||||
|
|
||||||
It is assumed in some places that WinAVR is installed at C:/WinAVR. Edit the
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
setenv.sh file if this is not the case.
|
find the tools.
|
||||||
|
|
||||||
After configuring NuttX, make sure that CONFIG_AVR_WINAVR_TOOLCHAIN=y is set in your
|
After configuring NuttX, make sure that CONFIG_AVR_WINAVR_TOOLCHAIN=y is set in your
|
||||||
.config file.
|
.config file.
|
||||||
@ -297,8 +296,8 @@ NuttX buildroot Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
detailed PLUS some special instructions that you will need to follow if you
|
detailed PLUS some special instructions that you will need to follow if you
|
||||||
@ -493,7 +492,6 @@ Common Configuration Notes
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh amber/<subdir>
|
./configure.sh amber/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/amber/hello/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the WinAVR
|
|
||||||
# toolchain under windows. This is *not* the default install
|
|
||||||
# location so you will probably have to edit this. You will also have
|
|
||||||
# to edit this if you install the Linux AVR toolchain as well
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/WinAVR/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_avr/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -275,9 +275,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL=y : Generic GCC ARM EABI toolchain for Linux
|
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIL=y : Generic GCC ARM EABI toolchain for Linux
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : Generic GCC ARM EABI toolchain for Windows
|
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : Generic GCC ARM EABI toolchain for Windows
|
||||||
|
|
||||||
If you are not using CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT, then you may also
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
have to modify the PATH in the setenv.h file if your make cannot find the
|
find the tools.
|
||||||
tools.
|
|
||||||
|
|
||||||
NOTE about Windows native toolchains
|
NOTE about Windows native toolchains
|
||||||
------------------------------------
|
------------------------------------
|
||||||
@ -348,7 +347,7 @@ IDEs
|
|||||||
NuttX EABI "buildroot" Toolchain
|
NuttX EABI "buildroot" Toolchain
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -375,8 +374,8 @@ NuttX EABI "buildroot" Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
details PLUS some special instructions that you will need to follow if you are
|
details PLUS some special instructions that you will need to follow if you are
|
||||||
@ -437,8 +436,8 @@ NXFLAT Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly builtNXFLAT binaries.
|
NXFLAT binaries.
|
||||||
|
|
||||||
Buttons and LEDs
|
Buttons and LEDs
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
@ -849,11 +848,9 @@ Configurations
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh arduino-due/<subdir>
|
./configure.sh arduino-due/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Before sourcing the setenv.sh file above, you should examine it and perform
|
Before building, make sure the PATH environment variable includes the
|
||||||
edits as necessary so that BUILDROOT_BIN is the correct path to the directory
|
correct path to the directory than holds your toolchain binaries.
|
||||||
than holds your toolchain binaries.
|
|
||||||
|
|
||||||
And then build NuttX by simply typing the following. At the conclusion of
|
And then build NuttX by simply typing the following. At the conclusion of
|
||||||
the make, the nuttx binary will reside in an ELF file called, simply, nuttx.
|
the make, the nuttx binary will reside in an ELF file called, simply, nuttx.
|
||||||
@ -930,9 +927,7 @@ Configurations
|
|||||||
|
|
||||||
Also, make sure that your PATH variable has the new path to your
|
Also, make sure that your PATH variable has the new path to your
|
||||||
Atmel tools. Try 'which arm-none-eabi-gcc' to make sure that you
|
Atmel tools. Try 'which arm-none-eabi-gcc' to make sure that you
|
||||||
are selecting the right tool. setenv.sh is available for you to
|
are selecting the right tool.
|
||||||
use to set or PATH variable. The path in the that file may not,
|
|
||||||
however, be correct for your installation.
|
|
||||||
|
|
||||||
See also the "NOTE about Windows native toolchains" in the section call
|
See also the "NOTE about Windows native toolchains" in the section call
|
||||||
"GNU Toolchain Options" above.
|
"GNU Toolchain Options" above.
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/arduino-due/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Atmel GCC
|
|
||||||
# toolchain under Windows. You will also have to edit this if you install
|
|
||||||
# this toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Atmel Toolchain/ARM GCC/Native/4.7.3.99/arm-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I have the Arduino BOSSA program
|
|
||||||
export BOSSA_BIN="/cygdrive/c/Program Files (x86)/Arduino/arduino-1.5.2/hardware/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${BOSSA_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -51,7 +51,6 @@ Configurations
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh arduino-mega2560/<subdir>
|
./configure.sh arduino-mega2560/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/arduino-mega2560/hello/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the WinAVR
|
|
||||||
# toolchain under windows. This is *not* the default install
|
|
||||||
# location so you will probably have to edit this. You will also have
|
|
||||||
# to edit this if you install the Linux AVR toolchain as well
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/as-7/7.0/toolchain/avr8/avr8-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_avr/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="/sbin:/usr/sbin:${PATH_ORIG}:${TOOLCHAIN_BIN}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/arduino-mega2560/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the WinAVR
|
|
||||||
# toolchain under windows. This is *not* the default install
|
|
||||||
# location so you will probably have to edit this. You will also have
|
|
||||||
# to edit this if you install the Linux AVR toolchain as well
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/as-7/7.0/toolchain/avr8/avr8-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_avr/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="/sbin:/usr/sbin:${PATH_ORIG}:${TOOLCHAIN_BIN}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -228,10 +228,8 @@ AVR32 Bootloader
|
|||||||
driver in the FLIP usb directory. Then in the bin directory where
|
driver in the FLIP usb directory. Then in the bin directory where
|
||||||
you installed FLIP, you will also find batchisp.exe.
|
you installed FLIP, you will also find batchisp.exe.
|
||||||
|
|
||||||
NOTE: The AVR32DEV1 setenv.sh files will add the path to the BatchISP
|
NOTE: You will need to set the PATH environment variable to include the
|
||||||
bin directory to the Cygwin PATH variable. If you use a different
|
path to the BatchISP bin directory.
|
||||||
version of FLIP or if you install FLIP in a different location, you
|
|
||||||
will need to modify the setenv.sh files.
|
|
||||||
|
|
||||||
Notes from "AVR32 UC3 USB DFU Bootloader" (doc7745.pdf)
|
Notes from "AVR32 UC3 USB DFU Bootloader" (doc7745.pdf)
|
||||||
|
|
||||||
@ -436,7 +434,6 @@ Common Configuration Notes
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh avr32dev1/<subdir>
|
./configure.sh avr32dev1/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/avr32dev1/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This PATH setup assumes that you are using versin 2.1.4 of the Atmel
|
|
||||||
# AVR GNU tools installed at the default location on Windows. NOTE
|
|
||||||
# that the path is in appended to the end of the PATH variable; this is
|
|
||||||
# because there are also many GNUWin32 binaries there that conflict with
|
|
||||||
# Cygwin versions.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
|
|
||||||
export AVR32_BIN="/cygdrive/c/Program Files/Atmel/AVR Tools/AVR32 Toolchain/bin/"
|
|
||||||
export FLIP_BIN="/cygdrive/c/Program Files/Atmel/Flip 3.4.2/bin"
|
|
||||||
export AVR32DEV1_BIN="${WD}/configs/avr32dev1/tools"
|
|
||||||
export PATH="${FLIP_BIN}:${AVR32DEV1_BIN}:/sbin:/usr/sbin:${PATH_ORIG}:${AVR32_BIN}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/avr32dev1/ostest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This PATH setup assumes that you are using versin 2.1.4 of the Atmel
|
|
||||||
# AVR GNU tools installed at the default location on Windows. NOTE
|
|
||||||
# that the path is in appended to the end of the PATH variable; this is
|
|
||||||
# because there are also many GNUWin32 binaries there that conflict with
|
|
||||||
# Cygwin versions.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
|
|
||||||
export AVR32_BIN="/cygdrive/c/Program Files/Atmel/AVR Tools/AVR32 Toolchain/bin/"
|
|
||||||
export FLIP_BIN="/cygdrive/c/Program Files/Atmel/Flip 3.4.2/bin"
|
|
||||||
export AVR32DEV1_BIN="${WD}/configs/avr32dev1/tools"
|
|
||||||
export PATH="${FLIP_BIN}:${AVR32DEV1_BIN}:/sbin:/usr/sbin:${PATH_ORIG}:${AVR32_BIN}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -380,7 +380,6 @@ as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh bambino-200e/<subdir>
|
./configure.sh bambino-200e/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,96 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/bambino-200e/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
# Alan Carvalho de Assis acassis@gmail.com [nuttx] <nuttx@yahoogroups.com>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Code Red
|
|
||||||
# toolchain under windows. You will have to edit this if you install the
|
|
||||||
# Code Red toolchain in any other location or if you install a different
|
|
||||||
# version
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin"
|
|
||||||
#export SCRIPT_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin"
|
|
||||||
#export SCRIPT_BIN="/cygdrive/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# And add the selected toolchain path[s] to the PATH variable
|
|
||||||
|
|
||||||
export PATH="/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
if [ ! -z ${SCRIPT_BIN} ]; then
|
|
||||||
export PATH="${SCRIPT_BIN}:${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${PATH}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
|
|
||||||
# Set an alias that can be used to put the LPC43xx in boot mode
|
|
||||||
|
|
||||||
alias lpc43xx='${SCRIPT_BIN}/Scripts/bootLPCXpresso.cmd winusb'
|
|
@ -1,96 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/bambino-200e/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
# Alan Carvalho de Assis acassis@gmail.com [nuttx] <nuttx@yahoogroups.com>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Code Red
|
|
||||||
# toolchain under windows. You will have to edit this if you install the
|
|
||||||
# Code Red toolchain in any other location or if you install a different
|
|
||||||
# version
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin"
|
|
||||||
#export SCRIPT_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin"
|
|
||||||
#export SCRIPT_BIN="/cygdrive/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# And add the selected toolchain path[s] to the PATH variable
|
|
||||||
|
|
||||||
export PATH="/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
if [ ! -z ${SCRIPT_BIN} ]; then
|
|
||||||
export PATH="${SCRIPT_BIN}:${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${PATH}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
|
|
||||||
# Set an alias that can be used to put the LPC43xx in boot mode
|
|
||||||
|
|
||||||
alias lpc43xx='${SCRIPT_BIN}/Scripts/bootLPCXpresso.cmd winusb'
|
|
@ -1,96 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/bambino-200e/usbnsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
# Alan Carvalho de Assis acassis@gmail.com [nuttx] <nuttx@yahoogroups.com>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Code Red
|
|
||||||
# toolchain under windows. You will have to edit this if you install the
|
|
||||||
# Code Red toolchain in any other location or if you install a different
|
|
||||||
# version
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/Tools/bin"
|
|
||||||
#export SCRIPT_BIN="/cygdrive/c/code_red/RedSuite_4.2.3_379/redsuite/bin"
|
|
||||||
#export SCRIPT_BIN="/cygdrive/c/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
#export SCRIPT_BIN=
|
|
||||||
|
|
||||||
# And add the selected toolchain path[s] to the PATH variable
|
|
||||||
|
|
||||||
export PATH="/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
if [ ! -z ${SCRIPT_BIN} ]; then
|
|
||||||
export PATH="${SCRIPT_BIN}:${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${PATH}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
||||||
|
|
||||||
# Set an alias that can be used to put the LPC43xx in boot mode
|
|
||||||
|
|
||||||
alias lpc43xx='${SCRIPT_BIN}/Scripts/bootLPCXpresso.cmd winusb'
|
|
@ -4,7 +4,7 @@ README
|
|||||||
Toolchain
|
Toolchain
|
||||||
^^^^^^^^^
|
^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the SH toolchain (if
|
be modified to point to the correct path to the SH toolchain (if
|
||||||
different from the default).
|
different from the default).
|
||||||
|
|
||||||
@ -28,8 +28,8 @@ Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h so that the PATH variable includes the path to the
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
newly built binaries.
|
binaries.
|
||||||
|
|
||||||
Issues
|
Issues
|
||||||
^^^^^^
|
^^^^^^
|
||||||
@ -133,7 +133,6 @@ Common Configuration Notes
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh c5471evm/<subdir>
|
./configure.sh c5471evm/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##############################################################################
|
|
||||||
# c5471evm/httpd/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,73 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##############################################################################
|
|
||||||
# c5471evm/nettest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,73 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##############################################################################
|
|
||||||
# c5471evm/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,75 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/cc3200-launchpad/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# The cc3200-launchpad/tools directory
|
|
||||||
export TOOL_DIR="${WD}/configs/cc3200-launchpad/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain and tools directory to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${TOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -163,11 +163,9 @@ Configurations
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh clicker2-stm32/<subdir>
|
./configure.sh clicker2-stm32/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Before sourcing the setenv.sh file above, you should examine it and
|
Before building, make sure the PATH environment variable includes the
|
||||||
perform edits as necessary so that TOOLCHAIN_BIN is the correct path
|
correct path to the directory than holds your toolchain binaries.
|
||||||
to the directory than holds your toolchain binaries.
|
|
||||||
|
|
||||||
And then build NuttX by simply typing the following. At the conclusion of
|
And then build NuttX by simply typing the following. At the conclusion of
|
||||||
the make, the nuttx binary will reside in an ELF file called, simply, nuttx.
|
the make, the nuttx binary will reside in an ELF file called, simply, nuttx.
|
||||||
|
@ -1,80 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/clicker2-stm32/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the devkitARM toolchain
|
|
||||||
# You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
# export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,80 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/clicker2-stm32/usbnsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the devkitARM toolchain
|
|
||||||
# You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
# export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -202,8 +202,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE=y : Raisonance RIDE7 under Windows
|
CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE=y : Raisonance RIDE7 under Windows
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you change the default toolchain, then you may also have to modify the PATH in
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
the setenv.h file if your make cannot find the tools.
|
find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows), Atollic, devkitARM, and Raisonance toolchains are
|
NOTE: the CodeSourcery (for Windows), Atollic, devkitARM, and Raisonance toolchains are
|
||||||
Windows native toolchains. The CodeSourcery (for Linux) and NuttX buildroot
|
Windows native toolchains. The CodeSourcery (for Linux) and NuttX buildroot
|
||||||
@ -304,7 +304,7 @@ IDEs
|
|||||||
NuttX EABI buildroot Toolchain
|
NuttX EABI buildroot Toolchain
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -340,14 +340,8 @@ NuttX EABI buildroot Toolchain
|
|||||||
-CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
|
-CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
|
||||||
+CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
+CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
||||||
|
|
||||||
9. Edit setenv.h, if necessary, so that the PATH variable includes
|
9. Set the the PATH variable so tht it includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
-export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
+#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
-#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
+export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
detailed PLUS some special instructions that you will need to follow if you are
|
detailed PLUS some special instructions that you will need to follow if you are
|
||||||
@ -408,8 +402,8 @@ NXFLAT Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly builtNXFLAT binaries.
|
NXFLAT binaries.
|
||||||
|
|
||||||
LEDs
|
LEDs
|
||||||
====
|
====
|
||||||
@ -721,7 +715,6 @@ can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh shenzhou/<subdir>
|
./configure.sh shenzhou/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
@ -802,7 +795,6 @@ Where <subdir> is one of the following:
|
|||||||
2. Make the build context (only)
|
2. Make the build context (only)
|
||||||
|
|
||||||
$ cd ..
|
$ cd ..
|
||||||
$ . ./setenv.sh
|
|
||||||
$ make context
|
$ make context
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/cloudctrl/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the RIDE
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the RIDE toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the path to the tools/ subdirectory
|
|
||||||
export TOOLS_DIR="${WD}/configs/shenzhou/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH variable
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${TOOLS_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -110,7 +110,7 @@ Development Environment
|
|||||||
NuttX Buildroot Toolchain
|
NuttX Buildroot Toolchain
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the HC12 GCC toolchain (if
|
be modified to point to the correct path to the HC12 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -143,8 +143,8 @@ NuttX Buildroot Toolchain
|
|||||||
directory manually. For example, binutils-2.18 can be found here:
|
directory manually. For example, binutils-2.18 can be found here:
|
||||||
http://ftp.gnu.org/gnu/binutils/
|
http://ftp.gnu.org/gnu/binutils/
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
detailed PLUS some special instructions that you will need to follow if you are
|
detailed PLUS some special instructions that you will need to follow if you are
|
||||||
@ -367,7 +367,6 @@ Common Configuration Notes
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh demo9s12nec64/<subdir>
|
./configure.sh demo9s12nec64/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/demo9s12ne64/ostest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_m9s12x/staging_dir/bin"
|
|
||||||
export PATH="${BUILDROOT_BIN}:${RIDE_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -83,9 +83,8 @@ Using OpenOCD and GDB with ICDI
|
|||||||
|
|
||||||
oocd.sh $PWD
|
oocd.sh $PWD
|
||||||
|
|
||||||
The relative path to the oocd.sh script is configs/dk-tm4c129x/tools,
|
Assuming that you have included the path to the oocd.sh script,
|
||||||
but that should have been added to your PATH variable when you sourced
|
configs/dk-tm4c129x/tools, in PATH variable.
|
||||||
the setenv.sh script.
|
|
||||||
|
|
||||||
Note that OpenOCD needs to be run with administrator privileges in
|
Note that OpenOCD needs to be run with administrator privileges in
|
||||||
some environments (sudo).
|
some environments (sudo).
|
||||||
@ -660,7 +659,6 @@ sub-directory and can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh dk-tm4c129x/<subdir>
|
./configure.sh dk-tm4c129x/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,75 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/dk-tm4c129x/ipv6/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
# export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# The dk-tm4c129x/tools directory
|
|
||||||
export TOOL_DIR="${WD}/configs/dk-tm4c129x/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain and tools directory to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${TOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,75 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/dk-tm4c129x/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
# export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# The dk-tm4c129x/tools directory
|
|
||||||
export TOOL_DIR="${WD}/configs/dk-tm4c129x/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain and tools directory to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${TOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -50,8 +50,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARM_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_ARM_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
CONFIG_ARM_TOOLCHAIN_GNU_EABIL : Generic arm-none-eabi toolchain
|
CONFIG_ARM_TOOLCHAIN_GNU_EABIL : Generic arm-none-eabi toolchain
|
||||||
|
|
||||||
If you are not using CONFIG_ARM_TOOLCHAIN_BUILDROOT, then you may also have to modify
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
find the tools.
|
||||||
|
|
||||||
The toolchain may also be set using the kconfig-mconf utility (make menuconfig) or by
|
The toolchain may also be set using the kconfig-mconf utility (make menuconfig) or by
|
||||||
passing CONFIG_ARM_TOOLCHAIN=<toolchain> to make, where <toolchain> is one
|
passing CONFIG_ARM_TOOLCHAIN=<toolchain> to make, where <toolchain> is one
|
||||||
@ -140,7 +140,7 @@ IDEs
|
|||||||
NuttX buildroot Toolchain
|
NuttX buildroot Toolchain
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -167,8 +167,8 @@ NuttX buildroot Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
detailed PLUS some special instructions that you will need to follow if you are
|
detailed PLUS some special instructions that you will need to follow if you are
|
||||||
@ -209,16 +209,13 @@ Image Format
|
|||||||
- cd tools/ # Configure Nuttx
|
- cd tools/ # Configure Nuttx
|
||||||
- ./configure.sh ea3131/nsh # (using the nsh configuration for this example)
|
- ./configure.sh ea3131/nsh # (using the nsh configuration for this example)
|
||||||
- cd .. # Set up environment
|
- cd .. # Set up environment
|
||||||
- . ./setenv.sh # (see notes below)
|
|
||||||
- make # Make NuttX. This will produce nuttx.bin
|
- make # Make NuttX. This will produce nuttx.bin
|
||||||
- mklpc.sh # Make the bootloader binary (nuttx.lpc)
|
- mklpc.sh # Make the bootloader binary (nuttx.lpc)
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
|
|
||||||
1. setenv.sh just sets up pathes to the toolchain and also to
|
1. You will need to set your PATH variable appropriately or use the full path
|
||||||
configs/ea3131/tools where mklpc.sh resides. Use of setenv.sh is optional.
|
to mklpc.sh in the final step.
|
||||||
If you don't use setenv.sh, then just set your PATH variable appropriately or
|
|
||||||
use the full path to mklpc.sh in the final step.
|
|
||||||
2. You can instruct Symantec to ignore the errors and it will stop quarantining
|
2. You can instruct Symantec to ignore the errors and it will stop quarantining
|
||||||
the NXP program.
|
the NXP program.
|
||||||
3. The CRC32 logic in configs/ea3131/tools doesn't seem to work. As a result,
|
3. The CRC32 logic in configs/ea3131/tools doesn't seem to work. As a result,
|
||||||
@ -603,7 +600,6 @@ Common Configuration Notes
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh ea3131/<subdir>
|
./configure.sh ea3131/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,66 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ea3131/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2010, 2013 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the path to the tools subdirectory
|
|
||||||
|
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,66 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ea3131/pgnsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the path to the tools subdirectory
|
|
||||||
|
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,66 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ea3131/usbserial/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the path to the tools subdirectory
|
|
||||||
|
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -49,8 +49,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARM_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_ARM_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
CONFIG_ARM_TOOLCHAIN_GNU_EABIL : Generic arm-none-eabi toolchain
|
CONFIG_ARM_TOOLCHAIN_GNU_EABIL : Generic arm-none-eabi toolchain
|
||||||
|
|
||||||
If you are not using CONFIG_ARM_TOOLCHAIN_BUILDROOT, then you may also have to modify
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
find the tools.
|
||||||
|
|
||||||
The toolchain may also be set using the kconfig-mconf utility (make menuconfig)
|
The toolchain may also be set using the kconfig-mconf utility (make menuconfig)
|
||||||
or by passing CONFIG_ARM_TOOLCHAIN=<toolchain> to make, where <toolchain> is one
|
or by passing CONFIG_ARM_TOOLCHAIN=<toolchain> to make, where <toolchain> is one
|
||||||
@ -139,7 +139,7 @@ IDEs
|
|||||||
NuttX buildroot Toolchain
|
NuttX buildroot Toolchain
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -166,8 +166,8 @@ NuttX buildroot Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
detailed PLUS some special instructions that you will need to follow if you are
|
detailed PLUS some special instructions that you will need to follow if you are
|
||||||
@ -208,16 +208,13 @@ Image Format
|
|||||||
- cd tools/ # Configure Nuttx
|
- cd tools/ # Configure Nuttx
|
||||||
- ./configure.sh ea3152/ostest # (using the ostest configuration for this example)
|
- ./configure.sh ea3152/ostest # (using the ostest configuration for this example)
|
||||||
- cd .. # Set up environment
|
- cd .. # Set up environment
|
||||||
- . ./setenv.sh # (see notes below)
|
|
||||||
- make # Make NuttX. This will produce nuttx.bin
|
- make # Make NuttX. This will produce nuttx.bin
|
||||||
- mklpc.sh # Make the bootloader binary (nuttx.lpc)
|
- mklpc.sh # Make the bootloader binary (nuttx.lpc)
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
|
|
||||||
1. setenv.sh just sets up pathes to the toolchain and also to
|
1. You will need to set your PATH variable appropriately or use the full path
|
||||||
configs/ea3152/tools where mklpc.sh resides. Use of setenv.sh is optional.
|
to mklpc.sh in the final step.
|
||||||
If you don't use setenv.sh, then just set your PATH variable appropriately or
|
|
||||||
use the full path to mklpc.sh in the final step.
|
|
||||||
2. You can instruct Symantec to ignore the errors and it will stop quarantining
|
2. You can instruct Symantec to ignore the errors and it will stop quarantining
|
||||||
the NXP program.
|
the NXP program.
|
||||||
3. The CRC32 logic in configs/ea3152/tools doesn't seem to work. As a result,
|
3. The CRC32 logic in configs/ea3152/tools doesn't seem to work. As a result,
|
||||||
@ -406,7 +403,6 @@ selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh ea3152/<subdir>
|
./configure.sh ea3152/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,66 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ea3152/ostest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the path to the tools subdirectory
|
|
||||||
|
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -38,8 +38,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM=y : devkitARM under Windows
|
CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT, then you may also have to modify
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
||||||
The CodeSourcey (for Linux) and NuttX buildroot toolchains are Cygwin and/or Linux
|
The CodeSourcey (for Linux) and NuttX buildroot toolchains are Cygwin and/or Linux
|
||||||
@ -74,7 +74,7 @@ GNU Toolchain Options
|
|||||||
NuttX EABI "buildroot" Toolchain
|
NuttX EABI "buildroot" Toolchain
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -101,8 +101,8 @@ NuttX EABI "buildroot" Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
details PLUS some special instructions that you will need to follow if you are
|
details PLUS some special instructions that you will need to follow if you are
|
||||||
@ -155,8 +155,8 @@ NXFLAT Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly builtNXFLAT binaries.
|
NXFLAT binaries.
|
||||||
|
|
||||||
Ethernet-Bootloader
|
Ethernet-Bootloader
|
||||||
^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^
|
||||||
@ -345,7 +345,6 @@ Common Configuration Notes
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh eagle100/<subdir>
|
./configure.sh eagle100/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the configuration sub-directories described in
|
Where <subdir> is one of the configuration sub-directories described in
|
||||||
the following paragraph.
|
the following paragraph.
|
||||||
|
@ -1,76 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/eagle100/httpd/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the RIDE
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the RIDE toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/eagle100/nettest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,62 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/eagle100/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,76 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/eagle100/nxflat/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the RIDE
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the RIDE toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,76 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/eagle100/thttpd/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the RIDE
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the RIDE toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -234,7 +234,6 @@ CONFIGURATIONS
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh efm32-g8xx-stk/<subdir>
|
./configure.sh efm32-g8xx-stk/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
If this is a Windows native build, then configure.bat should be used
|
If this is a Windows native build, then configure.bat should be used
|
||||||
instead of configure.sh:
|
instead of configure.sh:
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/efm32-g8xx-stk/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -179,13 +179,13 @@ USING THE J-LINK GDB SERVER
|
|||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
==============
|
==============
|
||||||
|
|
||||||
Each EFM32 Giant Gecko Starter Kit configuration is maintained in a sub-
|
Each EFM32 Giant Gecko Starter Kit configuration is maintained in a sub-
|
||||||
directory and can be selected as follow:
|
directory and can be selected as follow:
|
||||||
|
|
||||||
cd tools
|
cd tools
|
||||||
./configure.sh efm32gg-stk3700/<subdir>
|
./configure.sh efm32gg-stk3700/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
If this is a Windows native build, then configure.bat should be used
|
If this is a Windows native build, then configure.bat should be used
|
||||||
instead of configure.sh:
|
instead of configure.sh:
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/efm32-g8xx-stk/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -107,8 +107,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM=y : devkitARM under Windows
|
CONFIG_ARMV7M_TOOLCHAIN_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT, then you may also have to modify
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
||||||
The CodeSourcey (for Linux) and NuttX buildroot toolchains are Cygwin and/or Linux
|
The CodeSourcey (for Linux) and NuttX buildroot toolchains are Cygwin and/or Linux
|
||||||
@ -178,7 +178,7 @@ IDEs
|
|||||||
NuttX EABI "buildroot" Toolchain
|
NuttX EABI "buildroot" Toolchain
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -205,8 +205,8 @@ NuttX EABI "buildroot" Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
details PLUS some special instructions that you will need to follow if you
|
details PLUS some special instructions that you will need to follow if you
|
||||||
@ -267,8 +267,8 @@ NXFLAT Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly builtNXFLAT binaries.
|
NXFLAT binaries.
|
||||||
|
|
||||||
Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@ -397,7 +397,6 @@ sub-directory and can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh ekk-lm3s9b96/<subdir>
|
./configure.sh ekk-lm3s9b96/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ekk-lm3s9b96/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Authors: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
# Jose Pablo Rojas V. <jrojas@nx-engineering.com>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -585,11 +585,9 @@ Configurations
|
|||||||
./configure.sh esp32-core/<subdir>
|
./configure.sh esp32-core/<subdir>
|
||||||
cd -
|
cd -
|
||||||
make oldconfig
|
make oldconfig
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Before sourcing the setenv.sh file above, you should examine it and
|
Before building, make sure the PATH environment variable includes the
|
||||||
perform edits as necessary so that TOOLCHAIN_BIN is the correct path to
|
correct path to the directory than holds your toolchain binaries.
|
||||||
the directory than holds your toolchain binaries.
|
|
||||||
|
|
||||||
If this is a Windows native build, then configure.bat should be used
|
If this is a Windows native build, then configure.bat should be used
|
||||||
instead of configure.sh:
|
instead of configure.sh:
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/esp32-core/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the Expressif crosstools-NG
|
|
||||||
# toolchaing
|
|
||||||
export TOOLCHAIN_BIN="/home/patacongo/projects/nuttx/crosstool-NG/builds/xtensa-esp32-elf/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH variable
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/esp32-core/ostest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the Expressif crosstools-NG
|
|
||||||
# toolchaing
|
|
||||||
export TOOLCHAIN_BIN="/home/patacongo/projects/nuttx/crosstool-NG/builds/xtensa-esp32-elf/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH variable
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,57 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/esp32-core/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the Expressif crosstools-NG
|
|
||||||
# toolchaing
|
|
||||||
export TOOLCHAIN_BIN="/home/patacongo/projects/nuttx/crosstool-NG/builds/xtensa-esp32-elf/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH variable
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -49,9 +49,9 @@ Version 5.1.1
|
|||||||
|
|
||||||
Paths were also updated that are specific to a 32-bit toolchain running on
|
Paths were also updated that are specific to a 32-bit toolchain running on
|
||||||
a 64 bit windows platform. Change to a different toolchain, you will need
|
a 64 bit windows platform. Change to a different toolchain, you will need
|
||||||
to modify the versioning in Make.defs and setenv.sh; if you want to build
|
to modify the versioning in Make.defs; if you want to build on a different
|
||||||
on a different platform, you will need to change the path in the ZDS binaries
|
platform, you will need to change the path in the ZDS binaries in that files
|
||||||
in those same files.
|
and also in your PATH environment variable.
|
||||||
|
|
||||||
Version 5.2.1
|
Version 5.2.1
|
||||||
|
|
||||||
@ -63,8 +63,9 @@ Version 5.2.1
|
|||||||
Other Versions
|
Other Versions
|
||||||
If you use any version of ZDS-II other than 5.1.1 or 5.2.1 or if you install
|
If you use any version of ZDS-II other than 5.1.1 or 5.2.1 or if you install
|
||||||
ZDS-II at any location other than the default location, you will have to
|
ZDS-II at any location other than the default location, you will have to
|
||||||
modify one or more of three files: (1) configs/ez80f910200kitg/*/setenv.sh,
|
modify one or two files: (1) configs/ez80f910200kitg/*/Make.defs and
|
||||||
(2) configs/ez80f910200kitg/*/Make.defs, and arch/z80/src/ez80/Toolchain.defs.
|
(2) arch/z80/src/ez80/Toolchain.defs. You probably have to modify the
|
||||||
|
path to your toolchain in the PATH environment variable.
|
||||||
|
|
||||||
Configuration Subdirectories
|
Configuration Subdirectories
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@ -120,9 +121,7 @@ available:
|
|||||||
will need to use the short 8.3 filenames to avoid spaces. On my
|
will need to use the short 8.3 filenames to avoid spaces. On my
|
||||||
PC, C:\PROGRA~1\ is is C:\Program Files\ and C:\PROGRA~2\ is
|
PC, C:\PROGRA~1\ is is C:\Program Files\ and C:\PROGRA~2\ is
|
||||||
C:\Program Files (x86)\
|
C:\Program Files (x86)\
|
||||||
b. You can't use setenv.sh in the native Windows environment. Try
|
b. At present, the native Windows build fails at the final link stages.
|
||||||
scripts/setenv.bat instead.
|
|
||||||
c. At present, the native Windows build fails at the final link stages.
|
|
||||||
The failure is due to problems in arch/z80/src/nuttx.linkcmd that
|
The failure is due to problems in arch/z80/src/nuttx.linkcmd that
|
||||||
is autogenerated by arch/z80/src/Makefile.zdsii. The basic problem
|
is autogenerated by arch/z80/src/Makefile.zdsii. The basic problem
|
||||||
is the spurious spaces and and carrirage returns are generated at
|
is the spurious spaces and and carrirage returns are generated at
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ez80f910200kitg/ostest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# Check how we were executed
|
|
||||||
#
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This is the Cygwin path to location where the XDS-II tools were installed
|
|
||||||
#
|
|
||||||
#TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
|
|
||||||
TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.2.1/bin"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
|
|
||||||
# preceded the toolchain bin directory. This is because the ZDSII bin directory
|
|
||||||
# includes binaries like make.exe that will interfere with the normal build process
|
|
||||||
# if we do not give priority to the versions at /bin and /usr/bin.
|
|
||||||
#
|
|
||||||
export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,50 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
rem configs/ez80f810200kitg/scripts/setenv.bat
|
|
||||||
rem
|
|
||||||
rem Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
|
||||||
rem Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
rem
|
|
||||||
rem Redistribution and use in source and binary forms, with or without
|
|
||||||
rem modification, are permitted provided that the following conditions
|
|
||||||
rem are met:
|
|
||||||
rem
|
|
||||||
rem 1. Redistributions of source code must retain the above copyright
|
|
||||||
rem notice, this list of conditions and the following disclaimer.
|
|
||||||
rem 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
rem notice, this list of conditions and the following disclaimer in
|
|
||||||
rem the documentation and/or other materials provided with the
|
|
||||||
rem distribution.
|
|
||||||
rem 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
rem used to endorse or promote products derived from this software
|
|
||||||
rem without specific prior written permission.
|
|
||||||
rem
|
|
||||||
rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
rem FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
rem COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
rem INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
rem BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
rem OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
rem AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
rem LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
rem ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
rem POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
rem This is the location where I installed in the MinGW compiler. With
|
|
||||||
rem this configuration, it is recommended that you do NOT install the
|
|
||||||
rem MSYS tools; they conflict with the GNUWin32 tools. See
|
|
||||||
rem http://www.mingw.org/ for further info.
|
|
||||||
|
|
||||||
set PATH=C:\MinGW\bin;%PATH%
|
|
||||||
|
|
||||||
rem This is the location where I installed the ZDS-II toolchain.
|
|
||||||
|
|
||||||
set PATH=C:\Program Files (x86)\ZiLOG\ZDSII_eZ80Acclaim!_5.1.1\bin;%PATH%
|
|
||||||
|
|
||||||
rem This is the location where I installed the GNUWin32 tools. See
|
|
||||||
rem http://gnuwin32.sourceforge.net/.
|
|
||||||
|
|
||||||
set PATH=C:\gnuwin32\bin;%PATH%
|
|
||||||
echo %PATH%
|
|
@ -49,9 +49,9 @@ Version 5.1.1
|
|||||||
|
|
||||||
Paths were also updated that are specific to a 32-bit toolchain running on
|
Paths were also updated that are specific to a 32-bit toolchain running on
|
||||||
a 64 bit windows platform. Change to a different toolchain, you will need
|
a 64 bit windows platform. Change to a different toolchain, you will need
|
||||||
to modify the versioning in Make.defs and setenv.sh; if you want to build
|
to modify the versioning in Make.defs; if you want to build on a different
|
||||||
on a different platform, you will need to change the path in the ZDS binaries
|
platform, you will need to change the path the the ZDS binaries in that
|
||||||
in those same files.
|
files as well as in your PATH environment variable.
|
||||||
|
|
||||||
Version 5.2.1
|
Version 5.2.1
|
||||||
|
|
||||||
@ -63,8 +63,9 @@ Version 5.2.1
|
|||||||
Other Versions
|
Other Versions
|
||||||
If you use any version of ZDS-II other than 5.1.1 or 5.2.1 or if you install
|
If you use any version of ZDS-II other than 5.1.1 or 5.2.1 or if you install
|
||||||
ZDS-II at any location other than the default location, you will have to
|
ZDS-II at any location other than the default location, you will have to
|
||||||
modify one or more of three files: (1) configs/ez80f910200zco/*/setenv.sh,
|
modify one or two files: (2) configs/ez80f910200zco/*/Make.defs and (2)
|
||||||
(2) configs/ez80f910200zco/*/Make.defs, and arch/z80/src/ez80/Toolchain.defs.
|
arch/z80/src/ez80/Toolchain.defs. You may also have to modify you PATH
|
||||||
|
environment variable.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ez80f910200zco/dhcpd/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# Check how we were executed
|
|
||||||
#
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This is the Cygwin path to location where the XDS-II tools were installed
|
|
||||||
#
|
|
||||||
#TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
|
|
||||||
TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.2.1/bin"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
|
|
||||||
# preceded the toolchain bin directory. This is because the ZDSII bin directory
|
|
||||||
# includes binaries like make.exe that will interfere with the normal build process
|
|
||||||
# if we do not give priority to the versions at /bin and /usr/bin.
|
|
||||||
#
|
|
||||||
export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ez80f910200zco/htppd/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# Check how we were executed
|
|
||||||
#
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This is the Cygwin path to location where the XDS-II tools were installed
|
|
||||||
#
|
|
||||||
#TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
|
|
||||||
TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.2.1/bin"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
|
|
||||||
# preceded the toolchain bin directory. This is because the ZDSII bin directory
|
|
||||||
# includes binaries like make.exe that will interfere with the normal build process
|
|
||||||
# if we do not give priority to the versions at /bin and /usr/bin.
|
|
||||||
#
|
|
||||||
export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ez80f910200zco/nettest/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2008, 2009, 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# Check how we were executed
|
|
||||||
#
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This is the Cygwin path to location where the XDS-II tools were installed
|
|
||||||
#
|
|
||||||
#TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
|
|
||||||
TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.2.1/bin"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
|
|
||||||
# preceded the toolchain bin directory. This is because the ZDSII bin directory
|
|
||||||
# includes binaries like make.exe that will interfere with the normal build process
|
|
||||||
# if we do not give priority to the versions at /bin and /usr/bin.
|
|
||||||
#
|
|
||||||
export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ez80f910200zco/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# Check how we were executed
|
|
||||||
#
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This is the Cygwin path to location where the XDS-II tools were installed
|
|
||||||
#
|
|
||||||
#TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
|
|
||||||
TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.2.1/bin"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
|
|
||||||
# preceded the toolchain bin directory. This is because the ZDSII bin directory
|
|
||||||
# includes binaries like make.exe that will interfere with the normal build process
|
|
||||||
# if we do not give priority to the versions at /bin and /usr/bin.
|
|
||||||
#
|
|
||||||
export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/ez80f910200zco/poll/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# Check how we were executed
|
|
||||||
#
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# This is the Cygwin path to location where the XDS-II tools were installed
|
|
||||||
#
|
|
||||||
#TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
|
|
||||||
TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.2.1/bin"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
|
|
||||||
# preceded the toolchain bin directory. This is because the ZDSII bin directory
|
|
||||||
# includes binaries like make.exe that will interfere with the normal build process
|
|
||||||
# if we do not give priority to the versions at /bin and /usr/bin.
|
|
||||||
#
|
|
||||||
export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,50 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
rem configs/ez80f910200zco/scripts/setenv.bat
|
|
||||||
rem
|
|
||||||
rem Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
|
||||||
rem Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
rem
|
|
||||||
rem Redistribution and use in source and binary forms, with or without
|
|
||||||
rem modification, are permitted provided that the following conditions
|
|
||||||
rem are met:
|
|
||||||
rem
|
|
||||||
rem 1. Redistributions of source code must retain the above copyright
|
|
||||||
rem notice, this list of conditions and the following disclaimer.
|
|
||||||
rem 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
rem notice, this list of conditions and the following disclaimer in
|
|
||||||
rem the documentation and/or other materials provided with the
|
|
||||||
rem distribution.
|
|
||||||
rem 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
rem used to endorse or promote products derived from this software
|
|
||||||
rem without specific prior written permission.
|
|
||||||
rem
|
|
||||||
rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
rem FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
rem COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
rem INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
rem BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
rem OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
rem AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
rem LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
rem ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
rem POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
rem This is the location where I installed in the MinGW compiler. With
|
|
||||||
rem this configuration, it is recommended that you do NOT install the
|
|
||||||
rem MSYS tools; they conflict with the GNUWin32 tools. See
|
|
||||||
rem http://www.mingw.org/ for further info.
|
|
||||||
|
|
||||||
set PATH=C:\MinGW\bin;%PATH%
|
|
||||||
|
|
||||||
rem This is the location where I installed the ZDS-II toolchain.
|
|
||||||
|
|
||||||
set PATH=C:\Program Files (x86)\ZiLOG\ZDSII_eZ80Acclaim!_5.1.1\bin;%PATH%
|
|
||||||
|
|
||||||
rem This is the location where I installed the GNUWin32 tools. See
|
|
||||||
rem http://gnuwin32.sourceforge.net/.
|
|
||||||
|
|
||||||
set PATH=C:\gnuwin32\bin;%PATH%
|
|
||||||
echo %PATH%
|
|
@ -194,8 +194,8 @@ GNU Toolchain Options
|
|||||||
CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE=y : Raisonance RIDE7 under Windows
|
CONFIG_ARMV7M_TOOLCHAIN_RAISONANCE=y : Raisonance RIDE7 under Windows
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you change the default toolchain, then you may also have to modify the PATH in
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
the setenv.h file if your make cannot find the tools.
|
find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows), Atollic, devkitARM, and Raisonance toolchains are
|
NOTE: the CodeSourcery (for Windows), Atollic, devkitARM, and Raisonance toolchains are
|
||||||
Windows native toolchains. The CodeSourcery (for Linux) and NuttX buildroot
|
Windows native toolchains. The CodeSourcery (for Linux) and NuttX buildroot
|
||||||
@ -296,7 +296,7 @@ IDEs
|
|||||||
NuttX EABI "buildroot" Toolchain
|
NuttX EABI "buildroot" Toolchain
|
||||||
================================
|
================================
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M3 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -323,8 +323,8 @@ NuttX EABI "buildroot" Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
details PLUS some special instructions that you will need to follow if you are
|
details PLUS some special instructions that you will need to follow if you are
|
||||||
@ -385,8 +385,8 @@ NXFLAT Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly builtNXFLAT binaries.
|
NXFLAT binaries.
|
||||||
|
|
||||||
DFU and JTAG
|
DFU and JTAG
|
||||||
============
|
============
|
||||||
@ -801,7 +801,6 @@ can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh fire-stm32v2/<subdir>
|
./configure.sh fire-stm32v2/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/fire-stm32v2/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the RIDE
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the RIDE toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# This is the path to the tools/ subdirectory
|
|
||||||
export TOOLS_DIR="${WD}/configs/fire-stm32v2/tools"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH variable
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:${TOOLS_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -626,9 +626,8 @@ GNU Toolchain Options
|
|||||||
|
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
||||||
|
|
||||||
If you are not using CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT, then you may
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
also have to modify the PATH in the setenv.h file if your make cannot
|
find the tools.
|
||||||
find the tools.
|
|
||||||
|
|
||||||
NOTE: Using native Windows toolchains under Cygwin has some limitations.
|
NOTE: Using native Windows toolchains under Cygwin has some limitations.
|
||||||
This incuudes the CodeSourcery (for Windows) and devkitARM toolchains are
|
This incuudes the CodeSourcery (for Windows) and devkitARM toolchains are
|
||||||
@ -822,7 +821,6 @@ can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh freedom-k64f/<subdir>
|
./configure.sh freedom-k64f/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,77 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/freedom-k64f/netnsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Atmel GCC
|
|
||||||
# toolchain under Windows. You will also have to edit this if you install
|
|
||||||
# this toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Atmel Toolchain/ARM GCC/Native/4.7.3.99/arm-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the devkitARM toolchain
|
|
||||||
# You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,77 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/freedom-k64f/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Atmel GCC
|
|
||||||
# toolchain under Windows. You will also have to edit this if you install
|
|
||||||
# this toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Atmel Toolchain/ARM GCC/Native/4.7.3.99/arm-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the devkitARM toolchain
|
|
||||||
# You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
# export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -629,9 +629,8 @@ GNU Toolchain Options
|
|||||||
|
|
||||||
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
||||||
|
|
||||||
If you are not using CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT, then you may
|
You may also have to modify the PATH environment variable if your make cannot
|
||||||
also have to modify the PATH in the setenv.h file if your make cannot
|
find the tools.
|
||||||
find the tools.
|
|
||||||
|
|
||||||
NOTE: Using native Windows toolchains under Cygwin has some limitations.
|
NOTE: Using native Windows toolchains under Cygwin has some limitations.
|
||||||
This incuudes the CodeSourcery (for Windows) and devkitARM toolchains are
|
This incuudes the CodeSourcery (for Windows) and devkitARM toolchains are
|
||||||
@ -829,7 +828,6 @@ can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh freedom-K66F/<subdir>
|
./configure.sh freedom-K66F/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the following:
|
||||||
|
|
||||||
|
@ -1,77 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/freedom-k66f/netnsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2016-2017 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Atmel GCC
|
|
||||||
# toolchain under Windows. You will also have to edit this if you install
|
|
||||||
# this toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Atmel Toolchain/ARM GCC/Native/4.7.3.99/arm-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the devkitARM toolchain
|
|
||||||
# You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -1,77 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/freedom-k66f/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2016-2017 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the Atmel GCC
|
|
||||||
# toolchain under Windows. You will also have to edit this if you install
|
|
||||||
# this toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atmel/Atmel Toolchain/ARM GCC/Native/4.7.3.99/arm-gnu-toolchain/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
# export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
|
||||||
|
|
||||||
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
|
||||||
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
|
||||||
|
|
||||||
# This is the path to the location where I installed the devkitARM toolchain
|
|
||||||
# You can get this free toolchain from http://devkitpro.org/ or http://sourceforge.net/projects/devkitpro/
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/devkitARM/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
# export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -34,7 +34,7 @@ GNU Toolchain Options
|
|||||||
NuttX Buildroot Toolchain
|
NuttX Buildroot Toolchain
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M0 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M0 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -61,8 +61,8 @@ NuttX Buildroot Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
details PLUS some special instructions that you will need to follow if you are
|
details PLUS some special instructions that you will need to follow if you are
|
||||||
@ -285,7 +285,6 @@ can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh freedom-kl25z/<subdir>
|
./configure.sh freedom-kl25z/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
If this is a Windows native build, then configure.bat should be used
|
If this is a Windows native build, then configure.bat should be used
|
||||||
instead of configure.sh:
|
instead of configure.sh:
|
||||||
|
@ -1,75 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# configs/freedom-kl25z/nsh/setenv.sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ "$_" = "$0" ] ; then
|
|
||||||
echo "You must source this script, not run it!" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
|
||||||
if [ ! -x "setenv.sh" ]; then
|
|
||||||
echo "This script must be executed from the top-level NuttX build directory"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then
|
|
||||||
export PATH_ORIG="${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the RIDE
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the RIDE toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I installed the CodeSourcery
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the CodeSourcery toolchain in any other location
|
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This is the Cygwin path to the location where I build the buildroot
|
|
||||||
# toolchain.
|
|
||||||
export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
|
||||||
|
|
||||||
# Add the path to the toolchain to the PATH varialble
|
|
||||||
export PATH="${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
|
|
||||||
|
|
||||||
echo "PATH : ${PATH}"
|
|
@ -34,7 +34,7 @@ GNU Toolchain Options
|
|||||||
NuttX Buildroot Toolchain
|
NuttX Buildroot Toolchain
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
A GNU GCC-based toolchain is assumed. The files */setenv.sh should
|
A GNU GCC-based toolchain is assumed. The PATH environment variable should
|
||||||
be modified to point to the correct path to the Cortex-M0 GCC toolchain (if
|
be modified to point to the correct path to the Cortex-M0 GCC toolchain (if
|
||||||
different from the default in your PATH variable).
|
different from the default in your PATH variable).
|
||||||
|
|
||||||
@ -61,8 +61,8 @@ NuttX Buildroot Toolchain
|
|||||||
|
|
||||||
7. make
|
7. make
|
||||||
|
|
||||||
8. Edit setenv.h, if necessary, so that the PATH variable includes
|
8. Make sure that the PATH variable includes the path to the newly built
|
||||||
the path to the newly built binaries.
|
binaries.
|
||||||
|
|
||||||
See the file configs/README.txt in the buildroot source tree. That has more
|
See the file configs/README.txt in the buildroot source tree. That has more
|
||||||
details PLUS some special instructions that you will need to follow if you are
|
details PLUS some special instructions that you will need to follow if you are
|
||||||
@ -263,7 +263,6 @@ can be selected as follow:
|
|||||||
cd tools
|
cd tools
|
||||||
./configure.sh freedom-kl26z/<subdir>
|
./configure.sh freedom-kl26z/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
|
||||||
|
|
||||||
If this is a Windows native build, then configure.bat should be used
|
If this is a Windows native build, then configure.bat should be used
|
||||||
instead of configure.sh:
|
instead of configure.sh:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user