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.

User code section no longer generated

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0332

Hi,

I am using CCS6, TMS570LS0332, and recently upgraded Halcogen from 4.0 to 4.1.

 

It appears that the user code section 76 in rti.c is no longer created.  I use this section to prevent the rtiCompare0 interrupt handler from creating a conflict with FreeRTOS.

 

Code from 4.0:

/* USER CODE BEGIN (73) */
// We don’t want to include this function since it is part of the OS code
#if 0
/* USER CODE END */

/** @fn void vPortPreemptiveTick(void)
*   @brief RTI1 Compare 0 Interrupt Handler
*
*   RTI1 Compare 0 interrupt handler 
*
*/
#pragma CODE_STATE(vPortPreemptiveTick, 32)
#pragma INTERRUPT(vPortPreemptiveTick, IRQ)

/* SourceId : RTI_SourceId_022 */
/* DesignId : RTI_DesignId_022 */
/* Requirements : HL_SR95 */
void vPortPreemptiveTick(void)
{
/* USER CODE BEGIN (74) */
/* USER CODE END */

    rtiREG1->INTFLAG = 1U;
    rtiNotification(rtiNOTIFICATION_COMPARE0);

/* USER CODE BEGIN (75) */
/* USER CODE END */
}

/* USER CODE BEGIN (76) */
#endif
/* USER CODE END */

 

Code from 4.1

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

/** @fn void vPortPreemptiveTick(void)
*   @brief RTI1 Compare 0 Interrupt Handler
*
*   RTI1 Compare 0 interrupt handler 
*
*/
#pragma CODE_STATE(vPortPreemptiveTick, 32)
#pragma INTERRUPT(vPortPreemptiveTick, IRQ)

/* SourceId : RTI_SourceId_022 */
/* DesignId : RTI_DesignId_022 */
/* Requirements : HL_SR95 */
void vPortPreemptiveTick(void)
{
/* USER CODE BEGIN (74) */
/* USER CODE END */

    rtiREG1->INTFLAG = 1U;
    rtiNotification(rtiNOTIFICATION_COMPARE0);

/* USER CODE BEGIN (75) */
/* USER CODE END */
}