Download Print this page

Nuvoton NuDesign NK-980IoT User Manual

Arm926ej-s based 32-bit microprocessor

Advertisement

Quick Links

NK-980IoT
ARM926EJ-S™ Based
32-bit Microprocessor
NuDesign NK-980IoT
User Manual
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NUC980 microprocessor based
system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
Sept. 09, 2019
Page 1 of 19
Rev. 1.02

Advertisement

loading
Need help?

Need help?

Do you have a question about the NuDesign NK-980IoT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuDesign NK-980IoT

  • Page 1 The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of NUC980 microprocessor based system design. Nuvoton assumes no responsibility for errors or omissions.
  • Page 2: Table Of Contents

    NK-980IoT Table of Contents Overview ................... 3 NuDesign NK-980IoT Demo Quick Start ..........4 Install BSP ....................4 Build U-Boot ................... 5 Build AWS IoT Sample ................5 Build Linux Kernel ..................9 Program Kernel and U-Boot to SPI NAND Flash ........... 9 Hardware Setup ..................
  • Page 3: Overview

    Linux OS which provides all IoT protocols you need, such as AWS Client / MQTT / Web Server, etc. User can bring up the NuDesign NK-980IoT board following the instruction of this document and use this platform to develop a plenty of IoTapplications quickly.
  • Page 4: Nudesign Nk-980Iot Demo Quick Start

    NK-980IoT 2 NuDesign NK-980IoT Demo Quick Start Install BSP Linux BSP contains three directories. Content of each directory is listed in the following table: Directory Name Content A tar ball contains cross compiler, root file system, and pre-build tool chain.
  • Page 5: Build U-Boot

    BSP will be installed in /<path you input>/nuc980bsp /home/someone Extract rootfs and pre-build images NUC980 BSP installation complete Build U-Boot User can compile NuDesign NK-980IoT U-Boot code with following steps. Enter U-Boot folder. # cd u-boot-2016.11 Configure U-Boot for NuDesign NK-980IoT demo voard. $ make nuc980_iot_defconfig Compile U-Boot.
  • Page 6 NK-980IoT AWS SDK’s “external_libs/mbedTLS” folder and build mbedTLS library. # git clone https://github.com/ARMmbed/mbedtls.git external_libs/mbedTLS # cd external_libs/mbedTLS # export CC=arm-linux-gcc # export AR=arm-linux-ar # make Enter “samples/linux/subscribe_publish_sample” directory. Edit the “Makefile” to set CC as arm- linux-gcc. CC = arm-linux-gcc Edit “aws_iot_config.h”...
  • Page 7 NK-980IoT Figure 2-1 Obtain AWS_IOT_MQTT_HOST AWS_IOT_ROOT_CA_FILENAME, AWS_IOT_CERTIFICATE_FILENAME, AWS_IOT_PRIVATE_KEY_FILENAME refer to the certificate files obtained while creating a certificate for an IoT thing. Sept. 09, 2019 Page 7 of 19 Rev. 1.02...
  • Page 8 NK-980IoT Figure 2-2 Obtain Certificate Files Edit “subscribe_publish_sample.c” to modify certDirectory[], which refers to the run-time path of your certificate files. Assume that executable “subscribe_publish_sample” will executed in “/usr/bin” folder and certificate files will be put in “/usr/certs” folder, then “certDirectory[]” should be “../certs”.
  • Page 9: Build Linux Kernel

    NK-980IoT https://docs.aws.amazon.com/iot/latest/developerguide/iot-embedded-c-sdk.html. Build Linux Kernel User can build kernel image with following steps. Enter kernel folder. # cd linux-4.4.y Configure kernel for NuDesign NK-980IoT demo board. # make nuc980_iot_defconfig Build kernel. $ make uImage ..Kernel: arch/arm/boot/Image is ready cp arch/arm/boot/Image ../image/980image...
  • Page 10 NK-980IoT B. Set SW1 (Power on Setting) to Boot from USB. Connect HSUSB Device port to PC. SW1.2/SW1.1 Switch State Function ON/ON Boot from USB ON/OFF Boot from SD/eMMC OFF/OFF Boot from SPI Flash Table 2-2 Power On Setting C. Open NuWriter. Select target chip as “NUC980 series” and select DDR parameter is “NUC980DK61Y.ini”.
  • Page 11 NK-980IoT Figure 2-4 Program u-boot-spl E. Program u-boot.bin in “u-boot-2016.11” folder: 1. Input parameter  Image Name : u-boot.bin (refer to section 2.2)  Image Type : Data  Image start offset : 0x100000 2. Click “Program” 3. Wait until the program is completed. Figure 2-5 Program u-boot Sept.
  • Page 12: Hardware Setup

    NK-980IoT F. Program kernel image: 1. Input parameter  Image Name : 980uimage (refer to section 2.4)  Image Type : Data  Image start offset : 0x200000 2. Click “Program” 3. Wait until the program is completed. Figure 2-6 Program Kernel Image Hardware Setup A.
  • Page 13: Boot Linux Kernel

    Memory Interface DC 5V Arduino Interface Figure 2-7 NuDesign NK-980IoT Board Setup Boot Linux Kernel This section describes how to boot up Linux kernel. A. Set SW1 (Power On Setting) to Boot from QSPI 0 Flash (Refer to Table 2-2).
  • Page 14: Connect Wi-Fi Access Point

    NK-980IoT => sf read 0x7FC0 0x200000 0x800000 device 0 offset 0x200000, size 0x800000 SF: 7733248 bytes @ 0x200000 Read: OK => bootm 0x7FC0 ## Booting kernel from Legacy Image at 00007fc0 ... Image Name: Linux-4.4.115+ Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 7573624 Bytes = 7.2 MiB Load Address: 00008000...
  • Page 15: Connect Nb-Iot

    NK-980IoT Then execute wpa_supplicant, the parameter in /etc/wpa_supplicant has to provide SSID, PSK… information of access point. After successfully connected with access point, use DHCP to lease a IP address from DHCP server. # /usr/wpa_supplicant –Dwext –iwlan0 –c/etc/wpa_supplicant.conf –B # udhcpc –i wlan0 Connect NB-IoT To use NB-IoT, user can corss compile dialer application pppd using buildroot by enabling following options:...
  • Page 16 NK-980IoT  --cacert <filename> The filename of the CA certificate to verify the peer.  --cert <filename> The client certificate filename.  --key <filename> The private key filename.  -X POST The type of request (in this case, POST).  -d <data>...
  • Page 17: Conclusion

    NK-980IoT 3 Conclusion Users can easily connect to cloud service following the procedures described in this document, and develop IoT gateway system using NuDesign NK-980IoT system. Sept. 09, 2019 Page 17 of 19 Rev. 1.02...
  • Page 18: Revision History

    NK-980IoT 4 Revision History Version Date Description 1.00 Mar. 20, 2019 Initial release. 1.01 Apr. 22, 2019 Editorial change. 1.02 Spet. 09, 2019 Add LTE setting. Sept. 09, 2019 Page 18 of 19 Rev. 1.02...
  • Page 19: Important Notice

    NK-980IoT Important Notice Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”.