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.

MSPM0G3507: MSPM0G3507

Part Number: MSPM0G3507

Why is this error displayed after I move the contents of adc12_internal_temp_sensor_mathacl_LP_MSPM0G3507_nortos_ticlang into an empty file? I didn't change any code, I did the same configuration

Thank you !

In addition, what is _iqQ15? How to use it? Is there a more accurate advantage in ADC conversion? The voltage collected by my ADC is much worse than the actual voltage, which causes me to be very inaccurate in the measurement of resistance, inductance, and other devices. Is there any solution

Finally, I would like to ask why I cannot see the value of the defined variable during debugging, and even the variable type can only be displayed unknown. Only when I use Volatile can I observe the value of the variable. When I debug, I step by step, and local variables also cannot see the value when entering the function. And I can't set breakpoints for some sentences. Why?

There are many questions. Thank you very much for your help!!!

  • Hello 

    1). If you want to use the example code " adc12_internal_temp_sensor_mathacl", you can just import it from our offline SDK into CCS. The latest version SDK and CCS can be downloaded from ti.com. There are many example code in our SDK. I think maybe you forget to include the head file of IQmath when you move the adc12_internal_temp_sensor_mathacl code to empty file according to the error CCS reported. The adc12_internal_temp_sensor_mathacl used the IQmath.

    2) IQmath is a TI lib which can help to improve the speed of float operation. And IQ15 means that using the low 15bits to represent the decimal places. About the IQmath you can use "BAIDU". 

    3). ADC inaccuracy may be due to various factors, such as your circuit, weak signal, excessive noise, and so on.

    4). because if you set the optimization level of compiler, compiler will optimize some variables but if you use the "Volatile", it will make compiler not optimize these variables. Compiler will also optimize some code which make you can't set breakpoint. You can set the compiler optimization level to "0" through 

    some question can be resolved just through "BAIDU" and example code of our SDK or our datasheet. Hope that can help you 

    Best Regards,

    Janz Bai