Nuvoton’s NuTool Suite helps you to make initialization of your Nuvoton MCU very easy and fast, thus reducing development efforts and time.
The NuTool Suite currently consists of six tools:
You can download the particular tools directly from Nuvoton’s dedicated Website.
You’ll find current User Manuals for more detailed information in the download folders or program folder (after installation) respectively.
There are different ways of configuring pins using the PinConfigure Tool.
You can also switch pin description to show all the functions of every pin beside the pin:
When you’ve finished your pin configuration you can generate the initialization code. You can then add it to your Keil, IAR or NuEclipse project.
When generating the code you have the option to modularize the code. If you click this option you will get a header file and a source file containing dedicated functions for initialization. If you don’t choose this option you will get a single source file with a single sys_init function writing directly to MFP registers. You can easily figure out the differences by yourself making a test config.
Connect to Target Chip (option for real-time debugging in NuEclipse IDE only)
Print Report (of configuration)
Generate Report (of configuration)
Open User Manual
Before starting configuration of the clocks, you have to:
Also here you have different possibilities of configuring the clocks in the ClockConfigure Tool.
Step 1: Enable/Disable Base Clocks
Step 2: Enable/Disable and configure PLL (if available)
Step 3: Configure HCLK/PCLK
Step 4: Overview of configuration/ making additional configurations
After you’ve done all configurations you’re ready to generate code and use it in your project.
Generate code by clicking on the dedicated icon
Return to default settings (all configurations will be deleted; you can save current config before)
The NuTool CodeGenerator combines the PinConfigure, ClockConfigure and a PeripheralConfigure Tool. With the Peripheral Configure you can make different settings for each peripheral of the certain MCU. E.g. select PWM function, enable diverse PWM channels, set PWM frequency and duty cycle.
After you have done all the configurations you can generate the code and further write your own application. The CodeGenerator generates project templates for Keil, IAR and GCC including all your configurations.
When you open the NuTool CodeGenerator you get directly to the peripheral configure part:
You can choose all peripherals you need for your project. Just check the box and click on each peripheral to configure it
When you’re done making all peripheral configurations you can go on making the pin configurations.
The pin configure integrated in the CodeGenerator is the same as the standalone NuTool PinConfigure. The tool is reminding you which peripheral modules you configure before need pin configuration. Just make your configurations and go on with the ClockConfigure.
The Clock Configure tool integrated here is also the same as the standalone tool found in the NuTool Suite. The ClockConfigure will also remind you which peripheral modules need clock configuration.
When all settings are made you can generate the code. You have to store the code in an folder inside the BSP. Most suitable would be the SampleCode folder. You have also the option to modularize the code here. If you haven’t downloaded the BSP before you can use the “Download BSP” button here to download it from either GitHub, GitLab or Gitee.
NuTool CodeGenerator will create a new folder inside the BSP SampleCode called “NuCodeGen”. Inside this folder you will find your generated projects.
(please make sure to fulfil all system requirements described in the User Manual when using it with your own boards)
When you open the PinView Tool you first have to select the chip series; either Cortex-M or 8051 1T
If no target device is connected yet you’ll get following window showing up
After connecting the device, you get the chip view and the current status of all pins and I/Os.
If you have running the blinking LED project we’ve set up in the other tutorial, you will see PB.14 changing from H to L and from L to H again every second.
If you hover over the respective pin you also see information on the configuration of it
The NuTool PinView can also be used as Plug-in for IAR and Keil IDEs. PinView plug-in is included in the Nu-Link Driver for each IDE.
You can open it after you’ve started a debug session in the IDE.
Keil IDE as an Example
The NuTool Suite contains some very helpful tools to ease MCU initialization. It’s not more than just clicking the required options and generating code, which then can be added to your project. Or just use the generated project templates.
Check out also our other Nuvoton tutorials. You can try using NuTool Suite when going through our Getting Started with NuMaker-M032KI – Part 2 here