This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do you add a new file to Segger ?

I am pulling my hair, literally , I just can't get this company ! I am working with 4 IDE's in parallel and none of them has this stupidity .

  1. I right click->add a new file-> C file
  2. same for .h file
  3. In the project main.c file I try to include them : #include "source.h"

"No such file or directory" // he can't find the files that I see right in front of my face

So you have to add them to preprocessor some how right ? So I have a custom folder in my project with my files, how I force Segger to see the whole folder so I can keep adding source files and he can see them?

What are the exact steps to be able to add files to the project ? 4 hours of searching , this is insane.

WHY THEY DID THIS SO HARD ????????????????

  • @Daniel Wang Thanks, your logic is not so fair, first because I said on the question that I did try to add it to the project path, and the full path did NOT work. Second, and most important, I think it has to do with understanding humans, when you understand them, you find it hard to understand why some companies makes things really un-logic. If you make a software, and a user adds a file, you KNOW he wants to use it, and if you know it, you automatically add it for him, this is how it works in EVERY IDE out there. EVERY . So when you understand UI, UX, you can't even believe you have to add files yourself, you think you did something wrong. And if a company like Segger who has probably millions of dollars can't actually understand such basic things, so that makes them old, stupid, and unrelevant for the future. The fact that people accept this just makes them strange, not me.

  • I understand your frustration here. Daniel's solution worked but Segger certainly wasn't thinking ease of use when adding files. Sort of a basic function for an IDE and to make it so obscure is bad. Showing the file in the project explorer including the full path being discoverable yet not finding it when compiling is a UI sin. 

  • me too. 

    You're not the only one who's having a hard time.
    I'm also wasting a lot of time on these settings. So I understand how you feel.

Related