Evaluation board for numicro n9h31 series (55 pages)
Summary of Contents for Nuvoton NuMaker-IoT-M2354U
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 NuMicro microcontroller and microprocessor based system design. Nuvoton assumes no responsibility for errors or omissions.
Page 6
NuMaker-IoT-M2354 List of Tables Table 3-1 Extension Connectors ....................12 Table 3-2 Arduino UNO Extension Connectors and M2354KJFAE Mapping GPIO List ....13 Table 3-3 mikroBUS Mapping with M2354KJFAE ................. 14 Table 3-4 On-board Modules, Sensors, Connectors and M2354KJFAE GPIO Function List ..15 Table 3-5 Vin Power Source ......................
NuMaker-IoT-M2354 OVERVIEW The NuMaker-IoT-M2354 is an evaluation board for Nuvoton NuMicro M2354 microcontrollers. The NuMaker-IoT-M2354 consists of two parts, a M2354 target board and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-IoT-M2354 is designed for secure IoT application, prototype development and validation with power consumption monitoring function.
8COM/40SEG LCD with panel Environmental sensor: BME680 Wi-Fi module LoRa module: NuMaker-IoT-M2354U for 915 MHz – NuMaker-IoT-M2354C for 433 MHz – Ammeter connector for measuring the microcontroller’s power consumption Flexible board power supply: External V power connector –...
NuMaker-IoT-M2354 Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-IoT-M2354. The following lists components and connectors from the rear view: CAN Transceiver (U13) RS485 Transceiver (U14) Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) –...
NuMaker-IoT-M2354 mikroBUS Interface The NuMaker-IoT-M2354 features a MikroElektronika mikroBUS socket which has the smallest number of pins but have maximum expandability. The MikroElektronika mikroBUS consists of communications pins including SPI, UART and I C, one PWM pin, one interrupt pin, one analog input pin, one reset pin and one chip select pin, and have 3.3V and 5V power pin.
NuMaker-IoT-M2354 3.6.2 5V Power Sources Table 3-6 presents the 5 V power sources. Net Name in Connector Comment Schematic ICE USB connector supplies 5 V power from PC to ICEJ3 USB_HS_VBUS M2354 target board and Nu-Link2-Me. USB connector on NuMaker-IoT-M2354 supplies 5 V USB_VBUS power from PC to M2354 target board and Nu-Link2- ICEJ3, J2 or NU1 pin8 supplies 5 V power to NU1...
NuMaker-IoT-M2354 3.6.5 Power Connectors Table 3-9 presents the power connectors. Connector Comment connector on the NuMaker-IoT-M2354. Note: M2354 operating voltage range is from 1.7 V to 3.6 V. JP2, JP10 connector on the NuMaker-IoT-M2354. 5 V connector on the NuMaker-IoT-M2354 for on-board modules. Table 3-9 Power Connectors 3.6.6 USB Connectors...
NuMaker-IoT-M2354 3.6.8 CAN Connectors Table 3-12 presents the CAN connectors. Connector Comment CAN0 and JP7 CAN connector on NuMaker-IoT-M2354 for CAN function. Table 3-12 CAN Connectors 3.6.9 RS485 Connectors Table 3-13 presents the RS485 connectors. Connector Comment RS485 and JP8 RS485 connector on NuMaker-IoT-M2354 for RS485 function.
NuMaker-IoT-M2354 2. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. 3. Connect the external power supply to ICEJ3. Table 3-14 presents all power models when supplying external power through Nu-Link2-Me. The Nu- Link2-Me external power sources are highlighted in yellow. Target ICEJPR1 ICEJPR2...
NuMaker-IoT-M2354 1. Switch the SW2 depending on the target chip operating voltage. 2. Remove the resistor on ICEJPR1 (MCUVCC). 3. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. 4. Connect the external power supply to Vin or J2. To use JP1 as external power supply source, please follow the steps below: 1.
NuMaker-IoT-M2354 The M2354 target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection Selection 7 V ~ 12 V Remove 3.3 V 3.3 V output 3.3 V 3.3 V Input 3VCC...
NuMaker-IoT-M2354 Mode Wi-Fi Module LoRa Module ICEJ3 CON3 Voltage Voltage Connect to 3.3 V 3.3 V Ignore Ignore Ignore Ignore 7 V ~ 12 V 3.3 V 3.3 V Ignore Ignore Ignore Ignore Input Connect to 3.3 V 3.3 V Ignore Ignore Ignore...
NuMaker-IoT-M2354 Remove the R16 Resistor Figure 3-8 Wiring between Ammeter Connector and Ammeter Push-Buttons Table 3-19 presents the push-buttons. Component Comment ICESW1 Off-line program button to start off-line programming the target chip. Reset button to reset the target chip. SW10 Customize button is connected to the target chip PE.10.
NuMaker-IoT-M2354 Wi-Fi Module Update Switch Table 3-21 presents the Wi-Fi module update switch. Switch Comment Turn on the SW5_2 to enable Wi-Fi update. All pins should be the same side. Table 3-21 Wi-Fi Module Update Switch Jul. 16, 2021 Page 24 of 54 Rev 1.00...
NuMaker-IoT-M2354 COM/SEG LCD interface and HTN-LCD Panel The NuMaker-IoT-M2354 equip with a COM/SEG LCD interface which can connect to LCD panel. JLCD_1: 8 COM / 40 SEG LCD connective interface. JLCD_2: LCD Panel (HTN-3.3V) GPIO Pin of GPIO Pin of Function of GPIO Pin Function of GPIO Pin M2354KJFAE...
NuMaker-IoT-M2354 Note: Switch S2.1 to S2.7 to ON when using LCD function. Table 3-22 COM/SEG LCD function of M2354KJFAE Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer. The Nu-Link2-Me supports on- chip debugging, online and off-line ICP programming through SWD interface. The Nu-Link2-Me also supports virtual COM port (VCOM) for printing debug messages on PC.
KEIL MDK Nuvoton edition M0/M23 IAR EWARM NuEclipse (GCC)(Windows) NuEclipse (GCC)(Linux) Nuvoton Nu-Link Driver Installation Download and install the latest Nuvoton Nu-Link Driver. Download and install Nu-Link_Keil_Driver when using Keil MDK. Download and install Nu-Link_IAR_Driver when using IAR EWARM.
NuMaker-IoT-M2354 BSP Firmware Download Download and unzip the Board Support Package (BSP). Hardware Setup 1. Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to ON. Figure 4-3 Open VCOM Function 2. Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through a USB cable. Jul.
NuMaker-IoT-M2354 Figure 4-4 ICE USB Connector 3. Find the “Nu-Link2 Virtual Com Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200.
1. Double click the “Blinky.uvprojx” to open the project. 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 4-8 and Figure 4-9. Note: If the dropdown menu in Figure 4-8 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 4.2.
NuMaker-IoT-M2354 Figure 4-9 Programming Setting in Options Window 3. Rebuild all target files. After successfully compiling the project, download code to the Flash memory. Click “Start/Stop Debug Section” icon to enter debug mode. Figure 4-10 Compile and Download the Project Jul.
NuMaker-IoT-M2354 4. Figure 4-11 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 4-12. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
NuMaker-IoT-M2354 4.6.2 IAR EWARM This section provides steps to beginners on how to run a project by using IAR EWARM. 1. Double click the “Blinky.eww” to open the project. 2. Make sure the toolbar contain “Nu-Link” item as shown in Figure 4-13. Note: If the toolbar does not contain “Nu-Link”...
NuMaker-IoT-M2354 4. Figure 4-15 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 4-16. The project can be debugged under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
NuMaker-IoT-M2354 4.6.3 NuEclipse This section provides steps to beginners on how to run a project by using NuEclipse. Please make sure the filenames and project folder path contain neither invalid character nor space. 1. Double-click NuEclipse.exe to open the toolchain. 2.
NuMaker-IoT-M2354 settings are the same as settings in Figure 4-20. Figure 4-19 Build Project Figure 4-20 Project Properties Settings 4. Click the “Blinky” project and build the project. Jul. 16, 2021 Page 37 of 54 Rev 1.00...
NuMaker-IoT-M2354 Figure 4-21 Build Project 5. After the project is built, click the “Blinky” project and set the “Debug Configuration” as shown in Figure 4-22. Follow the settings presented in Figure 4-23, Figure 4-24 and Figure 4-25 to enter debug mode. Figure 4-22 Open Debug Configuration Jul.
NuMaker-IoT-M2354 Note 1: Double click the “GDB Nuvoton Nu-Link Debugging” to create the subitem. Note 2: After the project is built, the “*.elf” file will be shown in “C/C++ Application” frame. Figure 4-23 Main Tab Configuration Figure 4-24 Debugger Tab Configuration Jul.
NuMaker-IoT-M2354 Note: Please follow the settings highlighted in green triangles and configure other settings depending on the needs. Figure 4-25 Startup Tab Configuration Jul. 16, 2021 Page 40 of 54 Rev 1.00...
NuMaker-IoT-M2354 6. Figure 4-26 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 4-27. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
NuMaker-IoT-M2354 NUMAKER-IOT-M2354 SCHEMATICS Nu-Link2-Me Figure 5-1 shows the Nu-Link2-Me circuit. The Nu-Link2-Me is a debugger and programmer that supports on-line programming and debugging through a SWD interface. 3.3V ICER1 Off-page Connector 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE C0603 C0603...
NuMaker-IoT-M2354 PCB Placement Figure 5-11 and Figure 5-12 show the front and rear placement of NuMaker-IoT-M2354. Figure 5-11 Front Placement Figure 5-12 Rear Placement Jul. 16, 2021 Page 52 of 54 Rev 1.00...
NuMaker-IoT-M2354 REVISION HISTORY Date Revision Description 2021.7.16 1.00 Initial version Jul. 16, 2021 Page 53 of 54 Rev 1.00...
Page 54
NuMaker-IoT-M2354 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”.
Need help?
Do you have a question about the NuMaker-IoT-M2354U and is the answer not in the manual?
Questions and answers