Nuvoton NuCodeGen is an AI-powered autonomous coding extension that generates code based on the library files of chip series and utilizes tools to edit files, build projects, retrieve functions or macros from the library files, and fix code errors.
Follow the "Getting Started" section in the "Overview" of the Nuvoton NuMicro Cortex-M Pack. Downloading the NuMicro BSP project, and then open the VSCode folder within it.
Click copilot icon.
Set chat mode to Ask and choose model.
It is recommended to choose the Claude series, e.g. Claude Sonnet 3.5 or Claude Soonet 4.
The Claude Sonnet 3.7 series cannot be used because it is not supported by the VSCode LLM API.
Generate your code:
Use /{peripheral_name}_settings to get configurable settings and an example prompt.
Based on the example prompt, use /{peripheral_name} to generate your code.
Each setting can be adjusted based on your needs.
Without clear configuration settings, the likelihood of generating incorrect configurations is higher.
Click Always Allow to enable automatic execution of command line operations.
Troubleshooting
Shell Integration Unavailable
During the process of building the code, you may encounter a Shell integration unavailable issue.