ThomasBarth / ESP32-CAN-Driver

CAN driver project for the Espressif ESP32
280 stars 77 forks source link

avoid dominant CAN bus level while initialisation #12

Closed worker2345234 closed 6 years ago

worker2345234 commented 6 years ago

without this commit I had seen a 20 ys dominant pulse on CAN bus

ThomasBarth commented 6 years ago

cool, thanks!

ThomasBarth commented 6 years ago

I just had another idea. As I do not have a ESP32 on my desk at the moment, could you try to first set up the GPIO Matrix before setting the Pin as an output? This way I think the level should be immediately set by the CAN Module, instead having a period where the Pin is driven by the DR.

worker2345234 commented 6 years ago

Hi Thomas, your idea sounds good, I tried to change the calls but I couldn't get a good (working) result. I don't know anything about the ESP32 IO matrix and how to configure it in the right sequence. If you send me some IO matrix init code i can try it here.