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.

CCS/EK-TM4C1294XL: Added Visual Studio Code not working in Code Composer Studio ZNP_HOST_FRAMEWORK cmdLine Project

Part Number: EK-TM4C1294XL

Tool/software: Code Composer Studio

*I'm re-posting because I accidentally resolved my last post and I was told by TI support to make a new post*6518.cmdLine.c

Hello!

I am using the ZNP-HOST_FRAMEWORK project "cmdLine" with the TM4C1294XL, CCEM Booster Pack and the CC2538. I am trying to add some code I previously wrote in Visual Studios (in C++) to this project. I have verified that my code works in Visual Studio. I'm not getting any errors or warnings about my new code in the Code Composer Studio project "cmdLine". However, my code isn't working properly in Code Composer Studio. Basically, the code I wrote performs trilateration using pre-defined values (NOT values obtained from the microcontroller. I want to make sure it works with theoretical values first before using real-time values from the microcontroller). My code uses variable types "double" and "int", and I noticed the Code Composer Studio Code uses mainly "uintX_t" and "intX_t", where X is 8, 16, 32, or 64.

I'm not sure why my code isn't working in Code Composer Studio, but I'm suspecting it may be because Code Composer Studio doesn't recognize the data type "double", or because double is a floating point number. How is the double data interpreted? Do I need to convert the data to another format? I should mention that I'm using RSSI values, so there are negatives and decimal values that I need to keep--I cannot truncate or round the numbers. Could something else be the issue?

I've attached the modified file "cmdLine.cpp", which consists of all of my code. In this file I've made it clear as to what lines I've added by writing my name in the variable name and the comments. I will also post a reply of some of my results.

Thank you!

- Tessa