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.

TMS320F280049C: The data is read inconsistently in debug mode and release mode

Part Number: TMS320F280049C

Tool/software:

Hello,

   Good day!

   There is customer's issue, could  you help? Thank you so much.

   Reading data stored in LSRAM is correct in debug mode, but reading data in release mode is incorrect. What could be the reason for this?

   Correct data:

  

Wrong data:

   

  • Hi,

    We need more information to understand the issue. Is your code failing to run because of wrong data ? Have you checked the build configuration difference between debug and release mode ? 

    Regards,

    Vivek Singh

  • Hello Vivek Singh,

        Thanks for your support!

        Please check the customer reply:

         The configuration is the same in both modes, running in flash; one runs under debug mode, and the other runs after being programmed, followed by a power off and restart. The global variables after restart are read using XCP, which is incorrect.

         What information do you need? 

  • The global variables after restart are read using XCP, which is incorrect.

    How do you make sure that in both case variables are read at same time ? In debug mode, can you issue reset and then run it and read the variables ? 

    Vivek Singh

  • Hello Vivek Singh,

        Thanks for your support!

        Please check the customer reply:

        It is not reading at the same time; it is reading the address of the same variable separately under two different modes, resulting in inconsistent data.

        In debug mode, after resetting, the data is normal when restarted, but when exiting debug mode and then cutting off power and restarting, reading the variable becomes incorrect.

  • But if variable is not read at same time and it's getting updated in SW then it'll have different value at different time. Right ? 

  • Hello Vivek Singh,

        Thanks for your support!

        Please check the customer reply:

         The values assigned in the program have always been floating point values, but after a restart, the values read are already garbled and cannot be parsed by XCP, exceeding the range.

  • Hello,

          Good day!

          Regarding the customer's reply, do you have any further suggestion?

  • Alice,

    Sorry, it's difficult to tell what is happening here. Can they toggle some GPIO in their application to know that values are assigned and then read it via XCP ? 

    Vivek Singh