You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom board that I developed and there the MCU controls the encoder and display.
Of the free pins, only 17 and 18 are UART2 (PX2/TX2) by default
The file esp32_can.cpp contains the default code.
From the code example
Good day and thanks for the repository @collin80 😄
At the very beginning I wanted to ask, why does the code use the
can_common.h
library ifCAN
bus is based onTWAI
esp32?I use the
ESP32-S3
microcontroller + moduleSN65HVD230
The config from the
.pio
is as follows:I have a custom board that I developed and there the
MCU
controls the encoder and display.Of the free pins, only
17
and18
areUART2 (PX2/TX2)
by defaultThe file
esp32_can.cpp
contains the default code.From the code example
it is clear that
pin 16
needs to be pull to ground and then other contacts reassigned.My code:
This code is executed once and at the end of the
Error
frame.If I change the pins in the
esp32_can.cpp
file forcibly toOr I write them in the main code in the
SETUP
sectionthen the frames will start to be sent continuously with breaks between sendings of
54 us
and each frame ends with aNAK
(didn't fit in the screenshot).What am I doing wrong or right?
Why does the pin reassignment example recommend doing it this way, and sending only once
But my code worked like this and sending is continuous
CAN0.setCANPins(GPIO_NUM_17,
GPIO_NUM_18);I would like to understand this issue.
The text was updated successfully, but these errors were encountered: