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.
你好,我的28377D程序烧写进FLASH后,重启DSP会导致DSP无法进入中CAN通信的发送函数,确切的来讲就是停在了while中程序无法发送出去。
但是如果是在线跑的话就不会这样,请问是什么原因呢?或者可以给点意见吗?这个CAN发送是在中断中使用的。
void can_sand_UINT1_ID()
{
txMsgData_ID_1[0] =0x01;
txMsgData_ID_1[2] =(Para.Sys_Ctrl_para.ID1+1)*100 ;
txMsgData_ID_1[3] = (Para.Sys_Ctrl_para.IQ1+1)*100;
CAN_sendMessage(CANA_BASE, TX_MSG_OBJ_ID, MSG_DATA_LENGTH, txMsgData_ID_1);
while (((HWREGH(CANA_BASE + CAN_O_ES) & CAN_ES_TXOK)) != CAN_ES_TXOK)
{
}
}