Other Parts Discussed in Thread: HALCOGEN
Hi There,
I am trying to use the RTI interrupt example and "Safety Init" functions in Hacogen. My code is very simple:
/* USER CODE BEGIN (2) */
uint64_t milliseconds = 0;
/* USER CODE END */
int main(void)
{
/* USER CODE BEGIN (3) */
/* Enable Real-Time Interrupt */
rtiInit();
/* Enable RTI Compare 0 interrupt notification */
rtiEnableNotification(rtiNOTIFICATION_COMPARE0);
/* Enable IRQ - Clear I flag in CPS register */
/* Note: This is usually done by the OS or in an svc dispatcher */
_enable_interrupt_();
/* Start RTI Counter Block 0 */
rtiStartCounter(rtiCOUNTER_BLOCK0);
while(true)
{
};
/* USER CODE END */
return 0;
}
/* USER CODE BEGIN (4) */
void rtiNotification(uint32 notification)
{
milliseconds++;
}
/* USER CODE END */
The interrupt is working properly, but after I enabled all the boxes in the "Safety Init" tab in Halcogen I got an error in ESM module after the first interrupt of the RTI. The ESM is signalling group 3 bit 7 error (FMC - uncorrectable error: bus1 and bus2 interfaces (does not include address parity error and errors on accesses to EEPROM bank).
My CCS is 6.1.0.00104 and Halcogen is 04.06.00. Is there any configuration that I didn't?
KR
Thiago Esteves
ccmSelfCheck