Skip to main content
PKUMA.3
Visitor II
May 27, 2022
Solved

SPC5/UDESTK debugger loading incorrect value in core register

  • May 27, 2022
  • 1 reply
  • 1013 views

Hi Team ,

We are using PLS debugger for one of our project ST SPC58NG84E7 controller ,compiler GHS Version 202114 and Debugger UDE STK2021 .

But we are facing one issue while debugging one function in SetAbsAlarm(1,10,10)

In SetAbsAlram while we debugging first argument value instead of 1 it is taking as 8 .

We saw disassembly code but first argument instruction is SE_LI R3,0x1 but after

executing this instruction R3 value it is loading with 8 instead of 1 .

Please find the snap shot attached below line no 876 due to these we are facing incorrect functionality .

Kindly provide support .

Regards

Praveen

    This topic has been closed for replies.
    Best answer by ODOUV.1

    Hello,

    your assembly seems to be well generated by GHS: 0x4813 code(01001)IM7(0000001)Reg(0011) => SE_LI R3,1

    Would you export the first parameter in SetAbsAlarm throug UART for example to check if it is 1 or 8 ?

    Best regards,

    -Olivier

    1 reply

    ODOUV.1
    ODOUV.1Best answer
    ST Employee
    May 31, 2022

    Hello,

    your assembly seems to be well generated by GHS: 0x4813 code(01001)IM7(0000001)Reg(0011) => SE_LI R3,1

    Would you export the first parameter in SetAbsAlarm throug UART for example to check if it is 1 or 8 ?

    Best regards,

    -Olivier