"I have a project on the RH850-F1KM (R7F701686) microcontroller with CAN protocol, FreeRTOS. The project was working previously but now shows a CAN RX error, and CAN interrupts are not functioning as expected. Has anyone experienced similar issues or know what could cause this behavior?"
CAN RX Error Specifics:
"My CAN interrupts on the RH850-F1KM have stopped working. What could cause previously working interrupts to fail without any changes to the interrupt configuration? Could this be related to FreeRTOS or other peripheral interactions?
Debugging FreeRTOS and CAN Together:
"Could recent updates to the Renesas toolchain or FreeRTOS library affect CAN or interrupt behavior on the RH850-F1KM? Has anyone experienced compatibility issues after such updates?"
"What specific debugging steps or diagnostics would you recommend for resolving CAN RX errors and interrupt issues on the RH850-F1KM microcontroller?"
Hello,
If there is any CAN related error you should check the Channel error flag register RCFDCnCFDCmERFL and Global error flag register RCFDCnCFDGERFL.
Does any error interrupt get triggered ?
There is no 'official' support for FreeRTOS so any support on this end is limited.
According to this Without FreeRtos CAN should work, right? But here without freeRtos is also not working and the interrupt are not generating properly, I handling tx and rx fifo error interrupts. but not getting any response from the interrupt.
Can you please provide any sample codes or please tell the required process to do work.
I am afraid there is no sample code with FreeRTOS and CAN. As mentioned FreeRTOS port is not officially released and maintained by Renesas and thus the support is very limited.
Thank you!!
Can you please share the related sample code about CAN protocol in renesas RH850-F1KM-S1.
You can refer to the CANFD sample code provided at :
https://www.renesas.com/en/document/scd/y-ask-rh850f1km-s1-v3-sample-code?language=en&r=1170176
This code is provided only for reference.
Hi
I created a new project with interrupts enabled for both CAN and UART modules. While the UART interrupt is generated correctly, the CAN interrupt does not trigger, as the breakpoint in the CAN interrupt is not hit. Additionally, when CAN initialization is enabled, the UART functionality stops working, but it works fine if I comment out the CAN initialization.
For reference, the CAN module interrupt has been enabled in the "r_cg_intvector.h" file. Could you help identify the root cause and suggest a solution?
r_cg_intvector.h"
can anyone tell here how to handle CAN tx and rx interrupts?
I'm enabling the CAN tx and Rx interrupts in intvector.h file.
please anyone knows let me know.
thank you