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/EVM430-FR6043: Unable to use sprintf

Part Number: EVM430-FR6043
Other Parts Discussed in Thread: MSP430FR6047, MSP430FR6043

Tool/software: Code Composer Studio

Hello,

I am trying to send the output values of measurement by converting it into string and send. I have implemented this in MSP430FR6047 but doesnt seem to work for MSP430FR6043. What could be the issue?

Regards,

Prudhvi Sagar

  • Prudhvi Sagar said:
    I am trying to send the output values of measurement by converting it into string and send. I have implemented this in MSP430FR6047 but doesnt seem to work for MSP430FR6043. What could be the issue?

    The errors shown here do not have anything to do with sprintf but is a more fundamental gmake build error. 

    Are the paths shown in the message the correct paths for where those source files are located? I suspect they may be getting resolved to incorrect paths. 

    Can you try importing the project into a new workspace, then do a Rebuild Project, capture the build log to a text file (as described here) and attach the file here? 
    Also which version of CCS are you using?

  • Hello,

    I apologize for posting the other project's errors into this one. Just to clarify when I comment the line having sprintf the project builds well.

    Regards,

    Prudhvi Sagar

  • Prudhvi Sagar said:
    Just to clarify when I comment the line having sprintf the project builds well.

    Your MSP430 device likely does not have sufficient memory to accommodate the large code size generated by sprintf and similar C I/O routines.

    Please see this related thread. You may try the minimal printf support option as mentioned in this page, but even that may not be sufficient depending on the memory constraints of your device.