Summary of Contents for Nuvoton NuMicro NuMaker-HMI-M2354
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 based system design. Nuvoton assumes no responsibility for errors or omissions.
M2354KJFAE, the Arduino UNO compatible headers and is able to adopt multiple power supply by external power connectors. Furthermore, the Nuvoton- designed ammeter connector can measure the power consumption instantly, which is essential for the prototype evaluation.
NuMaker-HMI-M2354 NUTFT KIT BOARD HARDWARE CONFIGURATION Front View Arduino compatible Arduino compatible interface connectors interface connectors TFT LCD Panel with TFT LCD Panel with Touch Function Touch Function Five Direction Switch Button Joystick Arduino compatible Arduino compatible interface connectors interface connectors Figure 3-1 Front View of NuTFT Kit Board Figure 3-1 shows the main components and connectors from the front side of NuTFT Kit Board.
NuMaker-HMI-M2354 Rear View shows the main components and connectors from the rear side of NuTFT Kit Board. The following lists components and connectors from the rear view: 16 Mbits (2 MB) SPI Flash * 1 (W25Q16CV) (U1) Arduino UNO Compatible Interface Connectors (NU1, NU2, NU5, NU6 and NU7) Arduino compatible Arduino compatible interface connectors...
NuMaker-HMI-M2354 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors NuTFT Kit Board is equipped with one SPI flash, one LCD panel with touch function, one five direction joystick and two push buttons for developing and verifying some special feature. Besides, the pin arrangement of NuTFT Kit Board is compatible with Arduino UNO.
NuMaker-HMI-M2354 3.3.2 Pin Function Description There is few different between NuMaker pin define and Arduino UNO pin define. The pin define of NU7 of Arduino is same as D11, D12, D13 (SPI function) and there is 1 set of SPI. The pin define of NU7 of NuMaker is another SPI function and there are 2 sets of SPI.
NuMaker-HMI-M2354 NUTFT KIT BOARDHARDWARE CONFIGURATION Front View Figure 4-1 Front View of NuMaker-M2354 Figure 4-1 shows the main components and connectors from the front side of NuMaker-M2354. The following lists components and connectors from the front view: Target Chip: M2354KJFAE (U1) ...
NuMaker-HMI-M2354 Rear View Figure 4-2 shows the main components and connectors from the rear side of NuMaker-M2354. The following lists components and connectors from the rear view: Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – MicroSD Card Slot: T-Flash Slot Figure 4-2 Rear View of NuMaker-M2354 April.
NuMaker-HMI-M2354 Extension Connectors Table 4-1 presents the extension connectors. Connector Description JP6, JP7, JP8 and JP9 Full pins extension connectors on the NuMaker-M2354. NU1, NU2, NU3 and Arduino UNO compatible pins on the NuMaker-M2354. Table 4-1 Extension Connectors 4.3.1 Pin Assignment for Extension Connectors The NuMaker-M2354 provides the M2354 target chip on board and full pins extension connectors (JP6, JP7, JP8 and JP9).
NuMaker-HMI-M2354 Power Supply Configuration The NuMaker-M2354 is able to adopt multiple power supply. External power source includes NU1 Vin (7 V to 12 V), V (depends on target chip operating voltage), and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker-M2354. 4.4.1 VIN Power Source Table 4-4 presents the Vin power source.
NuMaker-HMI-M2354 UP1 converts NU1_5VCC to 3.3 V and supplies 3.3 V to M2354 target board. NU1_5VCC Note: SW4.1(NU1 3VCC) should be switched to ON. Table 4-6 3.3 V Power Sources 4.4.4 1.8V Power Sources Table 4-7 presents the 1.8 V power source. Voltage Regular 5V Source Comment...
NuMaker-HMI-M2354 Configures the target chip operating voltage at 1.8 V / 3.3 V / 5 V. ICEJPR1 Note: M2354 operating voltage range is from 1.7 V to 3.6 V. Do not switch ICEJPR1 (MCUVCC) to 5 V. ICEJPR2 Configures the ICE chip operating voltage at 1.8 V / 3.3 V. SW4_PowerSelect Configures the target chip power source from ICE or NU1_3VCC.
NuMaker-HMI-M2354 0 Ω should be soldered between ICEJPR1’s MCUVCC and 1.8 V / 3.3 V / 5 V. 0 Ω should be soldered between ICEJPR2’s ICEVCC and 1.8 V / 3.3 V. Table 4-11 Supply External Power through Nu-Link2-Me External Power Supply through M2354 target board to Target Chip The external power supply sources on M2354 target board are shown in Figure 4-6.
NuMaker-HMI-M2354 To use JP13/JP14/JP15 as external power supply source with Nu-Link2-Me separated from NuMaker- M2354, please follow the steps below: 1. Switch the SW4 to OFF. 2. Separate the Nu-Link2-Me from NuMaker-M2354. 3. Connect the external power supply to JP13. Figure 4-7 Separate the Nu-Link2-Me from NuMaker-M2354 Table 4-12 presents all power models when supplying external power through the M2354 target board.
NuMaker-HMI-M2354 External Reference Voltage Connector Table 4-14 presents the external reference voltage connector. Connector Comment VREF1 is used to easily connect to the external reference voltage pin of VREF1 the target chip. Remove the L11 ferrite bead before using it. Table 4-13 External Reference Voltage Connector Ammeter Connector Table 4-14 presents the ammeter connector.
NuMaker-HMI-M2354 SWD / ETM interface The ETM is a debug interface that enables reconstruction of program execution. It provides instruction and data tracing of a processor. The traced data can be used to capture events leading to a breakpoint, or used for code coverage statistics or execution information. ETM1: SWD / ETM interface connector with 20 pins on the NuMakerM2354 board.
NuMaker-HMI-M2354 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. Besides, the programming status can be shown on the built-in LEDs.
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-HMI-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 5-3 Open VCOM Function 2. Connect the ICE USB connector shown in Figure 5-4 to the PC USB port through a USB cable. Figure 5-4 ICE USB Connector 3.
NuMaker-HMI-M2354 4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 5-6 presents the PuTTY session setting. Figure 5-6 PuTTY Session Setting April. 15, 2022 Page 37 of 63 Rev 1.00...
1. Double click the “Blinky.uvprojx” to open the project. 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 5-8 and Figure 5-9. Note: If the dropdown menu in Figure 5-8 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 5.2.
NuMaker-HMI-M2354 Figure 5-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 5-10 Compile and Download the Project April.
NuMaker-HMI-M2354 4. Figure 5-11 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 5-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-HMI-M2354 5.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 5-13. Note: If the toolbar does not contain “Nu-Link”...
NuMaker-HMI-M2354 4. Figure 5-15 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 5-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-HMI-M2354 5.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-HMI-M2354 settings are the same as settings in Figure 5-20. Figure 5-19 Build Project Figure 5-20 Project Properties Settings 4. Click the “Blinky” project and build the project. April. 15, 2022 Page 44 of 63 Rev 1.00...
NuMaker-HMI-M2354 Figure 5-21 Build Project 5. After the project is built, click the “Blinky” project and set the “Debug Configuration” as shown in Figure 5-22. Follow the settings presented in Figure 5-23, Figure 5-24 and Figure 5-25 to enter debug mode. Figure 5-22 Open Debug Configuration April.
NuMaker-HMI-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 5-23 Main Tab Configuration Figure 5-24 Debugger Tab Configuration April.
NuMaker-HMI-M2354 Note 1: Please follow the settings highlighted in green triangles and configure other settings depending on the needs. Figure 5-25 Startup Tab Configuration April. 15, 2022 Page 47 of 63 Rev 1.00...
NuMaker-HMI-M2354 6. Figure 5-26 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 5-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-HMI-M2354 EMWIN GUI LIBRARY PACKAGE QUICK START emWin GUI Library Package Download Download and unzip the emWin GUI Library Package Board Support Package (BSP). Find the M2354 emWin Quick Start Guide The “M2354 emWin Quick Start Guide.pdf” can be found under the emWin GUI library package folder as shown in ...
NuMaker-HMI-M2354 PCB Placement Figure 7-2 and Figure 7-3 show the front and rear placement of NuTFT Kit Board. Figure 7-2 Front Placement Figure 7-3 Rear Placement April. 15, 2022 Page 51 of 63 Rev 1.00...
NuMaker-HMI-M2354 NUMAKER-M2354 SCHEMATICS Nu-Link2-Me Figure 8-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-HMI-M2354 REVISION HISTORY Date Revision Description 2022.04.15 1.00 Initially issued. April. 15, 2022 Page 62 of 63 Rev 1.00...
Page 63
NuMaker-HMI-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 NuMicro NuMaker-HMI-M2354 and is the answer not in the manual?
Questions and answers