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.

CCS/TMS570LS3137: TI_FEE_UTIL.c MISRA Warning

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello everyone,

I activated MISRA-C 14.10, then I got the warning like below;

Warning;

Also when I disabled MISRA-C 14.10, Warning was lost. 

Do you have any explanation or suggestion about what does it mean and how can I solve that problem?

Thank you...

  • Thank you for letting us know about the problem.  I can reproduce the same behavior based on what you show.  I don't know why the compiler does that.  So, I filed the entry CODEGEN-5843 in the SDOWP system to have this investigated. You are welcome to follow it with the SDOWP link below in my signature.

    The workaround is to initialize FlashStatusWord prior to taking its address.  Change line 890 to something like these two lines ...

    Fapi_FlashStatusWordType FlashStatusWord = 0;
    Fapi_FlashStatusWordType *poFlashStatusWord = &FlashStatusWord;

    Please let me know what Software Development Kit, or whatever the software package is, which contains this code.  I need to let that team know about this issue.

    Thanks and regards,

    -George

  • Thank you for your interest. I am using halcogen 4.0.6 , tms570ls3137 mcu , ccs 8.2.