I was looking at the code and found out that DRV_CANFDSPI_TransmitQueueConfigure is accessing canControlResetValues[cREGADDR_CiFIFOCON / 4].
In drv_canfdspi_register.h :
#define cREGADDR_CiFIFOCON 0x050
Hence, canControlResetValues[cREGADDR_CiFIFOCON / 4] is trying to access 21st (canControlResetValues[20]) value of the array whereas array is initialized with 20 elements.
Hi SK,
I was looking at the code and found out that DRV_CANFDSPI_TransmitQueueConfigure is accessing canControlResetValues[cREGADDR_CiFIFOCON / 4].
In drv_canfdspi_register.h :
#define cREGADDR_CiFIFOCON 0x050
Hence, canControlResetValues[cREGADDR_CiFIFOCON / 4] is trying to access 21st (canControlResetValues[20]) value of the array whereas array is initialized with 20 elements.
`static uint32_t canControlResetValues[] = { / Address 0x000 to 0x00C /
ifdef CAN_TXQUEUE_IMPLEMENTED
else
endif
};`
Is there anything I am missing?
Thanks and Regards, Ankit