WD FEED not compiling correctly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WD FEED not compiling correctly

662 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JGold on Fri Jan 21 08:27:10 MST 2011
When I try to feed the WDFEED register with 0xaa then 0x55, the compiler always send 0x55.

WTF?????
0 Kudos
Reply
2 Replies

655 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jan 21 10:05:30 MST 2011
Watching 'Core Registers' while debugging with 'Instruction Stepping Mode' can show you actual r2 values...

... and help to understand this instructions :)
0 Kudos
Reply

655 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jan 21 09:34:06 MST 2011
That code is completely correct. Note that the instruction is
mvn.w r3, #85 ; 0x55


The MVN instruction takes the value of Operand2, performs a bitwise logical NOT operation on the value, and places the result into Rd.

Please ensure you read the code properly before posting...
0 Kudos
Reply