Tool/software: Code Composer Studio
Hi,
I am building an application on MSP430FR5994 using CCS v8. I know we can use printf in debug mode but I need to use it in release mode as well. Does anyone know how can I do this?
Best,
Abu Bakar
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.
Tool/software: Code Composer Studio
Hi,
I am building an application on MSP430FR5994 using CCS v8. I know we can use printf in debug mode but I need to use it in release mode as well. Does anyone know how can I do this?
Best,
Abu Bakar
Abu Bakar said:I know we can use printf in debug mode but I need to use it in release mode as well.
What exactly are you referring to when you say Release mode here? If you mean the Release build configuration of a CCS project, then it would be no different than the Debug build configuration, in that you ensure that you are using the same set of build options that are required for printf. These two pages are good references for working with printf in general.
http://processors.wiki.ti.com/index.php/Printf_support_for_MSP430_CCSTUDIO_compiler
http://processors.wiki.ti.com/index.php/Tips_for_using_printf
On the other hand, if by release mode you are referring to running the processor standalone, then printf is not of much use in that situation as there would be no debugger to display the output in a console.