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/ENERGYTRACE: MSP-FET restart time count at high current peaks

Part Number: ENERGYTRACE
Other Parts Discussed in Thread: MSP-FET, , MSP430FR6047

Tool/software: Code Composer Studio

Hi! 

I am using the MSP-FET to measure the current consumption of the MSP430FR6047 via JTAG powered from the MSP-FET (3.6V). Everything works fine, except when I send data using a RF_module(3.6V) that peaks at ~70mA and is also powered from the MSP-FET. Then the time count of the EnergyTrace resets to 0 and all the graphs and battery life calculations gets messed up. I have taken a screen recording showing the issue: 

The program itself does not restart or halt and the stop time of the energy trace is set to "On halt". 

What could be causing the issue? 

Thanks in advance! 

Best regards,
Thibault 

  • Hi Thibault

    I wonder that why there are two waves lines on your screen recording and they are so different.
    You have said that " send data using a RF_module" That may make the MCU wake up to send the data and cause the power consumption be higher.

    Best regards
    Gary
  • Hello Thibault,

    Were you able to evaluate the current consumption for "USS_generateLPMDelay". I have been trying with turning OFF WDT but the current consumption is in some few micro amperes to nano amperes.  

    Regards,

    Prudhvi Sagar

  • Gary Gao said:
    Hi Thibault

    I wonder that why there are two waves lines on your screen recording and they are so different.
    You have said that " send data using a RF_module" That may make the MCU wake up to send the data and cause the power consumption be higher.

    Best regards
    Gary

    Hi Gary Gao (5039577) ,

    Because every time it resets the time, a new line is being drowned from time=0, however the previous lines are not cleared. The RF_module uses 70mA when it sends data, so yes that is completely fine, however the issue is not power consumption, it is that the time of the energy trace resets.

    Thanks again,

    Best regards,

    Thibault

  • Hi Thibault

    Ok, you can check the value in SYSRSTIV to see what kind of reset it is. For the meaning of the values you can refer to msp430fr6047's datasheet P85(www.ti.com/.../msp430fr6047.pdf)

    Best regards
    Gary
  • Hi,

    I got the following values from SYSRSTIV register using memory browser:

    00 00 FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F

    And I can't see that it changes. I also read it using a variable and then I get 0.

    I don't think that the MCU resets anything at all as the code continues fine, I think the issue is more related to the MSP-FET/CCS v8.

    Best regards,
    Thibault
  • MSP-FET Energy Trace has maximum sourcing at 100 mA.
    Is it possible to exceed 100 mA when starting radio module or transition?
    Probably yes.
  • Hi,
    Okay, however I lowered the TX power gain to the lowest value which gives a total peak current of 50mA when sending, it should still work then right?

    Update: I can also add that the "Mode" red LED in the MSP-FET is blinking twice as it happens. 


    Best regards,
    Thibault

  • I found what was causing the issue:
    I was using srand(time(NULL)) to seed a rand() function before sending messages. by only calling it once the issue is gone.

    Thanks

    Best regards,
    Thibault

**Attention** This is a public forum