Tool/software: TI C/C++ Compiler
Hello,
In my project I have a C6457 DSP clock of 1200 MHz which runs code from internal memory.
I use Code Composer 3.3.82.13
Code Generation tool 6.1.20
DSP Bios 5.33.06
I have some instruction code in a C function written as follows:
info_prf.TxLen = QE2dRt.CurrSeq.prf_tx;
info_prf.RxLen = QE2dRt.CurrSeq.prf_rx;
info_prf.RxOffset = QE2dRt.CurrSeq.offs_rx;
info_prf.SafeGateLen = QE2dRt.CurrSeq.safegate_time;
where info_prf and QE2dRt are structured variables in internal memory.
Compiler optimization generates a code which results in crash during real time execution. That is a systematic error. It seems that the variable assignments are not correctly translated.
If I introuce some asm(" NOP") operation after each assignment then no problem with the same optimization. Same result with no nop code and no optimization.
The file compiler options are -o2, Far aggregate memory model, Aliasing = default, interrupt threshold 2048, turn off software pipelininig. Other options are as default
Did I wrong in something? Same code in c6452 results in no problems. Did I miss some note on c6457 compiler optimizer?
Thank you in advance
Francesco