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.