AnsweredAssumed Answered

CodeWarrior 5.9 debugging: view registers values are not updated after assignment op.

Question asked by Eugenia Suarez on Mar 11, 2019
Latest reply on Mar 11, 2019 by Hui_Ma

Hi, 

I have inherited a project based on a Coldfire V2 uC. We are using MFC52258 uC. It was compiled with Codewarrior 5.9 on W7 OS. After updating multilink drivers for W7 we could finally enter into debug mode. It seems that it is able to follow correctly the application thread. But I have noticed that if I watch the registers values, they doesn't update the values, specially at port configuration. 

 

At following pictures a thread blue narrow can be seen during debug execution. First picture shows PTH port register value before executing an OR operation instruction. The second one shows the value before after executing the OR operation (register keeps the value). 

Third picture shows how the registers are mapped and some operand values defined in order to put 1 or 0 to the n bit of a 8bit register. 

 

Have I missed something? Is it normal to see no update in this view tool "register"? The register value is always the same even when restarting my debug session. 

 

1:

2:Port register mapping:

 

I have created a global var to keep the register bit value. Strangest thing is that global var shows a coherent value with mentioned before operation (OR) but register views stills keeping the starting value. 

 

I think view registers doesn' t work too much fine. I know this is a legacy IDE, but I need it in order to debug some of manufactured boards. 

Attachments

Outcomes