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

Galileo gen2 - SPI error #310

Closed
tomatensaft opened this issue Apr 27, 2017 · 5 comments
Closed

Galileo gen2 - SPI error #310

tomatensaft opened this issue Apr 27, 2017 · 5 comments
Labels
hardware 🔌 not a problem with the software

Comments

@tomatensaft
Copy link

tomatensaft commented Apr 27, 2017

Step 1: Are you in the right place?

GitHub issues only for bugs or improvements of the library. All other topics, e.g. hardware/programming, will be closed.

For general support from the community, see Arduino Forum or StackOverflow.

Step 2: Describe your environment

  • OS version: win10
  • Arduino IDE version: 1.8.2
  • MFRC522 Library version: 1.3.5
  • Arduino device: galileo gen2
  • MFRC522 device: rc522

Step 3: Describe the problem

Edit: SPI error, see second posting.
cant complie the sketch - incompatible architecture

Affected file(s) or example(s):

Steps to reproduce:

Observed Results:

Edit: SPI error, see second posting.
Arduino: 1.8.2 (Windows 10), Board: "Intel® Galileo Gen2"

Build options changed, rebuilding all
WARNING: 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).
C:\Program Files (x86)\Arduino\libraries\rfidmaster\src\MFRC522.cpp: In constructor 'MFRC522::MFRC522()':

Expected Results:

Relevant Code:

Standard Skecth (Setup/Loop) with #include <MFRC522.h>

What i'm doing wrong ? I found many exmaples with galileo gen2 and MFRC522 !?

@Rotzbua
Copy link
Collaborator

Rotzbua commented Apr 27, 2017

There is no official support for galileo boards. It should compile because it is only a warning and not a error. Maybe the intel compiler is stupid..
Try to remove library.properties where the architectures are listed.

@tomatensaft
Copy link
Author

tomatensaft commented Apr 28, 2017

After many times new installation i got the following log ->

Arduino: 1.8.2 (Windows 10), Board: "Intel® Galileo Gen2"

Build options changed, rebuilding all
WARNING: library MFRC522 claims to run on (avr, STM32F1, teensy, esp8266) architecture(s) and may be incompatible with your current board which runs on (i586) architecture(s).
C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp: In constructor 'MFRC522::MFRC522()':

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:16:33: error: 'UINT8_MAX' was not declared in this scope

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp: In member function 'void MFRC522::PCD_WriteRegister(MFRC522::PCD_Register, byte)':

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:49:6: error: 'class SPIClass' has no member named 'beginTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:49:72: error: 'SPISettings' was not declared in this scope

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:54:6: error: 'class SPIClass' has no member named 'endTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp: In member function 'void MFRC522::PCD_WriteRegister(MFRC522::PCD_Register, byte, byte*)':

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:65:6: error: 'class SPIClass' has no member named 'beginTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:65:72: error: 'SPISettings' was not declared in this scope

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:72:6: error: 'class SPIClass' has no member named 'endTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp: In member function 'byte MFRC522::PCD_ReadRegister(MFRC522::PCD_Register)':

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:82:6: error: 'class SPIClass' has no member named 'beginTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:82:72: error: 'SPISettings' was not declared in this scope

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:87:6: error: 'class SPIClass' has no member named 'endTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp: In member function 'void MFRC522::PCD_ReadRegister(MFRC522::PCD_Register, byte, byte*, byte)':

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:106:6: error: 'class SPIClass' has no member named 'beginTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:106:72: error: 'SPISettings' was not declared in this scope

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:125:6: error: 'class SPIClass' has no member named 'endTransaction'

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp: In member function 'void MFRC522::PCD_Init()':

C:\data\dev\arduino\sketchbook\libraries\MFRC522\src\MFRC522.cpp:201:28: error: 'UINT8_MAX' was not declared in this scope

exit status 1
Error compiling for board Intel® Galileo Gen2.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

When i select the Yun Board it compiles everthing without warnings/errors.

I installed the IDE/Libs/Board new.

@Rotzbua Rotzbua added the hardware 🔌 not a problem with the software label Apr 29, 2017
@Rotzbua
Copy link
Collaborator

Rotzbua commented Apr 29, 2017

Better open a thread in the arduino or intel forum. Maybe there are more ppl who know about this board.
https://forum.arduino.cc
https://communities.intel.com/community/tech/galileo

edit:
According thread: https://communities.intel.com/thread/113914

Rotzbua added a commit that referenced this issue Apr 29, 2017
add note for incompatible Intel Galileo gen2 #310
@Rotzbua Rotzbua changed the title Galileo gen2 - incompatible arch Galileo gen2 - SPI error May 3, 2017
@Rotzbua
Copy link
Collaborator

Rotzbua commented May 28, 2017

Can be reopened if somebody works on it.

@Rotzbua Rotzbua closed this as completed May 28, 2017
@Rotzbua
Copy link
Collaborator

Rotzbua commented Jun 19, 2017

FYI: Intel officially dropped this board https://qdms.intel.com/dm/i.aspx/F79ED317-6EF3-4293-8752-9C4E7B3C11C5/PCN115581-00.pdf .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware 🔌 not a problem with the software
Projects
None yet
Development

No branches or pull requests

2 participants