Search found 187 matches

by ESP_Dazz
Mon Jun 01, 2020 2:20 pm
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

Please try this new patch. Added an extra test condition for Errata No.5
by ESP_Dazz
Thu May 28, 2020 3:01 pm
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

I assume that the patch also contains the overrun fix? Unfortunately this patch allows corrupt frames through using the described test pattern. I can seed CAN frames & so dump registers on fault should that help you. Yes, the new patch includes the overrun fix. The CAN frames and register dumps wou...
by ESP_Dazz
Wed May 27, 2020 6:20 pm
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

@PeterR
Here is the patch that includes a fix for errata 3.13.5.
by ESP_Dazz
Mon May 25, 2020 8:36 am
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

@Peter R,
I suspect it could due to 3.13.5 as well. I'll send you another patch with the 3.13.5 workaround shortly.
by ESP_Dazz
Fri May 22, 2020 6:13 pm
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

@PeterR
I've attached the patch. Please run git apply fifo_overrun.patch on a branch based off release/v4.1. Note that because these changes are still under review, the final changes on master branch may be different.
by ESP_Dazz
Fri May 22, 2020 11:19 am
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

Will I need to re-initialise & re-program the device? Yes. The registers will reset to their default power-on values. Do you know when the IDF CAN driver will be updated to address the errata issues? We are currently reviewing the bugfix and will be merged into master shortly, after which we will b...
by ESP_Dazz
Fri May 22, 2020 5:19 am
Forum: General Discussion
Topic: Enter/exit CAN reset mode
Replies: 16
Views: 5109

Re: Enter/exit CAN reset mode

Hi, I am trying to work around some CAN issues. I have not been able to recover the CAN issue using can_initiate_recovery() is supposed to recover from Bus-Off, it won't help recover from corrupt frames Entering and Exiting reset mode doesn't really reset the peripheral. It's more of a start/stop b...
by ESP_Dazz
Mon May 18, 2020 3:54 pm
Forum: General Discussion
Topic: I2C corruption when using ESP CAN (IDFGH-3307)
Replies: 12
Views: 1161

Re: I2C corruption when using ESP CAN (IDFGH-3307)

@PeterR It doesn't make sense that the CAN driver would cause a 2ms block as the CAN driver ISR doesn't infinite loop anywhere. The only loop that occurs is the clearing of the CAN RX FIFO. In the worst case scenario where the CAN RX FIFO as completely overrun, the driver would simply clear the CAN ...
by ESP_Dazz
Fri May 15, 2020 3:57 am
Forum: ESP32 IDF
Topic: Unexplained CAN Errors
Replies: 16
Views: 1685

Re: Unexplained CAN Errors

(1) Other devices receiving and functioning whilst the ESP is BUS OFF. I note that the bus does have a high rate of errors but the ESP is solid fail (driver does not pass on RX frames, TX may happen but I need to confirm), whilst other devices muck on. Is the ESP CAN actually attempting to transmit...
by ESP_Dazz
Wed May 13, 2020 8:26 am
Forum: Report Bugs
Topic: ESP32-WROOM32E - V3 - Canbus speeds halved?
Replies: 2
Views: 534

Re: ESP32-WROOM32E - V3 - Canbus speeds halved?

Not a bug but a feature. ESP32 ECO3 added a configurable bit that will cause CAN bus speeds to be halved (i.e thus allows for lower bit rates). However, by default this feature should be disabled by the driver (see this commit ). Which version of ESP-IDF are you using? Do you have a copy of your sdk...

Go to advanced search