Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,259 Views

Arduino compiling problems mfrc522

Jump to solution

Hello together,

i have a galileo gen2 board /Arduino 1.8.2 /Win10.

Standard Arduino examples and eclipse c++ projects are working without probs.

i found some examples with the mfrc522 lib but its not working for me.

https://github.com/miguelbalboa/rfid/issues/310 Galileo gen2 - incompatible arch · Issue # 310 · miguelbalboa/rfid · GitHub

I don't know what I'm doing wrong - any suggestions for me ?

thx


Accepted Solutions
Highlighted
Community Manager
36 Views

Hi tomatensaft,

 

 

Thank you for contacting us.

 

 

We reviewed the Github link you posted in this discussion and the thread discusses a different architecture between the Galileo and the board for which the library was compiled for. The error you receive says "library rfidmaster claims to run on (avr, STM32F1, teensy, esp8266) architecture(s) and may be incompatible with your current board which runs on (i586) architecture(s)."

 

 

In cases such as this one, with incompatible architectures, there are two options:

 

1. Find this library already compiled for the Galileo. If someone encountered the same issue as you, then it's possible this library has already been compiled for the board.

 

2. Write your own version of the library, or modify the existing one, based on the library code, so you can use it with the Galileo. Keep in mind this last option is out of the scope of support, however, we encourage you to share your results with the community.

 

 

Regards,

 

-Sergio A

 

View solution in original post

0 Kudos
6 Replies
Highlighted
Community Manager
37 Views

Hi tomatensaft,

 

 

Thank you for contacting us.

 

 

We reviewed the Github link you posted in this discussion and the thread discusses a different architecture between the Galileo and the board for which the library was compiled for. The error you receive says "library rfidmaster claims to run on (avr, STM32F1, teensy, esp8266) architecture(s) and may be incompatible with your current board which runs on (i586) architecture(s)."

 

 

In cases such as this one, with incompatible architectures, there are two options:

 

1. Find this library already compiled for the Galileo. If someone encountered the same issue as you, then it's possible this library has already been compiled for the board.

 

2. Write your own version of the library, or modify the existing one, based on the library code, so you can use it with the Galileo. Keep in mind this last option is out of the scope of support, however, we encourage you to share your results with the community.

 

 

Regards,

 

-Sergio A

 

View solution in original post

0 Kudos
Highlighted
Novice
36 Views

Hello Sergio,

thank you for the answer. Maybe I allocated the problem. The c++ code from the mfrc522 lib can be compiled.

The problem is the SPI lib. The mfrc522 lib depends on newer functions that the SPI lib for the Galileo is in the arduino lib for i586.

Example - the SPI.beginTransaction is not in the lib and this throws one of the errors.

Is there a newer Version of the SPI lib available ?

Thx

0 Kudos
Highlighted
Community Manager
36 Views

Hi tomatensaft,

 

 

Thank you for you your reply. I don't think there's a newer version of the SPI library. If you're referring to the Arduino library of SPI, then version 1.8.2 is the newest one.

 

 

Specifically, what error are you receiving?

 

 

We'll be waiting for your response.

 

 

-Sergio A

 

0 Kudos
Highlighted
Novice
36 Views

Hi Sergio,

one of the errors you will see at the referenced github thread.

When i use a SPI class I have no member beginTransaction wich is referenced in the RFID lib.

The strange thing is when I use the Arduino IDE and I select any Arduino device the RFID lib is working without probs. When I change only the device to galileo gen2 then I have the probs with the SPI.

In the Arduino IDE i have all needed libs with the internal lib manager installed. Maybe theres an old lib in the Arduino IDEs lib managers referenced.

thx

0 Kudos
Highlighted
Community Manager
36 Views

Hi tomatensaft,

 

 

Changing device in the Arduino IDE from Arduino to Galileo won't work if using the same library. The libraries need to be compiled specifically for the type of board architecture that's going to be used. The RFID library that works on Arduino has been compiled for Arduino architecture and won't work if used with the Galileo, that's the reason why the error continues to be the same as in the Github link.

 

In this case, the best approach would be to follow one of the two options posted above.

 

 

Hopefully you can find this information helpful.

 

 

-Sergio

 

0 Kudos
Highlighted
Novice
36 Views

Hi Sergio,

thx I will try one of these options and when I have successfully result I write here.

0 Kudos