Hii
I have a doubt i am making a can sniffing tool i need to change CAN baudrate in mid of the running condition, did there is a way to change the baudrate in mid of the ruuning condition. first when the MCU is running then the baaudrate is default like which is availble in the CAN stacks.
Thanks & Regards,
Nikhil
The BCR Bit Configuration Register controls the CAN bit rate.
The BCR register is set initially before exiting CAN reset mode to enter any other modes.
After the setting is made once, this register can be written to in CAN reset or CAN halt mode. It cannot be changed while the channel is in CAN operation mode.
Yes i know first i need to disable the CAN after that i can apply another setting...
Their is any example code for this?
No, but you can use the R_CAN_ModeTransition API to change the operating mode and then change the BCR register accordingly.
renesas.github.io/.../group___c_a_n.html
For this API what is operation mode and test mode
These are the values for test and operation modes:
In your case there is no reason to change the test mode from disabled.
But their is no value for change the baudrate of CAN
The baud rate will change by changing the BCR register.
Thanks for the help