Hi!
In my program I want to set the state of GPIO pins. But there are some circumstances which lead to the result that a pin register is not set to the correct state.
e.g.
GpioDataRegs.GPCDAT.bit.GPIO64 = 0 (result: 0)
GpioDataRegs.GPCDAT.bit.GPIO65 = 0 (result: 0)
GpioDataRegs.GPCDAT.bit.GPIO68 = 1 (result: 1)
GpioDataRegs.GPCDAT.bit.GPIO67 = 1 (result: 0)
GpioDataRegs.GPCDAT.bit.GPIO66 = 1 (result: 1)
This result is only generated if the program runs, if the debugger is used and the instructions are stepped over everything is set correctly as in source code.
I found out that inserting a NOP between every instruction does not change anything. But writing the same instruction doubled to the source line generates a correct result.
Isn't it allowed to use the bit registers in consecutive instructions?
what else could be the problem?
The CPU is clocked at 300MHz
Compiler Version: c2000_6.1.0
Code Composer Version: 5.3.0.00090
thanks for your help!