NUMAKER M3334KI
Overview
The NuMaker M3334KI is a microcontroller platform with comprehensive peripheral integration specially developed by Nuvoton. The NuMaker-M3334KI is based on the NuMicro® M3331 series MCU with ARM® -Cortex®-M33 core.
Features:
32-bit Arm Cortex®-M33 M3334KIGAE MCU
Core clock up to 180 MHz
512 KB embedded Dual Bank Flash and 320 KB SRAM
USB 2.0 Full-Speed OTG / Device
USB 1.1 Host
Arduino UNO compatible interface
One push-button is for reset
Two LEDs: one is for power indication and the other is for user-defined
On-board NU-Link2 ICE debugger/programmer with SWD connector
More information about the board can be found at the NuMaker M3334KI User Manual [1].
Supported Features
The numaker_m3334ki
board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo
-
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
numaker_m3334ki/m333xxx
target
Type |
Location |
Description |
Compatible |
---|---|---|---|
CPU |
on-chip |
ARM Cortex-M33 CPU1 |
|
Clock control |
on-chip |
Nuvoton NuMaker System Clock Controller (SCC)1 |
|
on-chip |
Nuvoton NuMaker Peripheral Clock Controller (PCC)1 |
||
on-chip |
Generic fixed-rate clock provider1 |
||
Flash controller |
on-chip |
Nuvoton NuMaker Flash Controller1 |
|
GPIO & Headers |
on-chip |
||
Interrupt controller |
on-chip |
ARMv8-M NVIC (Nested Vectored Interrupt Controller)1 |
|
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
MTD |
on-chip |
Flash node1 |
|
on-board |
Fixed partitions of a flash (or other non-volatile storage) memory1 |
||
Pin control |
on-chip |
Pin controller is responsible for controlling pin function selection and pin properties1 |
|
Reset controller |
on-chip |
Nuvoton, Numaker-RESET1 |
|
RTC |
on-chip |
Nuvoton, NuMaker RTC controller1 |
|
Serial controller |
on-chip |
||
SRAM |
on-chip |
Generic on-chip SRAM1 |
|
Timer |
on-chip |
ARMv8-M System Tick1 |
|
Watchdog |
on-chip |
Nuvoton, NuMaker window watchdog timer1 |
The on-board 12-MHz crystal allows the device to run at its maximum operating speed of 180MHz.
More details about the supported peripherals are available in M3331 TRM [1]
Building and Flashing
The numaker_m3334ki
board supports the runners and associated west commands listed below.
flash | debug | rtt | debugserver | attach | |
---|---|---|---|---|---|
openocd | ✅ | ✅ | ✅ | ✅ | ✅ |
pyocd | ✅ (default) | ✅ (default) | ✅ | ✅ | ✅ |
Flashing
Here is an example for the Hello World application.
On board debugger Nu-link2 can emulate UART0 as a virtual COM port over usb, To enable this, set ISW1 DIP switch 1-3 (TXD RXD VOM) to ON. Connect the NuMaker-M3334KI to your host computer using the USB port, then run a serial host program to connect with your board. For example:
$ minicom -D /dev/ttyACM0
# From the root of the zephyr repository
west build -b numaker_m3334ki samples/hello_world
west flash
Debugging
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b numaker_m3334ki samples/hello_world
west debug
Step through the application in your debugger.
VS Code Support
Here is to go through VS Code instead of command line.
Please install Nuvoton NuMicro Cortex-M Pack and follow getting start guide of this pack. This pack is a complete development toolkit for Nuvoton’s NuMicro Cortex-M microcontrollers in Visual Studio Code. URL of this pack is https://marketplace.visualstudio.com/items?itemName=Nuvoton.nuvoton-numicro-cortex-m-pack