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.

TMS570LS1224: Getting error while running example in code composer studio ( HET module configuration )

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

I ran this example with pin changed for my TMS570LS1224 board.

training.ti.com/hercules-how-tutorial-using-nhet-generate-pwm

I had enabled HET1 driver and configured NHET[16] in halcogen code generator with duty cycle 60% and time period 1000uS. Also enable the output direction corresponding to pin16.

After which I had generated the code and included in the CCS project ( same workspace folder) . In sys_main.c , I had written the following code,


/* USER CODE BEGIN (0) */
#include "het.h"
/* USER CODE END */

/* Include Files */

#include "sys_common.h"
#include "system.h"

/* USER CODE BEGIN (1) */
/* USER CODE END */

/** @fn void main(void)
*   @brief Application main function
*   @note This function is empty by default.
*
*   This function is called after startup.
*   The user can use this function to implement the application.
*/

/* USER CODE BEGIN (2) */
/* USER CODE END */

void main(void)
{
/* USER CODE BEGIN (3) */
    hetInit();
    while(1) {}
/* USER CODE END */


}


/* USER CODE BEGIN (4) */
void esmGroup1Notification(int bit)
{
    return;
    }

void esmGroup2Notification(int bit)
{
    return;
    }
void pwmNotification (nhetBASE_t * nhetREG, unsigned pwm, unsigned notification)
{
    return;
}
void edgeNotification (nhetBASE_t * nhetREG, unsigned edge)
{
    return;
}
/* USER CODE END */

I am getting the following error message while compiling the code.


#20 identifier "nhetBASE_t" is undefined sys_main.c /watchdog/source line 89 C/C++ Problem