Comments (5)
I am not sure what the internal CAN transceiver is
You need to clarify the transceiver you are using.
from arduino-stm32-can.
They aren't super forthcoming with details, but from some Keil example code, it appears to be a sn65hvd234 transceiver.
from arduino-stm32-can.
with a BARTH STG-850
The stm32f072 sample is for STM32F0 running at 48MHz.
This board needs to run at 48MHz.
Transmission failures have been reported many times in the past.
Everything is due to physical causes.
https://github.com/nopnop2002/Arduino-STM32-CAN/issues/
If the transmission fails, these are the possible causes.
- There is no receiving app on CanBus.
- The speed does not match the receiver.
- There is no terminating resistor on the CanBus.
- There are three terminating resistors on the CanBus.
- The resistance value of the terminating resistor is incorrect.
- 3.3V transceiver and 5V transceiver are mixed.
+1V Ground Shift using Split Termination.
Check here. - Stub length in CAN bus is too long.
Though the ISO11898 Standard specifies a maximum bus length of 40m and maximum stub length of 0.3m at 1Mbps.
See here. - Noise effects.
It occurs when the wire cable is thin or wire cable is crossing.
It is preferable to use wires that are noise-proof.
I changed the single wire to twisted wire. It's fixed.
You will probably need to open the case and check the XTAL used, presence or absence of a terminating resistor, transceiver model number, and internal wiring using a multimeter .
from arduino-stm32-can.
The board isn't running at 48mhz, according to the datasheet it is running at 16mhz, would I need to adjust the CAN timing to fix that?
from arduino-stm32-can.
would I need to adjust the CAN timing to fix that?
Yes.
You can use this for CAN Bit Time Calculation.
http://www.bittiming.can-wiki.info/
from arduino-stm32-can.
Related Issues (20)
- Adapt to stm32f767 custom board HOT 6
- hi,my board is stm32f103zet6,have some issues HOT 22
- the lib didn't work well HOT 4
- Send Fail HOT 16
- Canard HOT 1
- Possible to read but can't send data. HOT 28
- Raspberry Pi wiring example issue HOT 1
- CAN messages dropped, sometime receiving message up to six times HOT 9
- STM32F103C8T6 hangs on CANInit(CAN_1000KBPS, 2) HOT 3
- STM32F103 gets stuck inside while (!(CAN1->MSR & 0x1UL)); HOT 26
- Send Fail on STM32F407VE HOT 15
- how is Serial and CAN being used simultaneously in STM32F103? HOT 3
- STM32F413ZH NUCLEO-F413ZH HOT 13
- CAN on STM32G4 series HOT 1
- Discuss: other ways to clear mailbox? HOT 1
- Mistake in Line 277 HOT 5
- STM32F042F6P6TR HOT 1
- feature request: support multiple transmit mailboxes HOT 12
- Unable to communicate STM32f103 vs ESP32 via CAN BUS HOT 2
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-stm32-can.