Skip to content
New issue

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

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

Already on GitHub? # to your account

Error on Linkit ONE #37

Open
idreamsi opened this issue Aug 19, 2016 · 2 comments
Open

Error on Linkit ONE #37

idreamsi opened this issue Aug 19, 2016 · 2 comments

Comments

@idreamsi
Copy link

Hi
I using Lora Shield and LinkIt ONE, When I compile with the following error :

Arduino: 1.6.8 (Windows 7), Board: "LinkIt ONE"

Warning: platform.txt from core 'MediaTek ARM7 EJ-S (32-bits) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp:77:14: error: 'SPISettings' does not name a type

 static const SPISettings settings(10E6, MSBFIRST, SPI_MODE0);

              ^

C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp: In function 'void hal_pin_nss(u1_t)':

C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp:85:13: error: 'class SPIClass' has no member named 'beginTransaction'

         SPI.beginTransaction(settings);

             ^

C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp:85:30: error: 'settings' was not declared in this scope

         SPI.beginTransaction(settings);

                              ^

C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp:87:13: error: 'class SPIClass' has no member named 'endTransaction'

         SPI.endTransaction();

             ^

C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp: In function 'u4_t hal_ticks()':

C:\Users\R@MiN\Documents\Arduino\libraries\arduino-lmic\src\hal\hal.cpp:154:115: error: 'static_assert' was not declared in this scope

     static_assert(US_PER_OSTICK_EXPONENT > 0 && US_PER_OSTICK_EXPONENT < 8, "Invalid US_PER_OSTICK_EXPONENT value");

                                                                                                                   ^

exit status 1
Error compiling for board LinkIt ONE.

What's the solution ?
Note : I found this PR to be relevant (But it did not work.):
#27

@matthijskooijman
Copy link
Owner

It looks like the arduino corefor this Linkit board does not implement the entire API that the normal Arduino core does. The "SPISettings" class was added somewhere one or two years ago, so perhaps the Linkit folks haven't picked that up yet? Perhaps you're using an older version of it?

@idreamsi
Copy link
Author

Thanks @matthijskooijman

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants