background image

NuMaker-M258KG

 

 

Jan. 15, 2022 

Page 

17

 of 54 

Rev 1.00 

N

UMA

K

E

R

-M

2

58
KG

 US
E

R MA

NUA

L

 

Ma
k

er Nu

-m

be
d

 NUC

47

Us
er Man

ua

 

JP4.9 

73 

LCD_SEG27 

LCD_SEG27 

JP4.10 

74 

LCD_SEG26 

LCD_SEG26 

JP4.24 

88 

LCD_SEG25 

LCD_SEG25 

JP4.25 

89 

LCD_SEG24 

LCD_SEG24 

JP4.26 

90 

LCD_SEG23 

LCD_SEG23 

JP4.27 

91 

LCD_SEG22 

LCD_SEG22 

JP4.28 

92 

LCD_SEG21 

LCD_SEG21 

JP6 

JP6.1 

97 

LCD_SEG16 

LCD_SEG16 

JP6.2 

98 

LCD_SEG15 

LCD_SEG15 

JP6.19 

115 

LCD_SEG14 

LCD_SEG14 

JP6.20 

116 

LCD_SEG13 

LCD_SEG13 

JP6.21 

117 

LCD_SEG12 

LCD_SEG12 

JP6.22 

118 

LCD_SEG11 

LCD_SEG11 

JP6.23 

119 

LCD_SEG10 

LCD_SEG10 

JP6.27 

123 

LCD_SEG9 

LCD_SEG9 

JP6.28 

124 

LCD_SEG8 

LCD_SEG8 

JP6.29 

125 

LCD_SEG7 

LCD_SEG7 

JP6.30 

126 

LCD_SEG6 

LCD_SEG6 

JP6.31 

127 

LCD_SEG5 

LCD_SEG5 

JP6.32 

128 

LCD_SEG4 

LCD_SEG4 

Table 3-3 NuMaker-TNLCDSub_M258K Extension Connectors and M258KG6AE Mapping GPIO List 

 

 

Summary of Contents for NuMaker-M258KG

Page 1: ...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 microcontr...

Page 2: ...er Source 20 3 4 2 5 V Power Sources 20 3 4 3 3 3 V Power Sources 21 3 4 4 1 8 V Power Sources 21 3 4 5 Power Connectors 21 3 4 6 USB Connectors 22 3 4 7 Power Switches 22 3 4 8 Power Supply Models 22...

Page 3: ...MAKER M258KG USER MANUAL M m U 4 6 1 Keil MDK 36 4 6 2 IAR EWARM 40 4 6 3 NuEclipse 41 5 NUMAKER M258KG SCHEMATICS 48 5 1 Nu Link2 Me 48 5 2 M258KG Target Board 49 5 3 Extension Connectors 50 5 4 Touc...

Page 4: ...CE USB Connector 34 Figure 4 5 Device Manger 35 Figure 4 6 PuTTY Session Setting 35 Figure 4 7 Template Project Folder Path 36 Figure 4 8 Warning Message of Device not found 36 Figure 4 9 Project File...

Page 5: ...tion 46 Figure 4 28 NuEclipse Debug Mode 47 Figure 4 29 Debug Message on Serial Port Terminal Windows 47 Figure 5 1 Nu Link2 Me Circuit 48 Figure 5 2 M258KG Target Board Circuit 49 Figure 5 3 Extensio...

Page 6: ...5 V Power Sources 20 Table 3 7 3 3 V Power Sources 21 Table 3 8 1 8 V Power Sources 21 Table 3 9 Power Connectors 21 Table 3 10 USB Connectors 22 Table 3 11 Power Switches 22 Table 3 12 Supply Extern...

Page 7: ...n 8 x 40 HTN LCD panel for Human Machine Interface application For the development flexibility the M258KG target board provides the extension connectors the Arduino UNO compatible headers and the capa...

Page 8: ...microcontroller s power consumption Flexible board power supply External VDD power connector Arduino UNO compatible extension connector Vin USB FS connector on M258KG target board ICE USB connector on...

Page 9: ...ng Figure 3 1 Front View of NuMaker M258KG Figure 3 1 shows the main components and connectors from the front side of NuMaker M258KG The following lists components and connectors from the front view T...

Page 10: ...2 Rear View Figure 3 2 shows the main components and connectors from the rear side of NuMaker M258KG The following lists components and connectors from the rear view Nu Link2 Me MCUVCC Power Switch IC...

Page 11: ...s on the NuMaker M258KG NU1 NU2 NU3 and NU4 Arduino UNO compatible pins on the NuMaker M258KG Table 3 1 Extension Connectors 3 3 1 Pin Assignment for Extension Connectors The NuMaker M258KG provides t...

Page 12: ...8 8 PC 9 LCD_SEG2 UART3_RXD JP3 9 9 PB 1 EADC0_CH1 LCD_SEG1 SPI1_I2SMCLK UART2_TXD I2C1_SCL JP3 10 10 PB 0 EADC0_CH0 LCD_SEG0 UART2_RXD SPI0_I2SMCLK I2C1_SDA JP3 11 11 VSS JP3 12 12 VDD JP3 13 13 PA 1...

Page 13: ...2C1_SMBSUS BPWM1_CH1 TM1 INT2 JP5 18 50 PA 7 SPI1_CLK LCD_SEG37 TK_TK19 UART0_TXD I2C1_SCL BPWM1_CH2 ACMP0_WLAT TM 2 INT1 JP5 19 51 PA 6 SPI1_SS LCD_SEG36 TK_TK20 UART0_RXD I2C1_SDA BPWM1_CH3 ACMP1_WL...

Page 14: ...15 79 NC JP4 16 80 NC JP4 17 81 NC JP4 18 82 NC JP4 19 83 NC JP4 20 84 PD 7 UART1_TXD I2C0_SCL USCI1_CLK TK_TK13 SPI1_MISO JP4 21 85 PD 6 UART1_RXD I2C0_SDA USCI1_DAT1 TK_TK14 SPI1_MOSI JP4 22 86 PD...

Page 15: ...118 PB 13 EADC0_CH13 DAC1_OUT ACMP0_P3 ACMP1_P3 SPI0_MISO USCI0_DAT0 UART0_TXD UART3_nRTS LCD_SEG11 TM2_EXT JP6 23 119 PB 12 EADC0_CH12 DAC0_OUT ACMP0_P2 ACMP1_P2 SPI0_MOSI USCI0_CLK UART0_RXD UART3_...

Page 16: ..._SEG2 LCD_SEG2 JP3 9 9 LCD_SEG1 LCD_SEG1 JP3 10 10 LCD_SEG0 LCD_SEG0 JP3 19 19 LCD_COM4 LCD_COM4 JP3 20 20 LCD_COM5 LCD_COM5 JP5 JP5 9 41 LCD_SEG20 LCD_SEG20 JP5 10 42 LCD_SEG19 LCD_SEG19 JP5 11 43 LC...

Page 17: ...D_SEG21 JP6 JP6 1 97 LCD_SEG16 LCD_SEG16 JP6 2 98 LCD_SEG15 LCD_SEG15 JP6 19 115 LCD_SEG14 LCD_SEG14 JP6 20 116 LCD_SEG13 LCD_SEG13 JP6 21 117 LCD_SEG12 LCD_SEG12 JP6 22 118 LCD_SEG11 LCD_SEG11 JP6 23...

Page 18: ...PA 5 D8 BPWM0_CH4 PA 4 D9 SPI0_SS BPWM0_CH3 PA 3 D10 SPI0_MOSI BPWM0_CH0 PA 0 D11 SPI0_MISO BPWM0_CH1 PA 1 D12 SPI0_CLK BPWM0_CH2 PA 2 D13 VSS VSS VREF VREF I2C0_SDA PC 0 SDA I2C0_SCL PC 1 SCL UART1_...

Page 19: ...A4 PB 0 NU3 3 D2 PC 4 NU2 4 A3 PB 4 NU3 4 D3 PC 5 NU2 3 A2 PB 5 NU3 5 D4 PC 3 NU2 2 A1 PB 6 NU3 6 D5 PC 2 NU2 1 A0 PB 7 NU3 7 D6 PA 7 NU1 NU1 8 VIN NU3 8 D7 PA 6 NU1 7 VSS NU4 NU4 1 D8 PA 5 NU1 6 VSS...

Page 20: ...n Schematic Description NU1 pin8 NU1_VIN Board external power source with voltage range from 7 V to 12 V The voltage regulator UP2 converts the NU1 pin8 input voltage to 5 V and supplies it to NU1_5VC...

Page 21: ...C UP1 converts NU1_5VCC to 3 3 V and supplies 3 3 V to M258KG target board Note SW2 2 NU1 3VCC should be switched to ON Table 3 7 3 3 V Power Sources 3 4 4 1 8 V Power Sources Table 3 8 presents the 1...

Page 22: ...JPR1 Configures the target chip operating voltage at 1 8 V 3 3 V 5 V ICEJPR2 Configures the ICE chip operating voltage at 1 8 V 3 3 V SW2 Configures the target chip operating voltage at 3 3 V 5 V Tabl...

Page 23: ...ote 1 0 should be soldered between ICEJPR1 s MCUVCC and 1 8 V 3 3 V 5 V 2 0 should be soldered between ICEJPR2 s ICEVCC and 1 8 V 3 3 V 3 Unused Table 3 12 Supply External Power through Nu Link2 Me Ex...

Page 24: ...M258KG please follow the steps below Switch the SW2 depending on the target chip operating voltage Detach the Nu Link2 Me from NuMaker M258KG Connect the external power supply to Vin or J2 To use JP1...

Page 25: ...C 5 V output Remove resistor 3 3 V 3 3 V 7 5 V Connect to PC NU1 5VCC 5 V output Remove resistor 3 3 V 3 3 V 8 1 8 V 3 6 V Connect to PC OFF DC Input 1 8 V 3 6 V Remove resistor 1 8 V 3 3 V 1 8 V 3 3...

Page 26: ...presents the external battery voltage connector Connector Description VBAT Connector for user to easily connect to the VBAT pin of the target chip as power source of PF 4 PF 6 RTC and LXT User needs...

Page 27: ...n TK14 Touch key TK16 Shielding electrode TK13 Reference pad Table 3 17 Touch Key 3 9 Push Buttons Table 3 18 presents the push buttons Component Description ICESW1 Offline program button to start off...

Page 28: ...status LED Table 3 19 LEDs 3 11 LCD Panel The LCD on the NuMaker M258KG with 8 x 40 COM SEG can be used to show some information such as time battery status temperature and humidity The part number of...

Page 29: ...1 COM8 T31 8A T8 T9 10A 10A 11A S36 PIN 13 14 15 17 18 19 20 21 22 23 24 COM1 S2 S3 S4 COM1 COM2 S7 S8 S9 COM2 COM3 S12 S13 S14 COM3 COM4 S17 S18 S19 COM4 COM5 S22 S23 S24 COM5 COM6 S27 S28 S29 COM6 C...

Page 30: ...ng through SWD interface The Nu Link2 Me also supports virtual COM port VCOM for printing debug messages on PC Besides the programming status could be shown on the built in LEDs Lastly the Nu Link2 Me...

Page 31: ...Me is selected to connect Flash x 3 Flash x 3 Flash x 3 On ICE online Not connected to a target chip On Flash x 3 Flash x 3 ICE online Connected to a target chip On On ICE online Failed to connect to...

Page 32: ...M NuEclipse GCC for Windows NuEclipse GCC for Linux 4 2 Nuvoton Nu Link Driver Installation Download and install the latest Nuvoton Nu Link Driver Download and install Nu Link_Keil_Driver when using K...

Page 33: ...NuMaker M258KG Jan 15 2022 Page 33 of 54 Rev 1 00 NUMAKER M258KG USER MANUAL M m U Figure 4 2 Nu Link USB Driver Installation...

Page 34: ...rmware Download Download and unzip the Board Support Package BSP 4 4 Hardware Setup Open the virtual COM VCOM function by changing Nu Link2 Me VCOM Switch No 1 and 2 to ON Figure 4 3 Open VCOM Functio...

Page 35: ...M m U Find the Nuvoton Virtual COM Port on the Device Manger as Figure 4 5 Figure 4 5 Device Manger Open a serial port terminal PuTTY for example to print out debug message Set the speed to 115200 Fi...

Page 36: ...th 4 6 Execute the Project under Toolchains Open and execute the project under the toolchain The section 4 6 1 4 6 2 and 4 6 3 describe the steps of executing project in Keil MDK IAR EWARM and NuEclip...

Page 37: ...9 Project File Migrate to Version 5 Format Make sure the debugger is Nuvoton Nu Link Debugger as shown in Figure 4 10 and Figure 4 11 2 1 Figure 4 10 Debugger Setting in Options Window Note If the dro...

Page 38: ...re 4 11 Programming Setting in Options Window Rebuild all target files After successfully compiling the project download code to the Flash memory Click Start Stop Debug Section button to enter debug m...

Page 39: ...and the debug message will be printed out as shown in Figure 4 14 User can debug the project under debug mode by checking source code assembly language peripherals registers and setting breakpoint ste...

Page 40: ...to open the project Make sure the toolbar contains Nu Link item as shown in Figure 4 15 Note If the toolbar does not contain Nu Link item please rework section 4 2 Figure 4 15 IAR EWARM Window Make a...

Page 41: ...ers and setting breakpoint step run value monitor etc 1 2 3 1 Go 3 Reset 2 Break Figure 4 17 IAR EWARM Debug Mode Figure 4 18 Debug Message on Serial Port Terminal Windows 4 6 3 NuEclipse This section...

Page 42: ...Import the Project in NuEclipse 7 6 5 M031_Series_BSP_CMSIS_V3 XX XXX SampleCode Template M031_Series_BSP_CMSIS_V3 XX XXX SampleCode Template GCC 7 Figure 4 20 Import Projects Windows Click the Templa...

Page 43: ...G Jan 15 2022 Page 43 of 54 Rev 1 00 NUMAKER M258KG USER MANUAL M m U 1 2 3 Figure 4 21 Open Project Properties Window 1 2 3 Figure 4 22 Project Properties Settings Click the Template project and buil...

Page 44: ...472 User Manual 1 2 3 Figure 4 23 Build Project After the project is built click the Template project and set the Debug Configuration as shown in Figure 4 24 Follow the settings presented in Figure 4...

Page 45: ...SER MANUAL M m U 4 1 5 2 Note 1 Double click the GDB Nuvoton Nu Link Debugging to create the sub item Note 2 After the project is built the elf file will be shown in C C Application frame Figure 4 25...

Page 46: ...of 54 Rev 1 00 NUMAKER M258KG USER MANUAL Maker Nu mbed NUC472 User Manual 8 10 11 9 1 Note User must follow those settings highlighted in green and configure other settings depending on the needs Fig...

Page 47: ...User can debug the project under debug mode by checking source code assembly language peripherals registers and setting breakpoint step run value monitor etc For more information about how to use NuE...

Page 48: ...l ICEX1 12MHz SMD X3225B 1 XIN 2 GND 4 GND 3 XOUT 3 3V ICEU2 W25Q16JVSSIQ SOP8 5 23 1 27MM CS 1 DO 2 WP 3 GND 4 DI 5 CLK 6 HOLD 7 VCC 8 SPIM_MISO0 SPI FLASH 3 3V ICEC12 0 1u C0603 SN74LV2T45DCUR ICEU4...

Page 49: ...I2C0_SDA USCI1_DAT1 TK_TK14 SPI1_MOSI 85 PD 5 I2C1_SCL USCI1_DAT0 TK_TK15 SPI1_CLK 86 PD 4 USCI0_CTL0 I2C1_SDA USCI1_CTL1 TK_TK16 SPI1_SS 87 PD 3 USCI0_CTL1 SPI0_SS LCD_SEG25 USCI1_CTL0 TK_TK13 UART0...

Page 50: ...7 28 29 30 31 32 PB2_NU3_D0 RX PB3_NU3_D1 TX PB4_NU2_A3 PB5_NU2_A2 PC11 PB1_NU2_A5 TX PC10 PC12 VDD_MCU GND PB0_NU2_A4 RX PC9 PA8_NU5_SS PA9_NU5_MISO PA10_NU5_MOSI PA11_NU5_CLK PF7 PD10 PD11 PD12 PF6...

Page 51: ...Touch Key Circuit Touch Keys offpage TK16 Touch Key reference PCB Touch Keys TK13 TK14 K14 CTKey 0 8x08 NC 1 2 TK13 REF NC 1 Top Layer Shielding SHILEDING1 SHILEDING NC 1 TOP SHILED TK16 P87 TK14 P85...

Page 52: ...ge 52 of 54 Rev 1 00 NUMAKER M258KG USER MANUAL Maker Nu mbed NUC472 User Manual 5 5 PCB Placement Figure 5 5 and Figure 5 6 show the front and rear placement of NuMaker M258KG Figure 5 5 Front Placem...

Page 53: ...NuMaker M258KG Jan 15 2022 Page 53 of 54 Rev 1 00 NUMAKER M258KG USER MANUAL M m U 6 REVISION HISTORY Date Revision Description 2022 1 15 1 00 Initial version...

Page 54: ...sage includes but is not limited to equipment for surgical implementation atomic energy control instruments airplane or spaceship instruments the control or operation of dynamic brake or safety system...

Reviews: