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.

Question about example_canCommunication.c and 'Continuous refresh' of expression windows at debug mode.

Other Parts Discussed in Thread: HALCOGEN

Hi Ti

I code with example_canCommunication.c in halcogen 4.05

then.. J10.45 pin of launchpad board , generate CAN Data..then i fixed some codes.

but 'canTransmit' function transmit once. i don't understand why this code don't generate continuous transmits??

while(1)
{

if(canTransmit( canREG1, canMESSAGE_BOX1, tx_data ) == 1) // Continuous DCAN Data Tx
{
tx_cnt++;
}

}

I just test "software controlled continuous ECAN Trasnmit test". 

----------------------------------------------------------------------------------------------

expression windows , 'Continuous refresh' in global variables don't work very well. is it another solution of 'Continuous refresh'??

  • Hello,

    Are you seeing this issue only when you enable continuous refresh ?

    In that case this problem may occur, once the device enters debug mode if there is an active transmission it might complete and then the state machine may stop.

    In case if this is your problem, then more info at 27.16(Debug/Suspend Mode) of TMS570LC TRM.