Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:26:17+00:00 2026-05-27T23:26:17+00:00

I am developing a embedded software that is meant to run on two to

  • 0

I am developing a embedded software that is meant to run on two to three different family of micro controllers. For now we have makefiles that reads the configuration switches and does compilation.

The process is getting more and more tedious for both developers and non developers to stay updated with compile switches and build configurations. I know Linux kernel uses ncurses for generating compile configurations. I am looking for a similar tool, but cross platform. It should run on Windows and Linux. I know this will still not solve the problem but its more appealing to non developers also I can quickly share my .config file or compare it with existing. The configurations will be in specific order and a diff tool here will help.

Can anyone share their experience with similar project maintenance or a reference project (embedded and common code base for multiple micros). Just want to know best practices.

PS : Language used C, 8/16 bit micros, no OS just timer based batch scheduler (baremetal)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:26:18+00:00Added an answer on May 27, 2026 at 11:26 pm

    I have one microcontroller but several projects which get compiled from the same source code. I think my scenario is similar to yours, at least to some extent. My solution was inspired by Linux kernel, as well.

    config.h

    All source code which needs to get access to some configuration parameter simply includes an header file called config.h.

    config.h consists of just one line:

    #include <config/project.h>
    

    project.h

    I have several configuration header files, one per project. A project.h consists of macro definitions with values such as true, false, or constants:

    #define CONFIG_FOO true
    #define CONFIG_BAR false
    #define CONFIG_TIME 100
    

    check.c

    This file checks configuration parameters for correctness:
    – all parameters must be defined, even if not used or meaningful for that project
    – unwanted parameter combinations are signalled
    – parameter values are constrained.

    #if !defined(CONFIG_FOO)
            #error CONFIG_FOO not defined
    #endif
    
    #if !defined(CONFIG_BAR)
            #error CONFIG_BAR not defined
    #endif
    
    #if !defined(CONFIG_TIME)
            #error CONFIG_TIME not defined
    #endif
    
    #if !(CONFIG_FOO ^ CONFIG_BAR)
           #error either CONFIG_FOO or CONFIG_BAR should be se
    #endif
    
    #if CONFIG_TIME > 250
            #error CONFIG_TIME too big
    #endif
    

    Makefile

    By instructing the compiler to output the preprocessor macros, it is possible (with a bit of sed expression) to feed the Makefile with the same parameter values gprovided for a given project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an embedded web server. Now, I have an access validation page
I'm currently developing a widget that can be embedded within a page. However, when
I have a problem linking an application for an embedded target. I'm developing on
I'm developing application with Qt Embedded and run it in linux framebuffer. I need
Recently, i began developing a driver of an embedded device running linux. Until now
My current problem is that I'm developing a embedded system that uses a binary
I'm developing a piece of embedded hardware that requires some data from a PC.
I'm developing a server component that will serve requests for a embedded client, which
I am developing a publishing portal in SharePoint. I have embedded a video in
I am developing embedded system that writes to SD card. As you all know,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.