-
Notifications
You must be signed in to change notification settings - Fork 51
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
Missing pgmspace.h #54
Comments
Same here
|
I do not have this board to see what is wrong. If you look at the Compare.h header file, it only includes avr/pgmspace.h if the F macro is defined, which is designed to move literal strings into flash instead of ram. This has been true only for AVR chips which support flash and therefore have the avr/pgmspace headerfile (needed to implement movement of data between flash and ram). It seems like, on your platform, the F macro is defined but the avr/pgmspace is not. Does it support flash literals with the F macro; and how do you get the comparison equivalents strcmp_P, memcpy_P? If you can determine the architecture with a proper if defined(...) at the top of Compare.h and include the corresponding header (or define an equivalent) then this can be built. Without the board or dev tools, this is all the help I can give.... |
Hi, thanks for the feedback. The F macro is defined for my board. I tried to include the pgmspace.h from the ESP8266 library into compare.h like this
Even so, I am getting this error:
|
Looking at neu-rah/ArduinoMenu#68, I think you want something like #ifdef ESP8266
#include <esp8266/pgmspace.h>
#define typeof(x) __typeof__(x)
#endif |
FYI, I think I have a solution to the ESP8266 issue in #57 |
@mahyarPourjabbar I don't think it will, as the ESP8266 is not an "Arduino AVR Board". But hey, if they do support it now, awesome. |
[thread summary] ArduinoUnit 2.3.5-alpha now supports flash string de-duplication on AVR and uses RAM on other platforms, along with a number of memory-saving optimizations that do not change the outcome of tests. It also supports ESP 8266 and ESP 32 platforms (along with development platform "en vitro" tests). Please try the latest pre-release and provide feedback on #73 if you are interested in these features. |
I am trying to use this library through platformio on my nodemcuv2. When I try to compile it I got the following error:
The text was updated successfully, but these errors were encountered: