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.

TMS320F28388D: Variable suddenly set to infinity

Part Number: TMS320F28388D

Hi,

I've been working on a project for several months and since today, one specific field of one specific structure is always set to infinity, no matter what I try.

I ever tried to set it to 1 during initialization. I checked with a Ctrl + H that it's value wasn't changed somewhere else but I'm sure it's not.

I saw that this could come from real-time mode, I dont use it. My debug settings are the basic ones. I also disabled optimizations.

Do you have an idea of what it could be ?

Thanks in advance

Best

Natan

  • Natan,

    Natan Vachon said:
    I ever tried to set it to 1 during initialization.

    Right after it is set to 1.0f, does it read back as 1.0f ? 

    You can set a watchpoint on the location to see if any write occurs to it.  CCS will stop "near" the write (this is due to the pipeline).  To set a watchpoint, use the CCS view-> breakpoints then use the pulldown to create a new "hardware watchpoint".    A menu will open where you can provide the symbol or address and whether you want to watch for a write or read of the location.

  • Hi Lori,

    Thanks a lot for your advice. Something happened that I didn't see. This debug feature is so cool thank you.

    Best,

    Natan