Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS320F28234: right shift operations have wrong results

$
0
0

Hello all,

I'm programming a TMS320F28234 with CCSv4.1.2.00027. Now I got the following error:

The assignment x = y >> z; has a wrong result. If I set a breakpoint at the concerning line and add (y >> z) to the watch window, the correct result for (y >> z) is shown. But after executing the assignment, x has a random value. All variables have integer type. z is not a constant. Replacing the shift operation by an addition or multiplication produces correct results. The operation is executed within the pwm isr.

Is there any workaround? Thanks in advance.

Regards,

Michael


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>