Intro - BuddyKit - Software Installation

April 14, 2025

Are you ready to start programming your BuddyKit 51 Mini with ease? This guide walks you through everything you need — from setting up the development environment to building and flashing your first project using SDCC and VSCode.

📁 Project Overview

We’re using a well-organized project template designed for SDCC (Small Device C Compiler). It includes:

  • Source folder for your .c and .h files
  • Prebuilt libraries for common modules (LCD, EEPROM, RTC, Keypad, etc.)
  • Scripts to build and clean your project
  • Output-ready HEX files

⚙️ Step 1: Install SDCC

🔹 Windows

  1. Download SDCC from the x64, x86
  2. Install and add it to your system’s PATH.
  3. Verify with:

🔹 Linux (Ubuntu/Debian)

🔹 macOS (Using Homebrew)

⚙️ Step 2: Install Nuvoton ISP Tool

You’ll need Nuvoton ISP to flash the HEX file to the BuddyKit 51 Mini.

✏️ Step 3: Install Visual Studio Code (VSCode)

  • Download from the official website.
  • Install and add extensions:
    • C/C++ IntelliSense
    • (Optional) Makefile Tools

🧪 Step 4: Build Your Project

🔹 On Windows

🔹 On Linux & macOS

First time only:

Then run:

After building, your final .hex file will appear in the release/ folder.

🧹 Step 5: Clean the Build Files

🔹 On Windows

🔹 On Linux/macOS

🚀 Flashing to BuddyKit 51 Mini

  1. Connect your BuddyKit to your PC via USB.
  2. Open the Nuvoton ISP software.
  3. Select the correct COM port.
  4. Choose the HEX file from the release/ folder.
  5. Click Start to flash.

✅ Tips & Notes

  • Always save your C source files inside the src/ folder.
  • The libraries support modules like LCD, EEPROM, MPU6050, etc.
  • Make sure sdcc is accessible via your system PATH.

 

📺 Watch the Video Tutorial

🎉 Happy Coding with BuddyKit!

If this guide helped you, feel free to share it and star the GitHub repo!

Leave a reply
UARTClass 1 – Blinking an LED

Leave Your Reply