Skip to content

An automation script using Makefile & Batchfile for Building to Uploading programs into Vega Processor by CDAC India with Taurus SDK, in Windows Platform

Notifications You must be signed in to change notification settings

nishit0072e/Vega-Firmware-Build-Upload-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

image board

CMake-Makefile-Firmware-Automation πŸš€

This repository provides a streamlined workflow for building C programs using CMake and Ninja to generate ELF files, with automated firmware uploading using Makefile and batch scripts. It eliminates the need for manually executing commands, making the development process faster and more efficient.

πŸ§‘β€πŸ« Tutorial

Tutorial Taurus SDK

Click on the Tutorial badge to learn how to create C/C++ projects for the C-DAC Aries V3 THEJAS32 Microcontroller Board using Taurus SDK developed by @rnayabed (a fork of Vega SDK with further improvements, click on the Taurus badge to view the repository).

πŸ”₯ Features of this automation script

  • βœ… Automated Build System – Uses CMake and Ninja for compiling C programs.
  • βœ… Flexible Firmware Upload – Supports both XMODEM (RAM upload) and Flasher (Flash memory upload).
  • βœ… Makefile-Based Automation – Run make build to compile and make upload to flash firmware interactively.
  • βœ… Batch Script Integration – Ensures seamless execution of upload commands without navigating directories.
  • βœ… Dynamic Project Support – Automatically detects and handles different project folders and ELF files.

πŸš€ Usage

Build the Project

make build

Upload the Firmware (Interactive Selection)

make upload

Before Running make upload change COM PORT number & uploading tools locations upon your system. Given COM Port and locations are my system specific. Upon Running this command A Prompt will be generated for selecting the uplaoding method:

  • 1️⃣ Upload via XMODEM
  • 2️⃣ Upload via FLASHER

Cleaning the Build Directory

make clean

πŸ“‚ Project Structure

β”œβ”€β”€ project-folder/
β”‚   β”œβ”€β”€ build/              # Build directory (Generated)
|   β”œβ”€β”€ <source_file.c>
β”‚   β”œβ”€β”€ CMakeLists.txt      # CMake configuration
β”‚   β”œβ”€β”€ Makefile            # Build & Upload automation
β”‚   β”œβ”€β”€ upload.bat          # Batch script for firmware upload

πŸ’‘ Why Use This?

  • Saves time by automating building & uploading.
  • Works seamlessly on Windows.
  • No need to manually navigate folders or run multiple commands.

About

An automation script using Makefile & Batchfile for Building to Uploading programs into Vega Processor by CDAC India with Taurus SDK, in Windows Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published