cancel
Showing results for 
Search instead for 
Did you mean: 

WKUIE bit in IER

Ash1
Associate III

Hi all I want to know About WKUIE bit in IER STM32F407 disc board.

I have configured filters for Fifo so do I have to enable WKUIE bit in IER register because even I have not enable it still I am able to receive data as RXinterrupt in rxfifopendingmessage . so can you explain me is it okay to let it disable or enable .

PFA code 

void CAN1_RX0IRQHandler(void)

{

HAL_CAN_IRQHandler(&hcan1);

}

/* Receive FIFO 0 message pending interrupt management *********************/

if ((interrupts & CAN_IT_RX_FIFO0_MSG_PENDING) != 0U)

{

/* Check if message is still pending */

if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) != 0U)

{

/* Receive FIFO 0 message pending Callback */

#if USE_HAL_CAN_REGISTER_CALLBACKS == 1

/* Call registered callback*/

hcan->RxFifo0MsgPendingCallback(hcan);

#else

/* Call weak (surcharged) callback */

HAL_CAN_RxFifo0MsgPendingCallback(hcan);

#endif /* USE_HAL_CAN_REGISTER_CALLBACKS */

}

}
1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

Not sure what the issue is, but why you don't inspire from any examples provided in CubeF4 package. 

Example: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324xG_EVAL/Examples/CAN/CAN_Networking 

PS: in next time please use </> button to post your code: https://community.st.com/t5/community-guidelines/how-to-insert-source-code/ta-p/693413

I've edited you post then.

Thank you

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
SofLit
ST Employee

Hello,

Not sure what the issue is, but why you don't inspire from any examples provided in CubeF4 package. 

Example: https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324xG_EVAL/Examples/CAN/CAN_Networking 

PS: in next time please use </> button to post your code: https://community.st.com/t5/community-guidelines/how-to-insert-source-code/ta-p/693413

I've edited you post then.

Thank you

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.