cancel
Showing results for 
Search instead for 
Did you mean: 

CAN1_RX0 interrupt not firing

JChri.7
Associate

I've been working on getting the STM32f7-EVAL operational to later on migrate it to STM32F767II. For this we decided to split up functionality into 3 sections, there is a forward facing application that has the main and specific business logic.

Currently the main issue is that the CAN bus transmit (polling) is working flawlessly yet the receive (interrupt) seems to be non-functional. RF0R.FMP0 remains at 0x0, while FMPIE0 is set (1). it seems as if CAN_RF0R is disabled for some reason. Even though CAN_RX0_IRQn is enabled.

  /* CAN1 interrupt Init */

  HAL_NVIC_SetPriority(CAN1_RX0_IRQn, 0, 0);

  HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn);

also the notification is enabled:

HAL_CAN_ActivateNotification(&canDef, CAN_IT_RX_FIFO0_MSG_PENDING); after the NVIC and CAN are initialized.

void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) is the callback that i'm using.

I also verified using messages coming into the MCU by scope and logic analyser. There is an additional device attached to the CAN bus that transmit a incrementing counter at 15hz.

Placing a break point inside of the startup file is never triggered.

0 REPLIES 0