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

Visual studio code Makefile problem

I am currently developing a code that will serve as my pulse sensor. I am now trying to write the code in VScode, for it is very appealing to me. The problem now arises with this. I followed the footsteps of this video:

https://www.youtube.com/watch?v=kyPKIRQIacI&lc=UgyVFm1e0LCgT6BEhxZ4AaABAg

In it, he uses the provided Makefile with the make command. I am using the MinGW compiler. It is located in my user path folder. I now seem to have an error regarding the make command itself. When I launch the code I get this error:

Makefile:278: ../../../../../../components/toolchain/gcc/Makefile.common: No such file or directory
make: *** No rule to make target '../../../../../../components/toolchain/gcc/Makefile.common'. Stop.

I need your help fellow electrotehnics. Thank you.

Here is what I wrote:

The main.c:

The c_cpp_properties.json:

The Makefile:

Parents
  • Hi, 

    You need to download and install the ARM GCC toolchain to cross-compile your code for the Nordic chip. It can be downloaded here (download "6-2017-q2 update" if you develop in SDK v.15.2.0). Once you have installed the toolchain I suggest that you try building one of the SDK examples to make sure the toolchain is correctly set-up. 

    I couldn't read the text in the screenshot of your makefile, it's better if you post is as code like @awneil said. 

Reply
  • Hi, 

    You need to download and install the ARM GCC toolchain to cross-compile your code for the Nordic chip. It can be downloaded here (download "6-2017-q2 update" if you develop in SDK v.15.2.0). Once you have installed the toolchain I suggest that you try building one of the SDK examples to make sure the toolchain is correctly set-up. 

    I couldn't read the text in the screenshot of your makefile, it's better if you post is as code like @awneil said. 

Children
Related