Skip to main content
Explorer
December 11, 2024
Solved

WKUIE bit in IER

  • December 11, 2024
  • 1 reply
  • 479 views

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 */

}

}
    This topic has been closed for replies.
    Best answer by mƎALLEm

    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

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    December 12, 2024

    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