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.

emeter application sample code for MSP430AFE253

Other Parts Discussed in Thread: MSP430AFE253

Hi there,

I am trying to compile and run the sample code from MSP430 Energy Library and have got the following errors and warnings.  It seems the ram is not enough for this sample code.  When I change the RAM size in the cmd file to a larger size, I can see the size of variables exceeds MSP430AFE253's RAM.  Does anyone know why the sample code uses more ram than what the device has?  How do i get it to work?

thank you

regards,

Kevin

  • Kevin,

    The Emeter library currently available online, is only available for use with IAR. When compiled with IAR, the project should work as expected.

    Regards,
    JH
  • Hi JH,

    Thank you for the info.  according to https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/319013, I thought it also worked with CCS.  Do you know when the CCS version will be ready if there is any?  Thank you

    Regards,

    Kevin

  • Hello Kevin,

    It seems I am mistaken and CCS support has been added now. From looking at the code download, please make sure you are selecting from the CCS_workspace folder. Also, please check your Optimization settings. By default Optimization is at a minimum and these libraries need a higher level of Optimization to fit within the device. To do this, right click your project in CCS and Navigate to Show Build Settings... > Build > MSP430 Compiler > Optimization.

    Hope this helps!

    Regards,

    JH

  • Hi JH,

    I just checked the optimization levels of the libraries and sample application, and they were already set to the highest.  Only this time, I was able to compile the application without error for some reason, but my colleague still got the same error.  By the way, I have got a warming that I can't tell what is causing it by the message.  Do you know what causes the warming?  Thank you

**Attention** This is a public forum