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.

LAUNCHXL-F28069M: 自己写了一个使能串口SCIA接收的函数,下面两句代码一执行硬件仿真时候,DSP就会宕机

Part Number: LAUNCHXL-F28069M


void HAL_enableSciaInts(HAL_Handle handle)//guoshaoxiong

{HAL_Obj *obj = (HAL_Obj *)handle;

obj->pieHandle->PIEIER_PIEIFR[8].IER |= PIE_IERx_INTx1_BITS;//第九组接收中断

IER |= CPU_IntNumber_9;//这两句话一起使用就宕机

return;

}

注释两句代码中任意一个语句

硬件仿真时候宕机现象不再发生;

请问是怎么回事呢