Page 2 of 2

Re: CAN controller clock and slow CAN bitrates

Posted: Wed Jun 14, 2017 10:30 am
by ESP_igrr
There doesn't seem to be a solution which can be used simultaneously with WiFi and BT.
With regards to lowering the APB frequency, we will have a solution for this, but currently this is not supported because CPU frequency would be lowered to the same value, and FreeRTOS as well as timekeeping functions expect certain constant values of CPU frequency and APB frequency. We will have a solution for dynamic changing of APB/CPU clocks in the next major version (3.0).

Re: CAN controller clock and slow CAN bitrates

Posted: Wed Jun 14, 2017 10:41 am
by hwmaier
Would the Ethernet still work with lowered APB Clock ? I would expect it as the clock comes from an external source.

Re: CAN controller clock and slow CAN bitrates

Posted: Wed Jun 14, 2017 1:04 pm
by ESP_igrr
For Ethernet in 100Mbps mode, lowest APB clock frequency can be 50MHz. For 10Mbps, lowest is 5 MHz.

Re: CAN controller clock and slow CAN bitrates

Posted: Wed Jun 14, 2017 1:18 pm
by hwmaier
Thanks to both rudi and ESP_igrr for all the info and clarifications provided in this thread.

Re: CAN controller clock and slow CAN bitrates

Posted: Sun Dec 23, 2018 7:50 pm
by n0b0dy
Is there still no way using the device with 20k bps?

Re: CAN controller clock and slow CAN bitrates

Posted: Sat Mar 13, 2021 4:59 am
by caleres
Starting with revision 2 of the ESP32 there is a way to configure lower can baud rates; for the newer chips the function of bit 4 of the interrupt enable register changes from "enable wakeup interrupt" to "divide BRP by 2". Here is a pull request to the openvehicles project that allows use of 33.333K, 50K, and 83.333K baud:

Testing was done with a V3 ESP32-WROVER.