This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28034: Variable being assigned to itself

Part Number: TMS320F28034
Other Parts Discussed in Thread: SFRA, CONTROLSUITE, C2000WARE

Hi C2000 Team,

My customer has started evaluating the SFRA tool that comes with controlSuite. In SciCommsGui_32bit.cpp file, occasionally the compiler will flag and error on a variable being assigned to itself (see below).


if (SciaRegs.SCICTL2.bit.TXRDY == 1) { SciaRegs.SCITXBUF = dataOut16 & 0x000000FF; SendTaskPtr = 2; } else { TaskDoneFlag = TaskDoneFlag; break; }

Can you give me any insight as to why the variable is being set to itself?  If this needs to be done, then how do I prevent compiler errors in the future?

Thanks!

Barend

  • Barend,

    This was a compiler warning that started showing up v17 onwards. 

    We have fixed the issue in the digital power SDK. We used an old legacy code to build upon and did not investigate the reason why, though removing the self-assignment did not break the code, as one would expect.  

    please see

    C:\ti\c2000\C2000Ware_DigitalPower_SDK_1_00_00_00\libraries\sfra\GUI

    controlSUITE code is maintain only, and this is only a warning hence we will not fix this in controlSUITE.