Fatal Error: Avr\pgmspace.h: No Such File Or Directory - Visual Micro

Dec 17th, 2025 at 4:30pm (UTC)

Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
  • Board Index
  • Help
  • Search
  • Login
  • Register
To Top of Page
VS Arduino › › › fatal error: avr\pgmspace.h: No such file or directory
‹ Previous Topic | Next Topic ›
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic fatal error: avr\pgmspace.h: No such file or directory (Read 13404 times)
mlaz Newbies *Offline Posts: 4 Joined: Oct 30th, 2016 fatal error: avr\pgmspace.h: No such file or directory Oct 30th, 2016 at 7:36am Print Post
I', hitting this error when trying to compile Adafruit's example code for their "bunny" demo using their BNO055 IMU. I get this error whether I'm trying to build for the Node MCU 1.0 board or the Adafruit Huzzah board. My google search has only turned up https://github.com/esp8266/Arduino/issues/956 but there is much there I don't understand. How did the original poster turn on the detailed output? How can I find out and change my core include paths? This issue was reported nearly a year ago, and I see there have been multiple releases since then. I installed Visual Micro last week so should this issue be fixed? How do I find out what is actually going on and resolve the issue?
« Last Edit: Oct 30th, 2016 at 7:36am by mlaz »
Back to top IP Logged
Tim@Visual Micro Administrator *****Offline Posts: 12203 Location: United Kingdom Joined: Apr 10th, 2010 Re: fatal error: avr\pgmspace.h: No such file or directory Reply #1 - Oct 30th, 2016 at 3:38pm Print Post
Thanks for the post It's the vMicro>Compiler>Verbose option that gives the detailed output. Please also switch on vMicro>Compiler>Show build properties Then attach the output as a .txt to a post here or email to info[at]visualmicro.com To test for the same error in the post you linked grab the arduino ide .zip from arduino.cc downloads page and unpack into a new clean folder on your pc. Then in the Visual Micro Ide locations window set the arduino ide location to the clean install. Thanks
Back to top WWWFacebookTwitterYouTube IP Logged
mlaz Newbies *Offline Posts: 4 Joined: Oct 30th, 2016 Re: fatal error: avr\pgmspace.h: No such file or directory Reply #2 - Oct 30th, 2016 at 6:12pm Print Post
Thanks for the fast response! Here is the output when using the IDE directory the Arduino installer set up. See the next post for the text file for the results when using a clean version of the IDE.
Please Register or Login to the Forum to see File Attachments
Back to top IP Logged
mlaz Newbies *Offline Posts: 4 Joined: Oct 30th, 2016 Re: fatal error: avr\pgmspace.h: No such file or directory Reply #3 - Oct 30th, 2016 at 6:16pm Print Post
For this run, I downloaded the zip from Arduino.cc as instructed, unzipped to a test directory, and pointed Visual Micro to is in the configuration manager via the drop down that allows me to select the Arduino IDE version.
Please Register or Login to the Forum to see File Attachments
Back to top IP Logged
Tim@Visual Micro Administrator *****Offline Posts: 12203 Location: United Kingdom Joined: Apr 10th, 2010 Re: fatal error: avr\pgmspace.h: No such file or directory Reply #4 - Oct 30th, 2016 at 6:46pm Print Post
Thanks for the output. Can you tell me where/how you downloaded the arduino fruit library you are using? which version? The one I have found doesn't have an Adafruit_Sensor.cpp which is where the output says the problem is. https://github.com/adafruit/Adafruit_Sensor Thanks
Back to top WWWFacebookTwitterYouTube IP Logged
mlaz Newbies *Offline Posts: 4 Joined: Oct 30th, 2016 Re: fatal error: avr\pgmspace.h: No such file or directory Reply #5 - Oct 30th, 2016 at 8:04pm Print Post
I installed the library from the Arduino IDE's manage libraries functionality. I updated the library when trying to find the location, and that appears to have resolved the issue. Thanks for the help, I feel foolish now for not checking all my libraries before posting here.
Back to top IP Logged
Tim@Visual Micro Administrator *****Offline Posts: 12203 Location: United Kingdom Joined: Apr 10th, 2010 Re: fatal error: avr\pgmspace.h: No such file or directory Reply #6 - Oct 30th, 2016 at 9:25pm Print Post
Oh great thanks. No problem it's always useful to know because the next user that has the problem might not provide the verbose output. It really helps thanks.
Back to top WWWFacebookTwitterYouTube IP Logged
Page Index Toggle Pages: 1 Send TopicPrint
‹ Previous Topic | Next Topic ›
Forum Jump » Board Index » 10 most recent Posts » 10 most recent Topics Visual Micro Installation & Troubleshooting Usb/Serial/WiFi Debugging Hardware Debugging (GDB, GDB WiFi, GDB Stub) Visual Studio 2019, 2022, 2026 Microchip Studio (Atmel Studio 7) General Board New Releases, Previous Releases and Release Notifications Ideas, Suggestions and Related Tools Project Guidance Other Hardware Other Ideas, Suggestions and Related Tools Project Guidance Other Hardware Visual Studio
« Board Index ‹ Board Top
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2025. All Rights Reserved.

Cookie Consent

This web site uses Google tracking. Please read our privacy policy for more information.

Forum registration is optional but recommended. Email address and other personal information will not be shared with third parties or spamed.

If you register and subsequently would like to have your user details deleted, then please use the Contact Us or send a PM to the forum Admin.

Reject Google Accept All

Tag » Arduino Avr/pgmspace.h No Such File Or Directory