vsCode setup check question

Hi Hallam,

Did you install CMake as well?

https://cmake.org/download/

And make sure you enter the path in the je settings.

/rolf

Hi Rolf,
I’m starting to feel like we are old friends :slight_smile:
I have cmake installed:

C:\Users\Halam>cmake -v
CMake Error: The source directory “C:/Users/Halam/-v” does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Is cmake itself the cmake generator? I’m not sure I understand but I thought the generator was the thing that configures cmake for a project, that would be VScode?

Ah, maybe it’s a problem with minGW, I copied the files which from the instructions seemed to be an alternative to running the installer. I’ll check that path.

If I’m right, and the cmake generator should be minGW, then which do I path to:
mingw32-make
or
mingw-get
?

Rolf,
You are entitled to time off over Christmas so dont feel pressured to answer my questions at the weekend.

There are two different programs: CMake and Make.

CMake is able to build complex makefiles which are needed for the make (build) procedure. You should install CMake as well as make (you can use the files in the VScode dual core file and add the bin folder to your path).

Next you should update your settings json file (view >> command palette, type: “settings.json” and add your path:

"cmake.cmakePath": "C:/Program Files/CMake/bin/cmake.exe",

Thanks, but I like to get you up and running. Hope you will with my information above ^^

Thank you Rolf for sticking wiht it.
I had some bad cmake errors which were because of a typing error. I no longer get bad cmake error so I know cmake path is right.
Now I have


and get
image

I need to go do other stuff tonight so no need to reply right away.

Did you install the GNU ARM Toolkit? Does it run from terminal (arm-none-eabi-gcc -v)?

Go to: Command Palette, type kits
Scan for kits and see if the extension finds the GNU ARM toolkit.

If not add the compiler manually: Edit User-Local CMake kits

{
   "name": "GCC for arm-none-eabi 8.2.1",
   "compilers": {
     "C": "/Applications/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi-gcc-8.2.1"
   }
}

Make sure you correct the above path for you installation.

Hi Rolf, happy Sunday.

Does this look right? I’m puzzled by the repetition:

Hi Halam,

The kit is found at least (arm-none-eabi 9.2.1). Does reconfigure / rebuild work?

Hi Rolf,
I get

Executing task: C:\Users\Halam\Documents\VSCodeHelloWorld-master/config/scripts/check_build.bat VSCodeHelloWorld-master <

mingw32-make: CMakeFiles/VSCodeHelloWorld-master.elf.dir/build.make: No such file or directory
mingw32-make: *** No rule to make target ‘CMakeFiles/VSCodeHelloWorld-master.elf.dir/build.make’. Stop.
**** Please fix build errors. ****
The terminal process terminated with exit code: 1

And I dont have any files in my cmake project outline. Where should those come from?

Hi Halam,

Is there a file check_build.bat in your C:\Users\Halam\Documents\VSCodeHelloWorld-master/config/scripts/ folder?

If not, try downloading from our github. We made some changes to that recently.

Hi Rolf,
Happy new year.
I do have check_build.bat
Could I take you up on your offer of a remote desktop session to help get me unstuck?
Thanks and happy new year

Hi Halam, happy new year as well.

Sure, let me know whenever it suits you.

Hi Rolf,
Can we say Monday afternoon, which time zone are you in? I’m in UK: UTC+0

Hi Rolf, how about next Monday 20th Jan?

Hi Halam,

I’ve heard you’ve had contact with Tomislav. Did you got any further?

Hi Rolf,
I’ve been tied up with other things and will be back in touch next week.
Thanks for following up.

Hi,
COuld we do a screen share session where you help me get going tomorrow (21-2-2020) at maybe 2pm CET? Which kind of sctree share works best for you?
Thanks
Halam