Part Number: TMS320F280049C
Other Parts Discussed in Thread: LAUNCHXL-F280049C, TMDSHVMTRINSPIN, C2000WARE
I am using the LaunchXL-F280049C. I started by importing the Lab 01. I don't have the TMDSHVMTRINSPIN; I have a custom inverter hardware. I started on the assumption that it wouldn't be a problem at this point.

Running the example without changes, produced the error:

As I didn't have any clue where I was mistaken, I went and made a reduced program to determine where the error was:
/**
* main.c
*/
int main(void)
{
uint16_t estNumber = 0;
bool flagEstStateChanged = false;
//
// initialize the user parameters
//
//USER_setParams(&userParams);
//userParams.flag_bypassMotorId = true;
//
// initialize the user parameters
//
//USER_setParams_priv(&userParams);
//
// initialize the driver
//
halHandle = HAL_init(&hal, sizeof(hal));
//
// set the driver parameters
//
HAL_setParams(halHandle);
//
// initialize the interrupt vector table
//
HAL_initIntVectorTable(halHandle);
#define HAL_GPIO_LED2 34
EINT;
ERTM;
while (1){
DEVICE_DELAY_US(250000);
HAL_toggleLED(halHandle, HAL_GPIO_LED2);
}
//return 0;
}
__interrupt void mainISR(void)
{
#define HAL_GPIO_LED3 23
//
// toggle status LED
//
counterLED++;
if(counterLED > (uint32_t)(USER_ISR_FREQ_Hz / LED_BLINK_FREQ_Hz))
{
HAL_toggleLED(halHandle, HAL_GPIO_LED3);
counterLED = 0;
}
//
// acknowledge the ADC interrupt
//
HAL_ackADCInt(halHandle, ADC_INT_NUMBER1);
}
Apparently, the problem is being caused after the ADCs are enabled. For example, If I bypass HAL_setupADCs(), the program runs just fine (i.e. The green LED if the launchpad blinks.)
I started bypassing code from HAL_setupADCs and the code runs until I enable the ADCs

If I return after enabling the ADCs, the error occurs (The same happens If I remove the return line and let the HAL_setupADCs function to run unchanged.)

I have checked the Handles that are passed to ADC_enableConverter to make sure valid data was being passed. As it turns out, the values passed are
- 0x7400 for ADC A
- 0x7480 for ADC B
- 0x7500 for ADC C

I am just starting with this processor's software and at this point I am lost. I would appreciate any help that would allow me to make some progress.
