Comments (4)
A good starting point would be to figure out what exactly fails.
Try opening the source code of the arduino-CAN library installed into your Arduino IDE, follow the code that you call before you get the failure, and insert something line Serial.println("Failed doing XYZ");
at each block of code like if (not ok) { return ...; }
. This way you should be able to find out which condition fails.
This is how I found the bug here: #45
from arduino-can.
Thanks Timurrr for the reply. I should indeed try that, but it's rather complicated as the CAN library in turn calls other libraries (such as those for the SPI bus) and the problem may be there.
I also have another lead: the SCK signal looks rather degraded when the display and touch chips are connected to the SPI bus (voltage drop, reduced slew rate). Just connecting these to the SCK bus even when MISO and MOSI are disconnected results in an initialisation failure of the CAN shield. I may need to look further (regenerate clock by an additional chip, or reduce clock rate).
from arduino-can.
What kind of CAN tranciver /controler are you useing? I also work with the same TFT Driver in my project and have zero problems.
I use the onboard ESP32 Can Controller and a SN65HVD230 tranciver... this may be a better solution for your purpose?
from arduino-can.
Just connecting these to the SCK bus even when MISO and MOSI are
disconnected results in an initialisation failure of the CAN shield.
Yeah, sounds like you need to figure out a way to better isolate them electrically.
from arduino-can.
Related Issues (20)
- ESP to Pi not working
- Logic analyser HOT 2
- ESP32 CAN bus errors at 95 kbps HOT 1
- ESP8266 support HOT 3
- ESP32 esp_intr.h header file deprecation warning HOT 1
- SN65HVD230DR ESP32 not communicating HOT 1
- When compiling a file for esp32 s3 dev board, i get the following errors. Is there a new CAN.c file to help? HOT 6
- Is this lib dead? HOT 6
- How can i use this library with a raspberry pi pico?
- Not getting messages
- ESP32 - only 1 extended filter working, is it possible to specify multiple filters? HOT 13
- Esp32 s3 support HOT 2
- Not working with Espressif 3.0
- 怎么知道数据有没有发送成功
- Esp32 multiple ID filter HOT 1
- CPU restart in callback HOT 1
- Working with MCP2515 on Arduino Nano, but fails on ESP32 HOT 2
- ESP32SJA1000Class::filterExtended mask calculation incorrect
- setup() and loop() functions are missing
- can i work with the MCP2515 SPI MODULE instead of the MKR can shield
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-can.