Is the XCHG operation broken? unimplemented?

Skip to first unread message


Apr 24, 2018, 7:10:46 PM4/24/18
to BeagleBoard
I have struggled with the PRU scratchpad, persisting because it seems that it could be a very powerful feature. In particular, the XCHG instruction (pseudo-op) has caused me hours of frustration to identify and diagnose a problem. It seems that XCHG (swapping current PRU register values for those in a specified scratchpad bank) does not work - it is effectively an XIN op. I researched and found only one bit of content about this, here: The accepted answer was provided by a (supposed) TI employee. I find it hard to believe...

Is it possible that he PASM compiler accepts the XCHG instruction, and all the PRU documentation from TI documents this instruction, but it is not even implemented? I understand the "PRU is not officially supported" claim.
Reply all
Reply to author
0 new messages