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.

MSP430FR5994: How to slow down the EnergyTrace reading speed ?

Part Number: MSP430FR5994
Other Parts Discussed in Thread: ENERGYTRACE,

I use the open source program at the following URL to obtain energy consumption data through energytrace api.

https://github.com/carrotIndustries/energytrace-util

When energytrace is running, i also sends back data from the MSP430FR5994 via UART.

However, the reading speed of energytrace api is too fast (my observation is 3ms), so the data returned by the board cannot be processed by the control terminal (Energytrace program) immediately.

Is there any way to reduce the speed of energytrace ?

I thought about two solutions.

The first one. I saw ETProfiling_samplingFreq_t  in  MSP430_EnergyTrace.h, but it does not seem to be open to use.

The second is to call usleep in the push_cb function for a few milliseconds and use tcflush to refresh the energytrace buffer, but I don’t know how to turn on the energytrace buffer.

Thanks for your assistance.

  • I think you can find the MSP430_EnergyTrace.h in the MSP430 DS: https://www.ti.com/tool/MSPDS

    You can also the the MSP430.dll to control the energytrace directly.

  • Thanks for your reply.
    I know the existence of MSP430_EnergyTrace.h, and also know that there are some optional parameters in it, but the option of reading rate (the yellow line in the figure) is not open to users to change, I also tried to ignore the comment and modify it directly.
    But the parameters did not affect the reading rate.

    May I find the wrong parameter that needs to be changed?

  • Can you tell me how to do the change?

    One method is to check if you can find some function in the MSP430.dll. It will be the easiest solution.

    The second method o to change the open source MSP430.dll. If solution one doesn't work.

    Sorry, I can't give you too much help...I don't know about this question. The related guys are all leave TI.

**Attention** This is a public forum