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.
Hi,
I have built a code in CCS v6 for TM4C1294 for Modbus RTU Master/ Slave using basic C programming and Driver Libraries. I want to combine it with an Energia Sketch for Ethernet Client. Is this possible, please guide me with an example if possible.
Thanks.
Komal Marathe said:Hi,
I have built a code in CCS v6 for TM4C1294 for Modbus RTU Master/ Slave using basic C programming and Driver Libraries. I want to combine it with an Energia Sketch for Ethernet Client. Is this possible, please guide me with an example if possible.
Thanks.
Hi Komal, it is not clear to me if you wish use CCS written code on Energia or use Energia Library on CCS code.
So if you wish port Library to energia see here:
http://energia.nu/Tutorial_Library.html
If you wish import Code from Energia to CCS I first suggest try port your library to Energia, if it work leave just as is, then from CCS import ENERGIA Sketch, point to where is code and continue development on CCS using energia Libraries. If you desire port again on Energia some rework are necessary to imported code, process is one way only from Energia to CCS.
I am using Energia two fold, didactic target and to try sketch when just this code example is on.
At last, MODBUS, are you using code written from you or you ported some available like freemodbus?
Thanks Luis.
There is away to do it in the second direction - to insert an enregia function to CCS project?
Hello Luis,
I am also facing similar problem. what I understand with your explanation is I can use CCS driver library files with energia. Am I correct?
Could you please explain it in detail please.
Hello LAXMI KANT TIWARI,
You can combine CCS code with Energia Sketch in 2 ways:
1. Use Energia Sketch and place in it CCS code (with adjustments, if they are required). This way always works.
2. Use CCS project and place in it code from Energia libraries (usually adjustments are required). This way can work when the specific Energia code can be written at C (a large part of Energia functions is in C++).