Hi experts,
My customer is using 32 bit function like
TestFun is called in main, and it calls TestFunInner. TestFunInner should return a 32 bit value 0x12345678 to TestFun, and then return to main.
However, the returning value of TestFunInner is 0x00005678, which only includes the LSB.
If we call TestFunInner dirrectly in main, the returning value is normal.
When we look into the assembly, we found that there is an extra line that makes the MSB of ACC 0x0000
This line does not exist when calling TestFunInner directly from main
Could you help explaining this? I can share a project that can reproduce this issue.
Thanks,
Hang