2024-12-11 04:57 AM - last edited on 2024-12-12 04:45 AM by SofLit
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 */
}
}
Solved! Go to Solution.
2024-12-12 04:48 AM
Hello,
Not sure what the issue is, but why you don't inspire from any examples provided in CubeF4 package.
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
2024-12-12 04:48 AM
Hello,
Not sure what the issue is, but why you don't inspire from any examples provided in CubeF4 package.
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