Open mattia424 opened 7 months ago
I would assume you are getting an INVALID_ARG error from the driver init. Try different pins or a lower bit rate and see if you can get error 263 (TIMEOUT) instead of 259 (INVALID_STATE). Note that pin 20 is typically one of the USB pins. Are you sure your N32R8 is a WROOM-1, not WROOM-2?
The variability that remains is just the different part number of the chip, could it be the revision of the chip? one has the suffix M0 while the other MC.
Another variability is the loading configuration, below you will find a screen
Thank you
Try setting USB Mode to USB-Tiny, which should leave the usb pins unattached. Did you try on different pins?
Hi, I solved it by finding an RS track that didn't make a false contact under the soldermask
Board
ESP32-S3-WROOM-1
Device Description
I connected the SN65HVD230DR transceiver
In the last test I found that the problem persists even without anything connected except the logic analyzer on pin 21
Hardware Configuration
GPIO20 and GPIO21 connect to RX and TX of SN65HVD230DR
Version
v2.0.11
IDE Name
Arduino IDE 2.2.1
Operating System
WIN 11
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
I uploaded the sketch to two different devices:
ESP32-S3-WROOM-1 M0N8R8: everything works correctly With the transciver connected to the twai_transmit(&message, 0); it returns 0 while with the transciver disconnected it returns 263
ESP32-S3-WROOM-1 MCN16R2: both with transciver and without the twai_transmit(&message, 0) function; it always returns 259 to me. if I load a simple click on pin 21 with the logic analyzer I see the signal correctly. if I run this sketch it doesn't give me any signal and it always responds with error 259
Before trying with another ESP to avoid it being a chip problem, are there any further tests I can do? is there much difference compared to what is due? Thank you
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide