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/TDC1000-TDC7200EVM: Errors when building the original firmware

Part Number: TDC1000-TDC7200EVM
Other Parts Discussed in Thread: MSP430F5528, TDC1000

Tool/software: Code Composer Studio

Hello,

I've been using the TDC1000-TDC7200EVM to measure water flow using transducers sensors and I need to make some modifications in the original firmware. At first I tried to build and upgrade the most recent firmware that comes with the GUI, without modifications, but several errors appeared:

When I imported the firmware path:

And then, when I tried to build it:

Am I doing something wrong? How do I solve this?

Thanks in advance!

  • Hi Lucas,
    The first screenshot is the key. Note all the message about include search paths not being found. Please carefully check your include search path in the project properties. Make sure they point to valid directories.

    Thanks
    ki
  • Thank very much for your answer Ki-Soo Lee.

    I've solved all the warnings installing an older version of CCS (6.1.0) and changing the wrong paths in the project properties. It seems to have solved some errors, but there are still some going on:

    Looks like it's not finding the libraries, but all the codes seems to be right (it's the firmware downloaded with the GUI, with no modifications).
    Again, what am I doing wrong?

  • Those errors are again related to the compiler not finding the header files due to incorrect or missing include search paths. If you checked and fixed any incorrect paths, check to see if there are missing paths and add them to your project build properties

    Thanks
    ki
  • Thanks again.

    In case someone have problems, there's a mistake in the code provided: a lot of C files are including "inc/hw_regaccess.h" and "inc/hw_memmap.h" instead of including the header file "hw_memmap.h" and "hw_regaccess.h". I don't know if that's the easiest way to solve it, but I changed every C file before build and compile and it finally worked.

    Example:

    After compiling the code, several Advices appeared:

    Should it be like this? Could anyone check if the latest firmware provided on the TDC1000-TDC7200EVM has all these problems? Before changing the code for my research, I need to make sure that I'm working with the correct latest firmware of this board.

  • Actually, I just realized that it's not working as expected.

    Using the GUI the measurement seems alright. But I'm also getting the data through the GPIO3 that comes from the MSP430f5528 (an UART Tx) using an Arduino's UART Rx.

    With the Firmware TDC1000_7200_FW-v2.01-1MHz (that comes already compiled and outputted as txt hex) I've got the following data (that is the same read at the GUI):

    But with the Firmware that I've tried to compile, with only one modification (the "includes" that I mentioned above), I've got the following data:

    Any thoughts?

  • Lucas Barzotto said:
    But with the Firmware that I've tried to compile, with only one modification (the "includes" that I mentioned above), I've got the following data:

    It looks like the firmware is trying to output floating point data, but that floating point support is not enabled in the compiler options.

    Under the project properties CCS Build -> MSP432 Compiler -> Advanced Options -> Language Options what is "Level of printf/scanf support required (--printf_support)" set to?

    For this firmware I think that option needs to be set to "full".

  • I will move this thread to the MSP forum for more feedback from the MSP folks.

    Thanks
    ki
  • Chester Gillon,

    The problem was exactly this. The "Level of printf/scanf support required (--printf_support)" was set to minimal, I changed it to full and now the data received is the same as read in the GUI.
    Thanks

  • Lucas Barzotto said:

    Should it be like this? Could anyone check if the latest firmware provided on the TDC1000-TDC7200EVM has all these problems? Before changing the code for my research, I need to make sure that I'm working with the correct latest firmware of this board.

    If possible, I would really appreciate if someone checked it for me. Anyway, thanks for your help guys

**Attention** This is a public forum