configs/lpc4330-xplorer/nsh converted to use the kconfig-frontends tools
This commit is contained in:
parent
e0a9decf48
commit
136488624a
@ -6732,4 +6732,6 @@
|
|||||||
kconfig-frontends tools (2014-3-1).
|
kconfig-frontends tools (2014-3-1).
|
||||||
* configs/stm32f4discovery/src/Makefile: Fix type: stm32_pwm.c not
|
* configs/stm32f4discovery/src/Makefile: Fix type: stm32_pwm.c not
|
||||||
stm32_psm.c. Noted by Max Kriegleder (2014-3-1).
|
stm32_psm.c. Noted by Max Kriegleder (2014-3-1).
|
||||||
|
* configs/lpc4330-xplorer/nsh Configuration converted to use the
|
||||||
|
kconfig-frontends tools (2014-3-1).
|
||||||
|
|
||||||
|
@ -906,55 +906,67 @@ Where <subdir> is one of the following:
|
|||||||
nsh:
|
nsh:
|
||||||
----
|
----
|
||||||
This configuration is the NuttShell (NSH) example at examples/nsh/.
|
This configuration is the NuttShell (NSH) example at examples/nsh/.
|
||||||
By default, this project assumes that you are executing directly from
|
|
||||||
SRAM.
|
|
||||||
|
|
||||||
CONFIG_LPC43_BOOT_SRAM=y : Executing in SRAM
|
NOTES:
|
||||||
CONFIG_LPC43_CODEREDW=y : Code Red under Windows
|
|
||||||
|
|
||||||
To execute from SPIFI, you would need to set:
|
1. This configuration uses the mconf-based configuration tool. To
|
||||||
|
change this configurations using that tool, you should:
|
||||||
|
|
||||||
CONFIG_LPC43_BOOT_SPIFI=y : Executing from SPIFI
|
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
|
||||||
CONFIG_RAM_SIZE=(128*1024) : SRAM Bank0 size
|
and misc/tools/
|
||||||
CONFIG_RAM_START=0x10000000 : SRAM Bank0 base address
|
|
||||||
CONFIG_SPIFI_OFFSET=(512*1024) : SPIFI file system offset
|
|
||||||
|
|
||||||
CONFIG_MM_REGIONS should also be increased if you want to other SRAM banks
|
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
||||||
to the memory pool.
|
reconfiguration process.
|
||||||
|
|
||||||
This configuration has some special options that can be used to
|
2. By default, this project assumes that you are executing directly from
|
||||||
create a block device on the SPIFI FLASH. NOTE: CONFIG_LPC43_SPIFI=y
|
SRAM.
|
||||||
must also be defined to enable SPIFI setup support:
|
|
||||||
|
|
||||||
SPIFI device geometry:
|
CONFIG_LPC43_BOOT_SRAM=y : Executing in SRAM
|
||||||
|
CONFIG_LPC43_CODEREDW=y : Code Red under Windows
|
||||||
|
|
||||||
CONFIG_SPIFI_OFFSET - Offset the beginning of the block driver this many
|
3. To execute from SPIFI, you would need to set:
|
||||||
bytes into the device address space. This offset must be an exact
|
|
||||||
multiple of the erase block size (CONFIG_SPIFI_BLKSIZE). Default 0.
|
|
||||||
CONFIG_SPIFI_BLKSIZE - The size of one device erase block. If not defined
|
|
||||||
then the driver will try to determine the correct erase block size by
|
|
||||||
examining that data returned from spifi_initialize (which sometimes
|
|
||||||
seems bad).
|
|
||||||
|
|
||||||
Other SPIFI options
|
CONFIG_LPC43_BOOT_SPIFI=y : Executing from SPIFI
|
||||||
|
CONFIG_RAM_SIZE=(128*1024) : SRAM Bank0 size
|
||||||
|
CONFIG_RAM_START=0x10000000 : SRAM Bank0 base address
|
||||||
|
CONFIG_SPIFI_OFFSET=(512*1024) : SPIFI file system offset
|
||||||
|
|
||||||
CONFIG_SPIFI_SECTOR512 - If defined, then the driver will report a more
|
CONFIG_MM_REGIONS should also be increased if you want to other SRAM banks
|
||||||
FAT friendly 512 byte sector size and will manage the read-modify-write
|
to the memory pool.
|
||||||
operations on the larger erase block.
|
|
||||||
CONFIG_SPIFI_READONLY - Define to support only read-only operations.
|
|
||||||
CONFIG_SPIFI_LIBRARY - Don't use the LPC43xx ROM routines but, instead,
|
|
||||||
use an external library implementation of the SPIFI interface.
|
|
||||||
CONFIG_SPIFI_VERIFY - Verify all spifi_program() operations by reading
|
|
||||||
from the SPI address space after each write.
|
|
||||||
CONFIG_DEBUG_SPIFI_DUMP - Debug option to dump read/write buffers. You
|
|
||||||
probably do not want to enable this unless you want to dig through a
|
|
||||||
*lot* of debug output! Also required CONFIG_DEBUG, CONFIG_DEBUG_VERBOSE,
|
|
||||||
and CONFIG_DEBUG_FS,
|
|
||||||
|
|
||||||
In my experience, there were some missing function pointers in the LPC43xx
|
4. This configuration an also be used create a block device on the SPIFI
|
||||||
SPIFI ROM routines and the SPIFI configuration could only be built with
|
FLASH. CONFIG_LPC43_SPIFI=y must also be defined to enable SPIFI setup
|
||||||
CONFIG_SPIFI_LIBRARY=y. The SPIFI library is proprietary and cannot be
|
support:
|
||||||
provided within NuttX open source repository; SPIFI library binaries can
|
|
||||||
be found on the lpcware.com website. In this build sceneario, you must
|
SPIFI device geometry:
|
||||||
also provide the patch to the external SPIFI library be defining the make
|
|
||||||
variable EXTRA_LIBS in the top-level Make.defs file. Good luck!
|
CONFIG_SPIFI_OFFSET - Offset the beginning of the block driver this many
|
||||||
|
bytes into the device address space. This offset must be an exact
|
||||||
|
multiple of the erase block size (CONFIG_SPIFI_BLKSIZE). Default 0.
|
||||||
|
CONFIG_SPIFI_BLKSIZE - The size of one device erase block. If not defined
|
||||||
|
then the driver will try to determine the correct erase block size by
|
||||||
|
examining that data returned from spifi_initialize (which sometimes
|
||||||
|
seems bad).
|
||||||
|
|
||||||
|
Other SPIFI options
|
||||||
|
|
||||||
|
CONFIG_SPIFI_SECTOR512 - If defined, then the driver will report a more
|
||||||
|
FAT friendly 512 byte sector size and will manage the read-modify-write
|
||||||
|
operations on the larger erase block.
|
||||||
|
CONFIG_SPIFI_READONLY - Define to support only read-only operations.
|
||||||
|
CONFIG_SPIFI_LIBRARY - Don't use the LPC43xx ROM routines but, instead,
|
||||||
|
use an external library implementation of the SPIFI interface.
|
||||||
|
CONFIG_SPIFI_VERIFY - Verify all spifi_program() operations by reading
|
||||||
|
from the SPI address space after each write.
|
||||||
|
CONFIG_DEBUG_SPIFI_DUMP - Debug option to dump read/write buffers. You
|
||||||
|
probably do not want to enable this unless you want to dig through a
|
||||||
|
*lot* of debug output! Also required CONFIG_DEBUG, CONFIG_DEBUG_VERBOSE,
|
||||||
|
and CONFIG_DEBUG_FS,
|
||||||
|
|
||||||
|
5. In my experience, there were some missing function pointers in the LPC43xx
|
||||||
|
SPIFI ROM routines and the SPIFI configuration could only be built with
|
||||||
|
CONFIG_SPIFI_LIBRARY=y. The SPIFI library is proprietary and cannot be
|
||||||
|
provided within NuttX open source repository; SPIFI library binaries can
|
||||||
|
be found on the lpcware.com website. In this build sceneario, you must
|
||||||
|
also provide the patch to the external SPIFI library be defining the make
|
||||||
|
variable EXTRA_LIBS in the top-level Make.defs file. Good luck!
|
||||||
|
@ -1,99 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/lpc4330-xplorer/nsh2/appconfig
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
# Path to example in apps/examples containing the user_start entry point
|
|
||||||
|
|
||||||
CONFIGURED_APPS += examples/nsh
|
|
||||||
|
|
||||||
# The NSH application library
|
|
||||||
|
|
||||||
CONFIGURED_APPS += system/readline
|
|
||||||
CONFIGURED_APPS += nshlib
|
|
||||||
|
|
||||||
# Networking libraries.
|
|
||||||
# Uncomment netutils/ftpc to include an FTP client library
|
|
||||||
# Uncomment netutils/ftpd to include an FTP server library
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
|
||||||
CONFIGURED_APPS += netutils/uiplib
|
|
||||||
CONFIGURED_APPS += netutils/resolv
|
|
||||||
CONFIGURED_APPS += netutils/webclient
|
|
||||||
CONFIGURED_APPS += netutils/tftpc
|
|
||||||
#CONFIGURED_APPS += netutils/ftpc
|
|
||||||
#CONFIGURED_APPS += netutils/ftpd
|
|
||||||
ifeq ($(CONFIG_NSH_TELNET),y)
|
|
||||||
CONFIGURED_APPS += netutils/telnetd
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# FreeModBus library
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_MODBUS),y)
|
|
||||||
CONFIGURED_APPS += modbus
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Applications configured as an NX built-in commands
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_ADC),y)
|
|
||||||
CONFIGURED_APPS += examples/adc
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_PWM),y)
|
|
||||||
CONFIGURED_APPS += examples/pwm
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_CAN),y)
|
|
||||||
CONFIGURED_APPS += examples/can
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_I2C),y)
|
|
||||||
CONFIGURED_APPS += system/i2c
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_WATCHDOG),y)
|
|
||||||
CONFIGURED_APPS += examples/watchdog
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_MODBUS),y)
|
|
||||||
CONFIGURED_APPS += examples/modbus
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Uncomment examples/ftpc to include the FTP client example
|
|
||||||
# Uncomment examples/ftpd to include the FTP daemon example
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_NET),y)
|
|
||||||
#CONFIGURED_APPS += examples/ftpc
|
|
||||||
#CONFIGURED_APPS += examples/ftpd
|
|
||||||
endif
|
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user