lifebook2 wrote on Friday, February 03, 2017:
Hello,
I am running FreeRTOS 9 and Harmony 1.10. I want to get an IRQ when a CAN message is received, but everyting crashes and I am not able to debug in the IRQ. My Device is a PIC32MX795.
void IntHandlerDrvCANInstance0(void)
{
message = (CAN_RX_MSG_BUFFER *)PLIB_CAN_ReceivedMessageGet(CAN_ID_1, CAN_CHANNEL0);
PLIB_CAN_ChannelUpdate(CAN_ID_1, CAN_CHANNEL0);
PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_CAN_1);
}
Any ideas? I am a litte bit lost…
Without FreeRTOS everything works fine.
Thanks!