Jump to content
LoRaWAN

Using SPI and LoRa Libraries in Energia for MSP430G2553

Recommended Posts

I get the error "'SPISettings' does not name a type" when I compile my code for LoRaWAN. The codes are working in Arduino with the libraries LoRa.h and SPI.h. I have added the image to where the error is pointing at (In LoRa Library) and the Error message as well below.

I tried changing the energia SPI library to the Arduino SPI library as well but this created more problems.

Out of all the things I tried, the most simple error I get is here when it says "Does not name a type". How can I correct that bit of code to get rid of this error.

I'm a relative beginner in Energia and not sure what to do. Appreciate any help.

Thank you🙂

 

 

 

 

Error.PNG

LoRaLibrary.PNG

Share this post


Link to post
Share on other sites
1 hour ago, NurseBob said:

Did you edit the LoRa.h file from  #include <Arduino.h>  to #include <Energia.h>?  Might help?

Yes! No Luck

Share this post


Link to post
Share on other sites

SPI.hSPI.cppLoRa.hLoRa.cpp

Hi,

Thank you, but it seems I have initialized as mentioned there. However, I'm attaching the library files here and the .ino file that I'm trying to compile on Energia. Appreciate if you can further assist me

20 minutes ago, NurseBob said:

Take a look at this link  regarding include statements in C++, it may provide some insight?

 

LoRaSender.ino

Share this post


Link to post
Share on other sites

>Appreciate if you can further assist me

Unfortunately, my current system configuration doesn't support Energia builds at the moment. So, hopefully someone else will be able to help.

Share this post


Link to post
Share on other sites
11 hours ago, NurseBob said:

>Appreciate if you can further assist me

Unfortunately, my current system configuration doesn't support Energia builds at the moment. So, hopefully someone else will be able to help.

Thank you

Share this post


Link to post
Share on other sites

you can not use Lora library with the MSP430G2553.

Ram is to small !!!!! only 512 bytes 

Arduino 2Kbytes SRAM

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×