Comments (13)
Too less information.. Share compiler version and those those error/warnings with us.
from rfid.
@lcltech Please post your errors otherwise we can do very little to help. But since you mentioned ESP8266 I have a hunch this may be caused by lack of Arduino specific types like int8_t
on the ESP8266. I have used that type in this commit 68f0b68 to make it work on the STM32 but did not anticipate this code is also used on non-Arduino platforms. Please try signed char
instead of int8_t
and let us know.
from rfid.
@lcltech I've made a PR that replaces int8_t
with signed char
here #110 . Please give a try to my branch. Thanks!
from rfid.
The Arduino IDE is a modified version 1.6.1. due to some reset issues with ESP8266.
I think the types may be the way to go.
The amount of compile errors is massive, here is a random section:
C:\Program Files (x86)\Arduino\libraries\rfid-5c67ee3ac33c953750ef8a4f26f6a3a37dd779e8\MFRC522.cpp:1721:44: error: call of overloaded 'println(char* const_)' is ambiguous
Serial.println(GetStatusCodeName(status));
^
C:\Program Files (x86)\Arduino\libraries\rfid-5c67ee3ac33c953750ef8a4f26f6a3a37dd779e8\MFRC522.cpp:1721:44: note: candidates are:
In file included from C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Stream.h:26:0,
from C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/HardwareSerial.h:32,
from C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Arduino.h:212,
from C:\Program Files (x86)\Arduino\libraries\rfid-5c67ee3ac33c953750ef8a4f26f6a3a37dd779e8\MFRC522.cpp:7:
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:79:16: note: size_t Print::println(char)
size_t println(char);
^
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:79:16: note: no known conversion for argument 1 from 'char_ const_' to 'char'
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:80:16: note: size_t Print::println(unsigned char, int)
size_t println(unsigned char, int = DEC);
^
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:80:16: note: no known conversion for argument 1 from 'char_ const_' to 'unsigned char'
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:81:16: note: size_t Print::println(int, int)
size_t println(int, int = DEC);
^
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:81:16: note: no known conversion for argument 1 from 'char_ const_' to 'int'
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:82:16: note: size_t Print::println(unsigned int, int)
size_t println(unsigned int, int = DEC);
^
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:82:16: note: no known conversion for argument 1 from 'char_ const_' to 'unsigned int'
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:83:16: note: size_t Print::println(long int, int)
size_t println(long, int = DEC);
^
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:83:16: note: no known conversion for argument 1 from 'char_ const_' to 'long int'
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:84:16: note: size_t Print::println(long unsigned int, int)
size_t println(unsigned long, int = DEC);
^
C:\Users\LCL\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266/Print.h:84:16: note: no known conversion for argument 1 from 'char_ const*' to 'long unsigned int'
Error compiling.
from rfid.
So all those compile errors happen with master but everything compiles ok with this older branch https://github.com/miguelbalboa/rfid/tree/revert-76-master ?
from rfid.
Yes, revert-76 compiles.
I forgot to mention that I tried your modified version(int8_t -> un. signed), but it did not seem to change any thing.
from rfid.
Ok, I'll remove my branch. Thanks !
from rfid.
@lcltech The compilation issues do not seem to be related to my STM32 fixes, and given that it works ok on revert-76 branch that makes me suspect moving strings to flash may have something to do with it (maybe @Rotzbua could help here). I believe the title of the issue should be updated to something like 'Compilation issues with ESP8266'.
from rfid.
Yes, it seems to bee a problem with the flash. The readme of esp8266 ide version says that there is a support of F("") macro (https://github.com/esp8266/Arduino#progmem).
I think the implementation of print() doesn't support const __FlashStringHelper* properly.
from rfid.
Sorry, I can't reproduce your errors. I tried several examples.
But I didn't used the old releases from https://github.com/esp8266/Arduino .
I uses the new 1.6.4 version from arduino website and installed esp8266 libs with the board manager: https://github.com/esp8266/Arduino#installing-with-boards-manager .
from rfid.
Removing the FlashStringHelper did the trick, now it compiles.
@anistor, I apologize and have changed the title.
@Rotzbua, it will see if I can try the 1.6.4 with out messing up my 1.6.1
The reason I am staying with the 1.6.1 is the auto reset issues with the serial monitor and some ESP8266 boards. Also I am not sure the boards manager def. files works with the Nodemcu v1.0 board that is connected to the RC522 board.
from rfid.
Cheers @lcltech! No harm done, you don't need to apologize.
from rfid.
Well, now it gets a bit strange. I have installed the new 1.6.5 and the rfid master lib. compile error, damn!
Now i tried changing the board til generic esp8266, this board definition is from the same place as @Rotzbua gets it, now it compiles.
So it seem to boil down to a bad board def. This lib just was the first to use F()/Flashstringhelper.
Thanks for your help!
I will take the issue up here instead:
esp8266/Arduino#387
from rfid.
Related Issues (20)
- RST not works HOT 1
- Rfid
- Compile error with Arduino ESP32 release 2.0.8 HOT 5
- WARNING: Communication failure, is the MFRC522 properly connected? what is the problem?
- RC522 Mini Not Work vs RC522 Normal HOT 5
- How to get 5 bytes UID ? HOT 3
- Help i can't get the RC522 module for RFID to work. HOT 4
- Card Avaliable Function
- RFID tag shows lines "-----" instead of actual values
- Example "Minimal-SPI" does not compile HOT 1
- "the ordered comparison of pointer with integer zero" Fix for RP2040 (earlephilhower core > 3.3x)
- Help! How does the uid data is return to the buffer array in PICC_Select
- Help me? ARDUINO RC522
- Missing L1 on Hardware - please help what typ to insert...
- CardReader do not detect new cards
- Unable to read a known version from the rc522. Getting 0x89 HOT 1
- rc522 not working on esp8266 HOT 1
- Can't read payload data
- Change default factory Key
- FIRMWARE ERROR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfid.