Rodemfr / MicronetToNMEA

A NMEA 0183 converter for Raymarine's wireless instruments ... and much more !
GNU General Public License v3.0
21 stars 8 forks source link

Visual Studio configuration will not load #75

Closed tvr256 closed 1 year ago

tvr256 commented 1 year ago

I followed the instructions to install Visual Studio Code on Windows.

On first start, the PlatformIO installer hangs with the following error message:

[2/7/2023, 4:31:48 PM] Unable to resolve configuration with compilerPath: "/home/ronan/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc"
[2/7/2023, 4:31:48 PM] Unable to resolve configuration with compilerPath: "/home/ronan/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc"

image

Rodemfr commented 1 year ago

My .vscode directory was included in the commit while it should probably not. It contains config paths which are proper to each machine. I removed it from the repo. If you open again the MicronetToNMEA floder with vscode it should initialize a new config specific to your machine

j-lang commented 1 year ago

Is it necessary to copy the .clang-format file into the project directory?

Rodemfr commented 1 year ago

Yes, if you plan to use clang-format extension to auto-format the code. This is where the extension search for it.

tvr256 commented 1 year ago

Works great now you've removed your .vscode directory. Thanks for the quick fix.

What's the difference between PlatformIO: Build and PlatformIO: Build (teensy40)? They both appear to build the Teensy 4.0 configuration:

image

image

Rodemfr commented 1 year ago

To be honest, I don't know. I suppose that you could have a software that you can compile for several targets and that you could choose which one to compile... not sure.

tvr256 commented 1 year ago

I think I've found the answer - Build will build all environments (unless a default set of environments is defined). Build (teensy40) will just build the teensy40 environment. In our case, we only have one environment defined so the result is the same.

https://docs.platformio.org/en/latest/projectconf/sections/platformio/options/generic/default_envs.html

j-lang commented 1 year ago

yes, and you can add your setting for e.g. teensy 4.1 to the platformio.ini and set all your conditions for your config in the code (boardconfig.h). I have a Teensy 4.1 only wired with breadboard wires for testing and a PCB with a Teensy 4.0 -> just switch to the right environment and build.