This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Softwareserial.h compilation terminated

Other Parts Discussed in Thread: ENERGIA

I am planning to port this code for TIVA-C129 using Energia (on a Mac). 1st trying if it even compiles. I have below include

#include "XBee.h"
#include <SoftwareSerial.h>

Getting error

 

"#include <SoftwareSerial.h>

                                            ^

compilation terminated."

 

I even tried doing  #include "SoftwareSerial.h" but same error. What am I missing?

  • lilyhack,

    Generally speaking, when an include is inclosed with '<>' it means they're context is known to the development environment (i.e., the IDE knows the path) i.e., this may work on the original platform (arduino?) but won't in Energia. Also, when you changed to enclose it in quotes, the path must be included in the build options otherwise it will not be found. If you are going to port the code from Arduino to Energia you will need to port all of the driver files as well as all of the source files and possibly even some object files. You will need to replace Arduino specific HAL drivers with Energia drivers for TM4C and you will need to find and replace any Arduino specific IDE definitions with Energia definitions. And so on.... and so on...

    Since I am no expert on Energia, I would recommend you post the question within the Energia online support forums as well since there may be others within the community that have done a similar port that could offer good advice as to challenges and successes with such a port.

    Unfortunately, this is all the advise I can offer relative to this task as it is not specifically a TM4C issue but rather an Arduino and Energia issue for which I have few resources and experience to help. I wish you luck!!