Skip to content

Reference to pgmspace.h starting with core 3.0.0 #3034

Closed

Description

@bittmanv

Hi,

I have project, which i can compile on 2.12.0 core, shared between L412 and G070 MCUs and it include multiple external libraries, including in my case FastCRC library

After update to 3.0.0 core compilation fails with error

/Users/vaclavbittmann/Documents/ArduinoSTM/libraries/FastCRC/src/FastCRC_tables.h:36:10: fatal error: avr/pgmspace.h: No such file or directory 36 | #include <avr/pgmspace.h> | ^~~~~~~~~~~~~~~~ compilation terminated. exit status 1
My environment is
Board selected Generic. L412KBT
Core 3.0.0
Other compilation parameters in default.

MacBookPro M1
Arduino IDE 2.3.6

I haven't checked older cores, but i don't see pgmspace.h in current core.

I have seen multiple libraries, which are using approach to handle pgmspace by similar way as FastCRC
Compilation on core 2.12 works fine without error.

Are we still compatible with Arduino ?

Vaclav

Activity

  1. fpistm commented on Jul 25, 2026

    @fpistm
    Member

    pgmspace.h is available in the cores/arduino/api/deprecated-avr-comp

    To fix this issue a pgmspace.h have to be created in cores/arduino/avr to include the one from cores/arduino/api/deprecated-avr-comp

    It should fix and kept compatibility.

  2. added this to the 3.0.1/3.1.0 milestone on Aug 10, 2026
  3. added
    bug 🐛
    on Aug 10, 2026
  4. added a commit that references this issue on Aug 11, 2026
    be0df90
  5. added a commit that references this issue on Aug 21, 2026
    d4fccb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arduino compatibilitybug 🐛

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions