Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
ESP8266
nuc980
NK-980IOT测评之ESP8266 AT测试
发布于 2022-03-25 23:42:11 浏览:1109
订阅该版
[tocm] 首选介绍下NUC980系列芯片,32位微处理器arm926EJ-S处理器,具有16kB I缓存、16kB D缓存和最高300MHz的MMU,执行速度高达 300 MHz,堆栈 16 MB、64 MB 或 128 MB DDR-II 内存于同一封装。它的SDRAM接口支持SDR/DDR/DDR 2/LPDDR型SDRAM,最高可达150 MHz。Nuc980系列支持内置16kB嵌入式SRAM和16.5kB IBR(内部引导ROM),用于从USB、NAND、SD/EMMC和SPI闪存启动。NUC980系列配备了大量高速数字外设,如两个支持RMII的10/100Mbps以太网MAC、一个USB2.0高速主机/设备、一个USB2.0高速HOs,支持CCIR 601和CCIR 656型传感器的两个CMOS传感器接口,支持SD/SDHC/SDIO卡的两个SD接口,支持SLC和MLC型NAND Flash的NAND Flash接口,支持I2S和PCM协议的I2S接口,也是Nuc980系列提供内置的硬件加密加速器,支持RSA、ECC、AES、SHA、HMAC和随机数发生器(RNg)。NUC980系列提供最多10个UART接口,两个ISO-7816-3接口,一个quad-spi接口,两个spi接口,最多4个I2C接口,4个can 2.0b接口,8个通道PWM ou。TPUT、8个通道12位SARADC、6个32位定时器、WDT(看门狗定时器)、WWDT(窗口看门狗定时器)、32.768kHzXTL和RTC(实时时钟)。NUC 980系列还支持两个10通道外围DMA(PDMA),用于存储器和外围设备之间的自动数据传输。 NUC980 提供 AES、SHA、ECC 与 RSA 加密引擎,并符合 - 40 ℃ 至 85 ℃ 工业温度规格,应用领域:工业自动化控制、工业物联网网关 ( Gateway )、网络打印机设备、电表集中器、智能家居网关等场景。 开发板NK-980IOT功能: ![A2.jpg](https://oss-club.rt-thread.org/uploads/20220325/8744b288f933a1b73d0b534a5308e47b.jpg) 小熊派WiFi模组: ![A3.jpg](https://oss-club.rt-thread.org/uploads/20220325/26d39c361c496fc200a8d0e0fc4733f9.jpg) 开发板原装固件开机自检: ``` NUC980 IBR 20180813 Boot from SPI-NAND DDR-OK finish SPI dow頻oad SPL load main U-Boot from SPI NAND Flash! (Feb 20 2019 09:12:29) U-Boot 2016.11-g8127c47 (Feb 20 2019 - 09:12:26 +0800) CPU: NUC980 Board: NUC980 DRAM: 64 MiB SF: Detected W25N01GV with page size 2 KiB, erase size 128 KiB, total 128 MiB In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 1 0 SF: Detected W25N01GV with page size 2 KiB, erase size 128 KiB, total 128 MiB device 0 offset 0x200000, size 0x800000 SF: 8388608 bytes @ 0x200000 Read: OK ## Booting kernel from Legacy Image at 00007fc0 ... Image Name: Linux-4.4.115+ Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6491248 Bytes = 6.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK XIP Kernel Image ... OK Starting kernel ... SF: Detected W25N01GV with page size 2 KiB, erase size 128 KiB, total 128 MiB SF: DeviceBooting Linux on physical CPU 0x0 Linux version 4.4.115+ (andy@YA-T470P) (gcc version 4.8.4 (GCC) ) #215 PREEMPT Wed Mar 6 09:43:03 CST 2019 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f CPU: VIVT data cache, VIVT instruction cache Machine: NUC980 Memory policy: Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=64M PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 55828K/65536K available (3306K kernel code, 269K rwdata, 1068K rodata, 4200K init, 209K bss, 9708K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc044df4c (4376 kB) .init : 0xc044e000 - 0xc0868000 (4200 kB) .data : 0xc0868000 - 0xc08ab6c0 ( 270 kB) .bss : 0xc08ab6c0 - 0xc08dfe84 ( 210 kB) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Preemptible hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. NR_IRQS:545 clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns Console: colour dummy device 80x30 console [ttyS0] enabled Calibrating delay loop... 148.88 BogoMIPS (lpj=744448) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok Setting up static identity map for 0x8400 - 0x843c devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 256 (order: -1, 3072 bytes) pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource nuc980-timer5 NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 NetWinder Floating Point Emulator V0.97 (double precision) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered (default) nuc980_gpio_probe - pdev = nuc980-gpio nuc980_dma_probe - pdev = nuc980-dma nuc980-dma nuc980-dma: NUC980 DMA ready nuc980-uart.0: ttyS0 at I/O 0x0 (irq = 36, base_baud = 750000) is a NUC980 nuc980-uart.1: ttyS1 at I/O 0x0 (irq = 37, base_baud = 9375000) is a NUC980 brd: module loaded RX nuc980_qspi0_probe: dma0chan0 module removed TX nuc980_qspi0_probe: dma0chan1 module removed RX nuc980_spi0_probe: dma0chan2 module removed TX nuc980_spi0_probe: dma0chan3 module removed m25p80 spi1.0: unrecognized JEDEC id bytes: ff, ff, ff m25p80: probe of spi1.0 failed with error -2 libphy: nuc980_rmii0: probed ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver nuc980-ehci nuc980-ehci: Nuvoton NUC980 EHCI Host Controller nuc980-ehci nuc980-ehci: new USB bus registered, assigned bus number 1 nuc980-ehci nuc980-ehci: irq 23, io mem 0xb0015000 nuc980-ehci nuc980-ehci: USB 2.0 started, EHCI 0.95 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver usb_hcd_nuc980_probe, id = 0, name: nuc980-ohci.0 nuc980-ohci nuc980-ohci.0: Nuvoton NUC980 OHCI Host Controller nuc980-ohci nuc980-ohci.0: new USB bus registered, assigned bus number 2 nuc980-ohci nuc980-ohci.0: irq 24, io mem 0xb0017000 hub 2-0:1.0: USB hub found hub 2-0:1.0: 8 ports detected usb_hcd_nuc980_probe, id = 1, name: nuc980-ohci.1 usb_hcd_nuc980_probe, id = 2, name: nuc980-ohci.2 usb_hcd_nuc980_probe, id = 3, name: nuc980-ohci.3 usb_hcd_nuc980_probe, id = 4, name: nuc980-ohci.4 usb_hcd_nuc980_probe, id = 5, name: nuc980-ohci.5 usb_hcd_nuc980_probe, id = 6, name: nuc980-ohci.6 usbcore: registered new interface driver usb-storage nuc980-i2c0 nuc980-i2c0: i2c-0: nuc980 I2C adapter nuc980-i2c2 nuc980-i2c2: i2c-2: nuc980 I2C adapter nuc980_sd_probe - pdev = nuc980-sdh usbcore: registered new interface driver usbhid usbhid: USB HID core driver nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa nand: Winbond W25N01GV 1G 3.3V nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 nand: WARNING: spi0.0: the ECC used on your system is too weak compared to the one required by the NAND chip Scanning device for bad blocks random: nonblocking pool is initialized Creating 3 MTD partitions on "spi0.0": 0x000000000000-0x000000200000 : "u-boot" 0x000000200000-0x000001600000 : "Kernel" 0x000001600000-0x000008000000 : "user" nuc980-nadc: nuc980 Normal ADC adapter nuc980-audio nuc980-audio: nau8822-hifi <-> nuc980-audio-i2s mapping ok NET: Registered protocol family 17 ALSA device list: #0: nuc980_IIS Freeing unused kernel memory: 4200K BusyBox v1.22.1 (2016-02-03 14:11:04 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ # ``` 下面进入正题NK-980IOT测评之ESP8266 AT测试,首先在官网下载IDE:RT-Thread Studio,以前用env编译RT-Thread,类似于Linux,需要记住很多指令才可以玩转。Studio第一次用,图形化配置,感觉更加方便。 建立基于NK-980IOT 通用项目: ![A4.jpg](https://oss-club.rt-thread.org/uploads/20220325/1f68bf8c40b53bdc75971ac532096f60.jpg) 通过左侧RT-Thread settings配置软件包,RTT软件包是RTT生态重要组成,避免重复造轮子,拿来就可以用。 ![A5.jpg](https://oss-club.rt-thread.org/uploads/20220325/5ac2004c78e6d79869db46b3ec222520.jpg) 直接调用相关的硬件配置,串口AT WiFiESP8266模组软件包,再也不用考虑烧脑的串口状态机了。 ![5.jpg](https://oss-club.rt-thread.org/uploads/20220325/fa40cbd162a6df7476eca25a2d795620.jpg) ![6.jpg](https://oss-club.rt-thread.org/uploads/20220325/2c4ddd7a7590e175ae71fff34affd32e.jpg) ![7.jpg](https://oss-club.rt-thread.org/uploads/20220325/883d5340f17e3e21bf6e10b167d91ebc.jpg.webp) 配置完成关闭RT-Thread settings,软件自动更新配置。然后debug,会在RT-ThreadStudio\workspace\**\Debug生成Bin文件,可以用JLINK或者NuWriter.exe烧录到开发板。 这里需要几条ESP8266AT指令 ``` AT+RST 复位模组 AT+GMR 查询版本信息 AT+CWMODE=1 开启模组透传 AT+CWJAP=“WIFI名称”,“WIFI密码” 模组作为STA模式连接wifi AT+CIFSR 查看分配的IP地址 AT+CIPSTART=“TCP”,“xxxxx”,1883 使用TCP方式连接服务器 AT+CIPMODE=1 开启透传 AT+CIPSEND 发送数据 ``` 需要几条指令测试: ![9.jpg](https://oss-club.rt-thread.org/uploads/20220325/9d8937a152e2d185d0c2d34b41d152bc.jpg) ![10.jpg](https://oss-club.rt-thread.org/uploads/20220325/d02e2911f2b7d425318599aef3c340f8.jpg) ![11.jpg](https://oss-club.rt-thread.org/uploads/20220325/699ed241874929a38a3afcefbb86e049.jpg) ![12.jpg](https://oss-club.rt-thread.org/uploads/20220325/f856caf7b97d07616e4fd506dfa5f143.jpg) ![13.jpg](https://oss-club.rt-thread.org/uploads/20220325/c51bca3700ca35dbd3cbe98129668aa7.jpg) 通过测试OK,能够ping通,有时间再测试MQTT上云测试。 视频:[视频](https://www.bilibili.com/video/BV1EY4y1s71N?share_medium=android&share_plat=android&share_session_id=74ea5c01-8ce8-4e17-9701-1dc747c804ca&share_source=WEIXIN&share_tag=s_i×tamp=1648222782&unique_k=pIniy13) ![微信图片_20220325233523.jpg](https://oss-club.rt-thread.org/uploads/20220325/b212b477a986aefd9bb704c8f8756cc1.jpg.webp) 程序见附件:[wifi.rar](https://oss-club.rt-thread.org)
1
条评论
默认排序
按发布时间排序
登录
注册新账号
关于作者
abner
这家伙很懒,什么也没写!
文章
7
回答
0
被采纳
0
关注TA
发私信
相关文章
1
关于ESP8266的配网
2
at device跑esp8266, 总是提示缓冲区不够,应该怎么解决?
3
at device跑esp8266提示连接超时
4
ESP8266 连接问题
5
AT组件配网问题 ESP8266微信配网
6
请问一下esp8266能在at指令组件下支持ap模式吗
7
esp8266用paho-mqtt出现溢出
8
ONENET+esp8266连接报错
9
ESP8266通过smartconfig配网?
10
esp8266 WiFi名设成中文后 打不开RT_Thread Settings
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
freemodbus
PWM
flash
cubemx
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
中断
编译报错
Debug
SFUD
rt_mq_消息队列_msg_queue
msh
keil_MDK
ulog
C++_cpp
MicroPython
本月问答贡献
a1012112796
10
个答案
1
次被采纳
踩姑娘的小蘑菇
4
个答案
1
次被采纳
红枫
4
个答案
1
次被采纳
张世争
4
个答案
1
次被采纳
Ryan_CW
4
个答案
1
次被采纳
本月文章贡献
catcatbing
3
篇文章
5
次点赞
YZRD
2
篇文章
5
次点赞
qq1078249029
2
篇文章
2
次点赞
xnosky
2
篇文章
1
次点赞
Woshizhapuren
1
篇文章
5
次点赞
回到
顶部
发布
问题
投诉
建议
回到
底部