Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgmspace.h issue since 1.8.3 #142

Open
Polohpi opened this issue Apr 7, 2022 · 5 comments
Open

pgmspace.h issue since 1.8.3 #142

Polohpi opened this issue Apr 7, 2022 · 5 comments

Comments

@Polohpi
Copy link

Polohpi commented Apr 7, 2022

Describe the bug
used in a sketch compiled for cortex M0 chips. Cant compile code. Works with 1.8.2.

Expected behavior
Code cant compile for AMD cortex m0.

Please complete the following information:

  • library version 1.8.3
  • LCD display type : oled 128 64
  • Debian
  • seeeduino xiao
  • arduino ide

Additional context
libraries/ssd1306/src/ssd1306_hal/arduino/io.h:45:14: fatal error: api/deprecated-avr-comp/avr/pgmspace.h: No such file or directory
#include <api/deprecated-avr-comp/avr/pgmspace.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Erreur de compilation pour la carte Seeeduino XIAO

@lexus2k
Copy link
Owner

lexus2k commented Apr 8, 2022

Hi,

please try to comment out the lines in src/ssd1306_hal/arduino/io.h source code:

    #include <avr/pgmspace.h>
    #include <avr/interrupt.h>
    //#elif defined(ARDUINO_ARCH_SAMD)
    //#include <api/deprecated-avr-comp/avr/pgmspace.h>
    //#include <api/deprecated-avr-comp/avr/interrupt.h>
    #else
    #include <avr/pgmspace.h>
    #include <avr/interrupt.h>
    #endif

Let me know what it gives you.

@lexus2k
Copy link
Owner

lexus2k commented Apr 8, 2022

By the way, what's is the version of board support package for SAMD controllers?

@Polohpi
Copy link
Author

Polohpi commented Apr 8, 2022

By the way, what's is the version of board support package for SAMD controllers?

1.8.2

@Polohpi
Copy link
Author

Polohpi commented Apr 8, 2022

Hi,

please try to comment out the lines in src/ssd1306_hal/arduino/io.h source code:

    #include <avr/pgmspace.h>
    #include <avr/interrupt.h>
    //#elif defined(ARDUINO_ARCH_SAMD)
    //#include <api/deprecated-avr-comp/avr/pgmspace.h>
    //#include <api/deprecated-avr-comp/avr/interrupt.h>
    #else
    #include <avr/pgmspace.h>
    #include <avr/interrupt.h>
    #endif

Let me know what it gives you.

It did work ! thanks. What was the problem with those lines ?

@lexus2k
Copy link
Owner

lexus2k commented Apr 9, 2022

Board support package version is not the same thing as Arduino IDE version. Arduino IDE has built-in manager as you know, where you can install support packages for different hardware. Those packages are supported by numerous teams.

Since a developers work on different versions of board support packages, some source files for the same SAMD board may have different location. Probably, you use some old version of the board support packages, because the file <avr/pgmspace.h> was moved to new location in newer releases <api/deprecated-avr-comp/avr/pgmspace.h>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants