forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: added support for EMW3162 Wi-Fi board
- Loading branch information
1 parent
1bce864
commit fd46d7a
Showing
19 changed files
with
1,362 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# For a description of the syntax of this configuration file, | ||
# see the file kconfig-language.txt in the NuttX tools repository. | ||
# | ||
|
||
if ARCH_BOARD_EMW3162 | ||
|
||
config EMW3162_WLAN | ||
bool "Enable WLAN chip support" | ||
depends on IEEE80211_BROADCOM_FULLMAC_SDIO | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
README | ||
====== | ||
|
||
EMW3162 board (https://www.waveshare.com/EMW3162.htm) features the | ||
STM32F205RG MCU and Broadcom BCM43362KUBG Wi-Fi chip. | ||
The STM32F205RG is a 120 MHz Cortex-M3 operation with 1Mbit Flash | ||
memory and 128kbytes. | ||
|
||
Contents | ||
======== | ||
|
||
- Configuring NuttX for the EMW3162 board | ||
- Configuring NuttX to use your Wireless Router (aka Access Point) | ||
- Programming Flash | ||
- NSH via telnet | ||
- Serial console configuration | ||
|
||
Configuring NuttX for the EMW3162 board | ||
======================================= | ||
|
||
$ cd nuttx | ||
$ make apps_distclean | ||
$ make distclean | ||
$ ./configure.sh emw3162:wlan | ||
|
||
Configuring NuttX to use your Wireless Router (aka Access Point) | ||
================================================================ | ||
|
||
$ make menuconfig | ||
|
||
Browse the menus this way: | ||
|
||
Application Configuration ---> | ||
NSH Library ---> | ||
Networking Configuration ---> | ||
WAPI Configuration ---> | ||
(myApSSID) SSID | ||
(mySSIDpassphrase) Passprhase | ||
|
||
Replace the SSID from myApSSID with your wireless router name and | ||
the Passprhase with your WiFi password. | ||
|
||
Exit and save. | ||
|
||
Finally just compile NuttX: | ||
|
||
$ make | ||
|
||
Programming Flash | ||
================= | ||
|
||
Flash memory can be programmed by stlink toolset | ||
(https://github.com/stlink-org/stlink) and ST-LINK V2 programmer | ||
(via SWD interface) as follows: | ||
|
||
$ sudo st-flash write nuttx.bin 0x8000000 | ||
|
||
NSH via telnet | ||
============== | ||
|
||
After you successfully downloaded nuttx.bin, reset the board and it | ||
automatically connects to the corresponding wifi AP. You may login | ||
your router to see its IP address. Assume that it's 192.168.1.111 | ||
|
||
Open a terminal on your computer and telnet your EMW3162 board: | ||
|
||
$ telnet 192.168.1.111 | ||
Trying 192.168.1.111... | ||
Connected to 192.168.1.111. | ||
Escape character is '^]' | ||
|
||
NuttShell (NSH) NuttX-10.1.0-RC1 | ||
nsh> | ||
|
||
Serial console configuration | ||
============================ | ||
|
||
Connect a USB/Serial 3.3V dongle to GND, TXD and RXD pins of EMW3162 board. | ||
Then use some serial console client (minicom, picocom, teraterm, etc) confi- | ||
gured to 115200 8n1 without software or hardware flow control. | ||
|
||
Reset the board and you should see NuttX starting in the serial. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# This file is autogenerated: PLEASE DO NOT EDIT IT. | ||
# | ||
# You can use "make menuconfig" to make any modifications to the installed .config file. | ||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your | ||
# modifications. | ||
# | ||
# CONFIG_NSH_ARGCAT is not set | ||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set | ||
# CONFIG_NSH_CMDPARMS is not set | ||
CONFIG_ARCH="arm" | ||
CONFIG_ARCH_BOARD="emw3162" | ||
CONFIG_ARCH_BOARD_EMW3162=y | ||
CONFIG_ARCH_CHIP="stm32" | ||
CONFIG_ARCH_CHIP_STM32=y | ||
CONFIG_ARCH_CHIP_STM32F205RG=y | ||
CONFIG_ARCH_STACKDUMP=y | ||
CONFIG_BOARD_LOOPSPERMSEC=16717 | ||
CONFIG_BUILTIN=y | ||
CONFIG_FS_PROCFS=y | ||
CONFIG_HAVE_CXX=y | ||
CONFIG_HAVE_CXXINITIALIZE=y | ||
CONFIG_INTELHEX_BINARY=y | ||
CONFIG_MAX_TASKS=16 | ||
CONFIG_MM_REGIONS=2 | ||
CONFIG_NSH_ARCHINIT=y | ||
CONFIG_NSH_BUILTIN_APPS=y | ||
CONFIG_NSH_FILEIOSIZE=512 | ||
CONFIG_NSH_LINELEN=64 | ||
CONFIG_NSH_READLINE=y | ||
CONFIG_PREALLOC_TIMERS=4 | ||
CONFIG_RAM_SIZE=114688 | ||
CONFIG_RAM_START=0x20000000 | ||
CONFIG_RAW_BINARY=y | ||
CONFIG_RR_INTERVAL=200 | ||
CONFIG_SCHED_WAITPID=y | ||
CONFIG_SDCLONE_DISABLE=y | ||
CONFIG_START_DAY=6 | ||
CONFIG_START_MONTH=12 | ||
CONFIG_START_YEAR=2011 | ||
CONFIG_STM32_JTAG_SW_ENABLE=y | ||
CONFIG_STM32_USART1=y | ||
CONFIG_SYSTEM_NSH=y | ||
CONFIG_USART1_SERIAL_CONSOLE=y | ||
CONFIG_USER_ENTRYPOINT="nsh_main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# | ||
# This file is autogenerated: PLEASE DO NOT EDIT IT. | ||
# | ||
# You can use "make menuconfig" to make any modifications to the installed .config file. | ||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your | ||
# modifications. | ||
# | ||
# CONFIG_IEEE80211_BROADCOM_FWFILES is not set | ||
# CONFIG_MMCSD_HAVE_CARDDETECT is not set | ||
# CONFIG_MMCSD_MMCSUPPORT is not set | ||
# CONFIG_NSH_ARGCAT is not set | ||
# CONFIG_NSH_CMDOPT_HEXDUMP is not set | ||
# CONFIG_NSH_CMDPARMS is not set | ||
CONFIG_ARCH="arm" | ||
CONFIG_ARCH_BOARD="emw3162" | ||
CONFIG_ARCH_BOARD_EMW3162=y | ||
CONFIG_ARCH_CHIP="stm32" | ||
CONFIG_ARCH_CHIP_STM32=y | ||
CONFIG_ARCH_CHIP_STM32F205RG=y | ||
CONFIG_ARCH_STACKDUMP=y | ||
CONFIG_BOARD_LOOPSPERMSEC=16717 | ||
CONFIG_BUILTIN=y | ||
CONFIG_DRIVERS_IEEE80211=y | ||
CONFIG_DRIVERS_WIRELESS=y | ||
CONFIG_EMW3162_WLAN=y | ||
CONFIG_FS_PROCFS=y | ||
CONFIG_HAVE_CXX=y | ||
CONFIG_HAVE_CXXINITIALIZE=y | ||
CONFIG_IEEE80211_BROADCOM_BCM43362=y | ||
CONFIG_IEEE80211_BROADCOM_FULLMAC_SDIO=y | ||
CONFIG_INTELHEX_BINARY=y | ||
CONFIG_LIBM=y | ||
CONFIG_MAX_TASKS=16 | ||
CONFIG_MMCSD=y | ||
CONFIG_MMCSD_SDIO=y | ||
CONFIG_MM_REGIONS=2 | ||
CONFIG_NET=y | ||
CONFIG_NETDB_DNSCLIENT=y | ||
CONFIG_NETDEVICES=y | ||
CONFIG_NETDEV_LATEINIT=y | ||
CONFIG_NETDEV_WIRELESS_IOCTL=y | ||
CONFIG_NETINIT_DHCPC=y | ||
CONFIG_NETINIT_DRIPADDR=0xc0a80001 | ||
CONFIG_NETUTILS_DHCPC=y | ||
CONFIG_NETUTILS_TELNETD=y | ||
CONFIG_NET_BROADCAST=y | ||
CONFIG_NET_ETH_PKTSIZE=800 | ||
CONFIG_NET_GUARDSIZE=32 | ||
CONFIG_NET_ICMP=y | ||
CONFIG_NET_ICMP_SOCKET=y | ||
CONFIG_NET_PKT=y | ||
CONFIG_NET_TCP=y | ||
CONFIG_NET_UDP=y | ||
CONFIG_NSH_ARCHINIT=y | ||
CONFIG_NSH_BUILTIN_APPS=y | ||
CONFIG_NSH_FILEIOSIZE=512 | ||
CONFIG_NSH_LINELEN=64 | ||
CONFIG_NSH_READLINE=y | ||
CONFIG_PREALLOC_TIMERS=4 | ||
CONFIG_RAM_SIZE=114688 | ||
CONFIG_RAM_START=0x20000000 | ||
CONFIG_RAW_BINARY=y | ||
CONFIG_RR_INTERVAL=200 | ||
CONFIG_RTC_DATETIME=y | ||
CONFIG_SCHED_HPWORK=y | ||
CONFIG_SCHED_WAITPID=y | ||
CONFIG_SDCLONE_DISABLE=y | ||
CONFIG_SDIO_BLOCKSETUP=y | ||
CONFIG_START_DAY=6 | ||
CONFIG_START_MONTH=12 | ||
CONFIG_START_YEAR=2011 | ||
CONFIG_STM32_DMA2=y | ||
CONFIG_STM32_JTAG_SW_ENABLE=y | ||
CONFIG_STM32_PWR=y | ||
CONFIG_STM32_RTC=y | ||
CONFIG_STM32_SDIO=y | ||
CONFIG_STM32_SDIO_CARD=y | ||
CONFIG_STM32_USART1=y | ||
CONFIG_SYSLOG_CHAR=y | ||
CONFIG_SYSLOG_DEVPATH="/dev/ttyS0" | ||
CONFIG_SYSTEM_NSH=y | ||
CONFIG_SYSTEM_PING=y | ||
CONFIG_USART1_SERIAL_CONSOLE=y | ||
CONFIG_USER_ENTRYPOINT="nsh_main" | ||
CONFIG_WIRELESS_WAPI=y | ||
CONFIG_WIRELESS_WAPI_CMDTOOL=y |
Oops, something went wrong.