background image

NuMaker-M032BTAI 

 

Apr. 19, 2022 

Page 

33

 of 46 

Rev 1.00 

NUMA

K

E

R

-M0
3

2

B

T

A

I US
E

R M

A

NU

A

L

 

Ma
k

er Nu

-m

be
d

 NUC

47

Us
er Man

ua

 

1

2

3

 

Figure 4-9 Project File Migrate to Version 5 Format 

 

2.  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 dropdown menu in Figure 4-10 does not contain 

“Nuvoton Nu-Link Debugger” item, please 

rework section 4.2. 

 

Summary of Contents for NuMaker M032BTAI

Page 1: ...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 All data and specifications are subject to change without notice For additional inf...

Page 2: ...Power Sources 18 3 4 4 1 8 V Power Sources 18 3 4 5 Power Connectors 18 3 4 6 USB Connectors 19 3 4 7 Power Switches 19 3 4 8 Power Supply Models 20 3 5 Ammeter Connector 24 3 6 Push Buttons 24 3 7 LEDs 25 3 8 HXT Clock Source Selection 25 3 9 Nu Link2 Me 26 3 9 1 VCOM Switches 26 3 9 2 Status LEDs 27 4 QUICK START 28 4 1 Toolchain Supporting 28 4 2 Nuvoton Nu Link Driver Installation 28 4 3 BSP F...

Page 3: ...NuMaker M032BTAI Apr 19 2022 Page 3 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL Maker Nu mbed NUC472 User Manual 5 3 Extension Connectors 43 5 4 PCB Placement 44 6 REVISION HISTORY 45 ...

Page 4: ...T_Peripheral Project Folder Path 32 Figure 4 8 Warning Message of Device not found 32 Figure 4 9 Project File Migrate to Version 5 Format 33 Figure 4 10 Debugger Setting in Options Window 33 Figure 4 11 Programming Setting in Options Window 34 Figure 4 12 Compile and Download the Project 34 Figure 4 13 Keil MDK Debug Mode 35 Figure 4 14 Debug Message on Serial Port Terminal Windows 36 Figure 4 15 ...

Page 5: ...NuMaker M032BTAI Apr 19 2022 Page 5 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL Maker Nu mbed NUC472 User Manual Figure 5 5 Rear Placement 44 ...

Page 6: ...Source 17 Table 3 5 5V Power Sources 17 Table 3 6 3 3 V Power Sources 18 Table 3 7 1 8 V Power Sources 18 Table 3 8 Power Connectors 18 Table 3 9 USB Connectors 19 Table 3 10 Power Switches 19 Table 3 11 Supply External Power through Nu Link2 Me 20 Table 3 12 Supply External Power for M032BTAI Target Board 23 Table 3 13 Ammeter Connector 24 Table 3 14 Push Buttons 24 Table 3 15 LEDs 25 Table 3 16 ...

Page 7: ...monitoring function The M032BTAI target board is based on NuMicro M032BTAIAAN For the development flexibility the M032BTAI target board provides the extension connectors the Arduino UNO compatible headers and the capability of adopting multiple power supplies Furthermore the Nuvoton designed ammeter connector can measure the power consumption instantly which is essential for the prototype evaluati...

Page 8: ...connectors Ammeter connector for measuring the microcontroller s power consumption PCB antenna Microwave coaxial connector with switch for characteristics measurement Flexible board power supply External VDD power connector Arduino UNO compatible extension connector Vin USB FS connector on M032BTAI target board ICE USB connector on Nu Link2 Me On board Nu Link2 Me debugger and programmer Debug thr...

Page 9: ...Coaxial Connector PCB Antenna Figure 3 1 Front View of NuMaker M032BTAI Figure 3 1 shows the main components and connectors from the front side of NuMaker M032BTAI The following lists components and connectors from the front view Target chip M032BTAIAAN U1 USB Full Speed Connector J2 Arduino UNO Compatible Extension Connectors NU1 NU2 NU3 NU4 NU5 M032BT Extension Connectors JP3 JP4 External VDD Po...

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

Page 11: ... pins extension connectors on the NuMaker M032BTAI NU1 NU2 NU3 NU4 and NU5 Arduino UNO compatible pins on the NuMaker M032BTAI Table 3 1 Extension Connectors 3 3 1 Pin Assignment for Extension Connectors The NuMaker M032BTAI provides the M032BTAIAAN onboard and extension connectors JP3 JP4 Figure 3 3 shows the M032BTAIAAN extension connectors JP3 Pin1 Pin34 JP4 Pin35 Pin68 Figure 3 3 M032BTAIAAN E...

Page 12: ... BPWM1_CH2 JP3 15 15 PB 8 ADC0_CH8 USCI1_CLK UART0_RXD UART1_nRTS BPWM1_CH3 JP3 16 16 PB 7 ADC0_CH7 USCI1_DAT0 UART1_TXD BPWM1_CH4 PWM1_BRAKE0 PWM1_CH4 ACMP0_O JP3 17 17 PB 6 ADC0_CH6 USCI1_DAT1 UART1_RXD BPWM1_CH5 PWM1_BRAKE1 PWM1_CH5 INT4 ACMP1_O JP3 18 18 PB 5 ADC0_CH5 ACMP1_N I2C0_SCL UART5_TXD USCI1_CTL0 PWM0_CH0 UART2_TXD TM0 INT0 JP3 19 19 PB 4 ADC0_CH4 ACMP1_P1 I2C0_SDA UART5_RXD USCI1_CTL...

Page 13: ..._CH1 TM1 INT2 JP4 6 40 PA 7 UART0_TXD I2C1_SCL PWM1_CH4 BPWM1_CH2 ACMP0_WLAT TM2 INT1 JP4 7 41 PA 6 UART0_RXD I2C1_SDA PWM1_CH5 BPWM1_CH3 ACMP1_WLAT TM3 INT0 JP4 8 42 VSS JP4 9 43 VDD JP4 10 44 PA 5 QSPI0_MISO1 UART0_nCTS UART0_TXD I2C0_SCL UART5_TXD BPWM0_CH5 PWM0_CH0 JP4 11 45 PA 4 QSPI0_MOSI1 UART0_nRTS UART0_RXD I2C0_SDA UART5_RXD BPWM0_CH4 PWM0_CH1 JP4 12 46 PA 3 QSPI0_SS UART4_TXD I2C0_SMBAL...

Page 14: ...o Function JP4 24 58 RF_I O JP4 25 59 VSS JP4 26 60 RF_VDDPA JP4 27 61 RF_XTAL_IN JP4 28 62 RF_XTAL_OUT JP4 29 63 USB_VBUS JP4 30 64 USB_D JP4 31 65 USB_D JP4 32 66 USB_VDD33_CAP JP4 33 67 RF_AVDD1V2 JP4 34 68 RF_BUCK_FB 69 EPAD VSS Table 3 2 M032BTAIAAN Full pin Extension Connectors and GPIO Function List ...

Page 15: ...7 PWM1_CH4 PA 7 D8 PWM1_CH5 PA 6 D9 PB 15 CS PWM1_CH0 PB 15 D10 USCI0_DAT0 MOSI PWM1_CH2 PB 13 D11 USCI0_DAT1 MISO PWM1_CH1 PB 14 D12 USCI0_CLK CLK PWM1_CH3 PB 12 D13 VSS VSS AVDD VREF I2C0_SDA PC 0 SDA I2C0_SCL PC 1 SCL VIN VSS VSS 5V 3V RST IOREF VDD NC A5 PB 1 ADC0_CH1 I2C1_SCL UART2_TXD A4 PB 0 ADC0_CH0 I2C1_SDA UART2_RXD A3 PB 11 ADC0_CH11 A2 PB 10 ADC0_CH10 A1 PB 9 ADC0_CH9 A0 PB 4 ADC0_CH4 ...

Page 16: ...PE 8 NU3 NU3 1 D0 PB 2 NU2 NU2 6 A5 PB 1 NU3 2 D1 PB 3 NU2 5 A4 PB 0 NU3 3 D2 PA 5 NU2 4 A3 PB 11 NU3 4 D3 PA 4 NU2 3 A2 PB 10 NU3 5 D4 PA 3 NU2 2 A1 PB 9 NU3 6 D5 PA 2 NU2 1 A0 PB 4 NU3 7 D6 PC 7 NU1 NU1 8 VIN NU3 8 D7 PC 6 NU1 7 VSS NU4 NU4 1 D8 PA 7 NU1 6 VSS NU4 2 D9 PA 6 NU1 5 5V NU4 3 D10 PB 15 NU1 4 3V NU4 4 D11 PB 13 NU1 3 RST nRESET NU4 5 D12 PB 14 NU1 2 IOREF VDD NU4 6 D13 PB 12 NU1 1 NC...

Page 17: ...d 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_5VCC Table 3 4 Vin Power Source 3 4 2 5 V Power Sources Table 3 5 presents the 5 V power sources Connector Net Name in Schematic Description ICEJ3 USB_HS_VBUS ICE USB connector supplies 5 V power from PC to M032BTAI target board and Nu Link2 Me J2 ...

Page 18: ...P1 converts NU1_5VCC to 3 3 V and supplies 3 3 V to M032BTAI target board Note SW2 2 NU1 3VCC should be switched to ON Table 3 6 3 3 V Power Sources 3 4 4 1 8 V Power Sources Table 3 7 presents the 1 8 V power source Voltage Regular 5V Source Description ICEUP2 USB_HS_VBUS ICEUP2 converts USB_HS_VBUS to 1 8 V and supplies 1 8 V to M032BTAI target board or ICE chip Table 3 7 1 8 V Power Sources 3 4...

Page 19: ...power supply Table 3 9 USB Connectors 3 4 7 Power Switches Table 3 10 presents the power switches Switch Description ICEJPR1 Configures the target chip operating voltage at 1 8 V 3 3 V 5 V Note M032BT operating voltage range is from 1 8 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 SW2 Configures the target chip operating voltage at...

Page 20: ...CE chip operating voltage 3 Switch the SW2 to OFF 4 Connect the external power supply to ICEJ3 Table 3 11 presents all power models when supplying external power through Nu Link2 Me The Nu Link2 Me external power sources are highlighted in yellow Model Target Chip Voltage ICEJ3 ICEJPR1 MCUVCC Selection 1 ICEJPR2 ICEVCC Selection 2 ICE Chip Voltage SW2 Selection J2 Vin JP1 1 1 8 V Connect to PC 1 8...

Page 21: ... 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 Switch the SW2 to OFF 2 Remove the resistor on ICEJPR1 MCUVCC 3 Solder the resistor on ICEJPR2 ICEVCC depending on the ICE chip operating voltage 4 Connect ICEJ3 to PC 5 Connect the external power supply to JP1 To use Vin or J2 as external power supply source...

Page 22: ...9 2022 Page 22 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL NU1 pin8 Vin External VDD Connector JP1 External VSS Connector JP2 Detach Nu Link2 Me USB Power Connector J2 Figure 3 7 Detach the Nu Link2 Me from NuMaker M032BTAI ...

Page 23: ... V Input NU1 5VCC 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 V 9 1 8 V 3 6 V Nu Link2 Me removed OFF DC Input 1 8 V 3 6 V Note 1 The Vin input voltage will be converted by voltage regulator UP2 to 5 V Supplying external power to Vin or J2 can pr...

Page 24: ...he target chip power consumption easily User needs to remove the R16 resistor Table 3 13 Ammeter Connector Remove the R16 Resistor Figure 3 8 Wiring between Ammeter Connector and Ammeter 3 6 Push Buttons Table 3 14 presents the push buttons Component Description ICESW1 Offline program button to start offline ICP programming the target chip SW1 Reset button to reset the target chip Table 3 14 Push ...

Page 25: ... 15 LEDs 3 8 HXT Clock Source Selection If PF 2 and PF 3 are configured as external clock pins or external crystal pins user needs to switch the clock source to external clock or external crystal oscillator by soldering resistors Table 3 16 lists how to switch the clock source of HXT Clock Source Description External Crystal Oscillator X1 C2 and C8 should be soldered and the frequency depends on t...

Page 26: ...he Nu Link2 Me could be detached from the evaluation board and become a stand alone mass production programmer For more information about Nu Link2 Me please refer to Nu Link2 Pro Debugger and Programmer User Manual 3 9 1 VCOM Switches Table 3 17 presents how to set the VCOM function by ICESW2 ICESW2 Pin Function Description 1 TXD On Connect target chip PA 1 UART0_TXD to Nu Link2 Me Off Disconnect ...

Page 27: ... On One Nu Link2 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 a target chip On Any Flash On During offline programming On Flash Offline programming completed On Offline programming completed Auto mode On On Offline programming failed On Flash No...

Page 28: ...hain has been installed KEIL MDK Nuvoton edition M0 M23 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 Keil MDK Please install the Nu Link USB Driver as well at the end of the installation The installation is presented in Figure 4 1 and Figure 4 2 Figure 4 1 Nu Link USB Driver Installation Setup ...

Page 29: ...NuMaker M032BTAI Apr 19 2022 Page 29 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL Maker Nu mbed NUC472 User Manual Figure 4 2 Nu Link USB Driver Installation ...

Page 30: ... Download and unzip the Board Support Package BSP 4 4 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 Figure 4 4 ICE USB Connector ...

Page 31: ...d NUC472 User Manual 3 Find the Nuvoton 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 Figure 4 6 presents the PuTTY session setting Figure 4 6 PuTTY Session Setting ...

Page 32: ...ct Folder Path 4 6 Execute the Project under Toolchains Open and execute the project under the toolchain The section 4 6 1 describes the steps of executing project in Keil MDK 4 6 1 Keil MDK This section provides steps to beginners on how to run a project by using Keil MDK 1 Double click the TRSP_UART_Peripheral uvproj to open the project Figure 4 8 Warning Message of Device not found Note If Figu...

Page 33: ...1 2 3 Figure 4 9 Project File Migrate to Version 5 Format 2 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 dropdown menu in Figure 4 10 does not contain Nuvoton Nu Link Debugger item please rework section 4 2 ...

Page 34: ...mming 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 button to enter debug mode 1 3 2 4 1 Rebuild 3 Download 4 Start Stop Debug 2 Successfully compile Figure 4 12 Compile and Download the Project ...

Page 35: ... shows the debug mode under Keil MDK Click Run 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 step run value monitor etc 2 Stop 3 1 2 1 Run 3 Reset Figure 4 13 Keil MDK Debug Mode ...

Page 36: ...bug Message on Serial Port Terminal Windows 5 User can download and install NuvotonBLE from Google Play Store Android devices or App Store Apple devices Figure 4 15 Search for NuvotonBLE on Google Play Store or App Store 6 Open the NuvotonBLE and turn on Bluetooth in settings of the mobile phone ...

Page 37: ...u mbed NUC472 User Manual iOS Android Figure 4 16 NuvotonBLE Icon Andriod iOS Figure 4 17 Turn on Bluetooth on Mobile Phone 7 After clicking Scan users can see many Bluetooth devices Please click Nuvoton_TRSP_UART to connect 1 3 4 2 Figure 4 18 Connect to Nuvoton_TRSP_UART on Android Phone ...

Page 38: ...ART on iPhone 8 User can type a string in the NuvotonBLE text input field and click the SEND button then the data can be transmitted from the mobile phone to M032BT through BLE and finally sent to the PC through the M032BT UART and displayed on the terminal window 1 2 3 4 Figure 4 20 Transfer String from Android Phone to M032BT ...

Page 39: ...re 4 21 Transfer String from iPhone to M032BT 9 User can type a string in the terminal window and press enter then the data can be transmitted from M032BT to the mobile phone through BLE and finally displayed on the NuvotonBLE main screen 1 2 Type a string and press Enter Figure 4 22 Transfer String from M032BT to Andriod Phone ...

Page 40: ...NuMaker M032BTAI Apr 19 2022 Page 40 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL 1 2 Type a string and press Enter Figure 4 23 Transfer String from M032BT to iPhone ...

Page 41: ...SUSB_ID 48 VSS 49 LDO_CAP 50 VDD 51 PC 14 52 PB 15 53 PB 14 54 PB 13 55 PB 12 56 AVDD 57 VREF 58 AVSS 59 PB 11 60 PB 10 61 PB 9 62 PB 8 63 PB 7 64 SWDH_DAT ICELED ICEVDD SWDH_RST HXT_I ICE_RST ICEVDD HXT_O SWO ISPLED KEY1 ICEC6 1u C0603 GND ICEVDD USB_HS_VBUS USB_HS_CAP USB_HS_REXT GND USB_HS_D USB_HS_D USB_HS_CAP ICE_DAT ICEC2 1u C0603 ICE_CLK SPIM_D3 SPIM_MISO0 SPIM_CS SPIM_MOSI0 SPIM_CLK SPIM_D...

Page 42: ...XD I2C0_SCL PWM1_CH4 ACMP0_O ADC0_ST 54 PC 0 QSPI0_MOSI0 UART2_RXD I2C0_SDA PWM1_CH5 ACMP1_O 55 RF_AVDD1V2 67 RF_AVDD1V2 56 RF_IO 58 RF_XTAL_IN 61 RF_XTAL_OUT 62 USB_VBUS 63 USB_D 64 USB_D 65 USB_VDD33_CAP 66 RF_BUCK_FB 68 VSS 69 J1 HEADER 2 54 5X2 NC 1 2 3 4 5 6 7 8 9 10 PA0_RXD0 PA1_TXD0 ICE RF_VDD PF5_X32_IN PF14 PC13 PA8 PF4_X32_OUT PF2_XT1_OUT PF3_XT1_IN RF_IO PE8_NU5_GPIO PE9 PC7_NU3_D6 P12 ...

Page 43: ...0 3 D11 4 D12 5 D13 6 VSS 7 VREF 8 I2C_SDA 9 I2C_SCL 10 P1 P34 NU2 HEADER 2 54 6X1 f emale A0 1 A1 2 A2 3 A3 4 A4 SDA 5 A5 SCL 6 PA7_NU4_D8 PA2_NU3_D5 PC7_NU3_D6 PC6_NU3_D7 PA6_NU4_D9 Title Size Document Number Rev Date Sheet of NuMaker M032BTAI v1 0 Ext Connector Custom 3 3 Monday September 27 2021 PA4_NU3_D3 PA5_NU3_D2 PA3_NU3_D4 P35 P68 GND TICERST PB9_NU2_A1 PB10_NU2_A2 PB4_NU2_A0 GND PC1_NU4_...

Page 44: ...I Apr 19 2022 Page 44 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL 5 4 PCB Placement Figure 5 4 and Figure 5 5 show the front and rear placement of NuMaker M032BTAI Figure 5 4 Front Placement Figure 5 5 Rear Placement ...

Page 45: ...NuMaker M032BTAI Apr 19 2022 Page 45 of 46 Rev 1 00 NUMAKER M032BTAI USER MANUAL Maker Nu mbed NUC472 User Manual 6 REVISION HISTORY Date Revision Description 2022 04 19 1 00 Initial version ...

Page 46: ... 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 systems designed for vehicular use traffic signal instruments all types of safety devices and other applications intended to support or sustain life All Insecure Usage shall be made at customer s risk and in the event t...

Reviews: