Code Composer Version: 4.2.3.00004 on a TMS320C6457
I have this annoying problem in that my compiler/assembler is smarter than me.
I need to perform sequential operations to a flash memory to read manufacturing id etc.
which requires 3 sequential writes ( using volatile keyword ) and then perform a read ( also volatile ) to get the manufacturing id , device id etc.
Somehow the "read" access is getting executed before the third write executes - which gives a bogus value.
I have even put the three writes into a separate function and after the function call to the writes , i perform the read.
IT STILL MANAGES TO PERFORM THE READ AFTER ONLY 2 OF THE 3 WRITES HAVE EXECUTED!!!
Does anyone know how to force the compiler/assembler to execute in order, or stall??? what flags to try?? which antidepressants are best???
Thanks