Skip to main content
DPhil.8
Associate
June 9, 2023
Question

STM32 metrology driver, HAL returning negative values. QE is questioning why negative values, feels this must be HW or FW bug.

  • June 9, 2023
  • 1 reply
  • 890 views

Some of the parameters which can return negative values (not all the time, sometimes positive) are: Power Factor, ReactivePowerReceived, ApparentPowerDelivered, and whatever these parameters are:

Vmom = -162  AEload = -0.174030   Imom = -43   PF = -0.008001      REload = -0.22418

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 9, 2023

    For those not familiar with the part or software you're using, is it this?

    https://www.st.com/en/embedded-software/stsw-stpm002.html

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    DPhil.8
    DPhil.8Author
    Associate
    June 12, 2023

    Yes that is what we are using. Are you familiar with this package and why it may send negative values for the above readings?