6 years ago.

How to setup Visual Studio Code

Hi, so I am trying to setup Visual Studio Code to work with the example program downloaded from the Mbed compiler. I installed the C/C++ extension and I also downloaded the GNU Arm Embedded Toolchain. But I still get the message saying "'make.exe' is not recognized as an internal or external command, operable program or batch file." What else should I do? I was also trying to run it with Visual Studio 2017, but that one could not find anything to run and Makefile had no option for Build after right click. I am stuck on this problem for almost two days now, I really need help to set the things up.

Your comment below about the guides not being simple enough - you are correct. The guides for debugging with other tools with the mbed are absolutely horrendous. Have tried a whole bunch of them but none work.

posted by Rory Hand 26 Nov 2018

1 Answer

6 years ago.

Hello Matej,

Is the make program installed on your system?

  • If yes, make sure its path is added to the PATH system variable.
  • If not, try to install one. The MinGW package seems to be a good choice for MS Windows.

Accepted Answer

I have trouble installing it. All the guides are not simple enough for me. I would need some assistance to make it work.

posted by Matej Prvý 17 Nov 2018

Go to https://sourceforge.net/projects/mingw/.

  • Click on the Download button.
  • When asked select Run and then click on the Install button.

Or install MSYS2. Just follow the installation instructions on the site.
Once installed and running issue the following command from the command prompt:

pacman -S make
posted by Zoltan Hudak 17 Nov 2018