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.
Hi champs,
My customer faces a problem, CLA1 cannot modify variable contents. He uses disassembly to debug this problem and find that the MR0 register is 0 all the time.
His linker command file and the settings of memory configuration registers looks okay, is there any condition making MR0 register always be 0? How should I check this issue please?
Regards,
Luke
Hi Luke,
Can you provide details about the variable - Is it a local variable? Global variable? Shared variable?
Also, how is MR0 related to the variable? Is the MR0 being written to the variable or is the variable being read into MR0?
The C code snippet on CLA and the C code for all the places where the variable is defined and allocated will be very helpful.
Thanks,
Ashwini
Hi Ashwini,
After checking the source code from my customer, I figure out the root cause and solve this problem.
Let's close this thread, thanks for your support.
Regards,
Luke