Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE, , DRV8323
Tool/software:
Hello,
I use the TMS320F280049C in conjunction with the CCS v12. My project is based on the is07 project of C2000Ware_MotorControl_SDK_5_02_00_00.
The hardware is an in-house development based on the Evalboard of the TMS320F280049C and the DRV8323 board. A BLDC motor is controlled. Now the following happens from time to time: The motor runs at the specified speed, then suddenly stops and the current consumption increases rapidly. If you now set a breakpoint in the mainISR, you realise that the code is no longer executed. However, the for(;;) loop continues to run, as do the Timer_ISR, the I2C_ISR and the analogue measured values are also still updated, only the mainISR() is no longer executed. The software sequence is taken from Lab is07 (PWM triggers ADC, when ADC SOC ready then trigger mainISR). Do you have an idea how to debug this error (are there CCS tools) or what could be the cause?
The following changes have been made
- SCI interrupt routine for RX data
- I2C interrupt routine
- acknowledge of mainISR() at the end of the interrupt routine
mainISR()
{
motorVars.pwmISRCount++;
//
// toggle status LED
//
counterLED++;
#ifdef EVALBOARD
if(counterLED > (uint32_t)(USER_ISR_FREQ_Hz / LED_BLINK_FREQ_Hz))
{
HAL_toggleLED(halHandle, HAL_GPIO_LED2);
counterLED = 0;
}
#endif
//
// acknowledge the ADC interrupt
//
// HAL_ackADCInt( halHandle, ADC_INT_NUMBER1 );
//
// read the ADC data with offsets
//
HAL_readADCDataWithOffsets( halHandle, &adcData );
:
:
//
// Force trig DMA channel to save the data
//
HAL_trigDlogWithDMA( halHandle, 0 );
HAL_trigDlogWithDMA( halHandle, 1 );
HAL_trigDlogWithDMA( halHandle, 2 );
HAL_trigDlogWithDMA( halHandle, 3 );
#endif // DATALOG_ENABLE
#ifdef _STEP_RESPONSE_EN_
// Collect predefined data into arrays
GRAPH_DATA(&gGraphVars, &gStepVars);
#endif // _STEP_RESPONSE_EN_
//
// acknowledge the ADC interrupt
//
HAL_ackADCInt( halHandle, ADC_INT_NUMBER1 );
return;
} // end of mainISR() function
Best regards
Thomas