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/TMS320F28335: A global variable cause system stop.

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hi,

I implement in customer's board. I have an run-able bin and the related source code. I add one more global variable and use it in different function. Everything goes smooth and the new bin can be built without problem.

However, the system cannot run anymore after 12 CAN message output. In fact, the CAN is not a issue I just want to highlight the system with new BIN can boot-up but somehow it is stuck.

I am sure it is not caused by new logic because I don't add any new logic condition, but only add new global.

Because it is customer's board, I cannot use JTAG. Anyone can give me some hit?

Crow

  • Hi Crow,
    It will be harder to find without a debug connection.
    Something obvious to check is how the variable is being initialised - i.e. is it being used anywhere without first being set? This happens surprisingly often.
    When you build the modified code set, check the .map file to see where the new variable is being linked. Is it in actual physical memory, in the same section as other global variables, and where you expect it to be? For example, it might be located immediately after an array which is over-writing the variable. Just an example.
    Can you load the .out onto a different target board which does have debug access?
    Regards,
    Richard