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.

Calibrating Energy Code Library Project (slac488.zip) on Msp430f47197.Some problems that need to be attended.

Other Parts Discussed in Thread: MSP430F47197

When i try to rebuild the emeter-app msp430f47197.ewp in order to load it ontomy board

there is always that warning.I did not care about the warning, however when i open the provided GUI there can be no calibration.

Warning[Pa034]: an initialized variable can not have the __no_init attribute C:\Users\Jorg\Desktop\slac488\Code Library\emeter\emeter-app\emeter-main.c 132

a) how can this warning be solved?

b)is that warning the cause that the firmware cannot be calibrated?

c)The GUI shows the readings in a double frequency than the GUI that can be made with its source code provided in the folder calibrator.

Why does that happen?How can i have the remade on GUI show the readings in a double frequency also?

  • George Papakonstantinou said:

    Warning[Pa034]: an initialized variable can not have the __no_init attribute C:\Users\Jorg\Desktop\slac488\Code Library\emeter\emeter-app\emeter-main.c 132

     Is your board a poly_phase metering with neutral too? Is properly configured about all sensor enabled and defined too? If not please can you describe how is configured?

    George Papakonstantinou said:
    b)is that warning the cause that the firmware cannot be calibrated?

     Maybe so it cannot calculate active power nor reactive.

    George Papakonstantinou said:

    c)The GUI shows the readings in a double frequency than the GUI that can be made with its source code provided in the folder calibrator.

    Why does that happen?How can i have the remade on GUI show the readings in a double frequency also?

     I cannot understand what this means, please can you post a picture of GUI showing the problem?

  • a) I did not modify the original software package at all.
    My board is that one
    www.ti.com/.../evm430-f47197
    and the project is that one
    www.ti.com/.../msp430-energy-library;tisearch=Search-EN-Everything

    I load the initial fw without changing anything.I use the lastest free version of IAR.While rebuilding emeter app msp430f47197.ewp
    only this warning shows up.I ignored it and went on loading the firmware on my board.However calibrator.exe cannot calibrate the board.
    When i type the error percentages at the respective window and press "update meter", nothing changes.Only fundamental voltage value for a few secs :(

    c) When i open calibrator.exe that is provided within software package, readings are shown fast enough (it is good for me).
    This software package also contains a kind of source code Code Library/emeter/cal.
    When i rebuild this source code,i create a new made gui and this new-made GUI shows the readings like calibrator.exe but in a half frequency.
    How can i increase the frequency of meter updating its readings in the new-made gui?
  • I will get back with some photos tomorrow, when i am gonna have access to my campus lab
  • George Papakonstantinou said:
    a) I did not modify the original software package at all.
    My board is that one

     Seen, so this board has just current measurement on three phases and not neutral current?

     Are all parameter of configuration set to metering setup?

    George Papakonstantinou said:
    When i rebuild this source code,i create a new made gui and this new-made GUI shows the readings like calibrator.exe but in a half frequency.
    How can i increase the frequency of meter updating its readings in the new-made gui

     Ok it is now clear what you intended double frequency, was the refresh rate of meter reading.

     Your new GUI is stand alone or CCS windowed?

  • a) no this board has also neutral current measurement.When i open calibrator.exe i see everything.
    Of course all parameters are set up ok.

    b) the gui is created using the cygwin platform and the source code provided within the software package.
    It is not standalone.I have to use x11 server in cygwin.( command startxwin).
    Although the source code gives us the ability to modify the readings, i cannot find how to double the refresh rate, like the standalone calibrator.exe which is provided also.

    PS standalone calibrator.exe is found at Code/Library/cal and its size is 5mbs.The folder contains only this exe and some dlls.

    The source code is found at Code Library/emeter/calibrator.Here you can create a new calibrator.exe using cygwin.But the size is about 2mbs and it is not standalonne.


    Of course nor standalone original calibrator neither the calibrator that can be made by cygwin can calibrate.When i enter error percentages at the error windows, nothing happens.
    I wonder whether the cause is the warning for no_init_ mentioned here

    e2e.ti.com/.../394862

    I will try to fix this warning and get back with some photos as soon as possible.

**Attention** This is a public forum