Cannot compile sketch for SparkFun ProMicro 3.3v

This is my first time compiling a Sketch for the ProMicro.

The first time tried to compile it failed so I deleted the reinstalled the Arduino IDE and board manager package.

I followed the example in https://learn.sparkfun.com/tutorials/pr … troduction. I also used the Hello World sketch included in the tutorial.

Everytime I Verify/Compile I get: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:258:10: fatal error: pins_arduino.h: No such file or directory

The pins_arduino.h is present at \AppData\Local\Arduino15\packages\SparkFun\hardware\avr\1.1.13\variants\promicro\pins_arduino.h but the compiler can’t seem to find it.

output from ide:

Arduino: 1.8.12 (Windows 10), Board: “SparkFun Pro Micro, ATmega32U4 (3.3V, 8 MHz)”

Alternatives for pins_arduino.h:

ResolveLibrary(pins_arduino.h)

→ candidates:

In file included from C:\Users\XXXXXX~1\AppData\Local\Temp\arduino_build_551073\sketch\ProMicro_test.ino.cpp:1:0:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:258:10: fatal error: pins_arduino.h: No such file or directory

#include “pins_arduino.h”

^~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

Error compiling for board SparkFun Pro Micro.

Hello denkiguy,

I tried emulating your operating conditions and I didn’t receive an error during compilation. I would assume this issue is something more on the backend of Arduino and not our code or libraries.

At this point, the support I can offer is limited. However, in the meantime, I would suggest looking into this [Forum Post about the issue.

I hope this helps point you in the right direction.]([SOLVED] Custom hardware - pins_arduino.h: No such file or directory - Libraries - Arduino Forum)

I have tried to install the board support files in a hardware directory contained in the sketch folder. Unfortunately, I get the same error. I have installed many generations of Arduino IDE on my Windows machine including Teensy support. I must conclude that there are some old, leftover files not removed by the uninstall functionality that are confusing the ide.

In a situation like this, the best course of action is to completely re-image the PC and start with a fresh install of everything including Windows. Unfortunately, I am not in a position to re-image my current Windows machine because of other ongoing projects. I will shift my focus to redesign the hardware to use level shifters so my sensors can safely talk to a standard 5 Volt Arduino (which I can still compile).

Denkiguy