cancel
Showing results for 
Search instead for 
Did you mean: 

SPC5/UDESTK debugger loading incorrect value in core register

PKUMA.3
Associate

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
ODOUV.1
ST Employee

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

View solution in original post

1 REPLY 1
ODOUV.1
ST Employee

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