sparkfun / SparkFun_LTE_Shield_Arduino_Library

Arduino Library for the SparkFun LTE Cat M1/NB-IoT Shield.
Other
27 stars 14 forks source link

Does not compile with Sparkfun ATSAMD21G selected as board #1

Closed ssnyde closed 5 years ago

ssnyde commented 5 years ago

Subject of the issue

Verify compile throws errors. SoftwareSerial is not #ifdef'ed out in all places, and it looks like this does not exist for ATSAMD21G boards. After modifying the library so that SoftwareSerial is not used anywhere using #ifdef, other compiler errors are thrown around various types.

Your workbench

Steps to reproduce

Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue to a gist. Download Arduino 1.8.8, install ATSAMD21G support via Sparkfun instructions, try and compile 00_Register_Operator example, using Serial1 for LTE board and SerialUSB for console.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

ssnyde commented 5 years ago

atsamd21_issue.tar.gz

romanrobles commented 5 years ago

Using Arduino 1.8.7 with Arduino Primo and Simblee - same problem.

jimblom commented 5 years ago

Thanks for filing the issue @ssnyde !

I've pushed a couple new commits and published a new 1.1.0 release to support the SAMD21. The release may take a bit to hit Arduino's library manager, but you can download the updated files in the src folder to try it out.

The 00_Register_Operator.ino example was also modified to more-easily use on a SAMD21 as well. To use it with the SAMD21:

It's working for me on the SparkFun SAMD21 Dev Breakout.

Closing for now. Feel free to re-open if it's still not compiling/working for you.