Atom: Linter error when using Spakfun boards

Hi. I’m getting error when using Sparkfun Pro Micro 8Mhz board.

Starting with a blank project:

src/main.cpp

#include <Arduino.h>

void setup()
{
}

void main()
{
}

platformio.ini

[env:sparkfun_promicro8]
platform = atmelavr
board = sparkfun_promicro8
framework = arduino

When board is “sparkfun_promicro8”, I get the following linter error in first line of the code:

avr-g++: error: Pro: No such file or directory avr-g++: error: Micro": No such file or directory

and others error in code didn’t verified.

If I change board to “uno”, for instance, I don’t have “avr-g++” error and linter work normally (if code has error).

My confs:

Gnu/Linux Debian 9 (Stretch)
Atom: 1.41.0 x64
PIO Home: 2.3.3
PIO Core: 4.0.3

Regards,

Mario

Solved.

I changed line 25 in ".platformio/platforms/atmelavr/boards/sparkfun_promicro8.json "

from:

    "usb_product": "SparkFun Pro Micro",

to:

    "usb_product": "SparkFunProMicro",

Linter error message seems get a wrong space interpretation.

1 Like

Thanks! Resolved in

1 Like