2023-11-06 06:00 AM - last edited on 2023-12-27 05:36 AM by SofLit
Hello, I am trying to establish standard CAN communication between the sn65hvd230 IC and the stm32f4 discovery and stm32f103. While the loopback mode works fine, when it sends data to the normal mode, the output goes to 0 and then back to 1. I still haven't found a solution.
Solved! Go to Solution.
2023-11-06 09:51 AM
Surely easier to cut-n-paste
Running from a 84 MHz bus, perhaps 1 Mbps? 500 kbps at 42 MHz.
Are you sure there's not a better balance of Prescaler, SJW, BS1, BS2 settings?
Perhaps SJW =1, BS1 = 4, BS2 = 2 or SJW =1, BS1 = 5, BS2 = 1
Loopback doesn't need a responding/acknowledging device on the bus, Normal mode does.
2023-11-06 06:47 AM
I noticed that there is a Bit recessive Error in the SFR section, how can I fix this?
2023-11-06 06:55 AM
No details on your settings or what else is on bus responding or interacting.
2023-11-06 08:38 AM
2023-11-06 09:51 AM
Surely easier to cut-n-paste
Running from a 84 MHz bus, perhaps 1 Mbps? 500 kbps at 42 MHz.
Are you sure there's not a better balance of Prescaler, SJW, BS1, BS2 settings?
Perhaps SJW =1, BS1 = 4, BS2 = 2 or SJW =1, BS1 = 5, BS2 = 1
Loopback doesn't need a responding/acknowledging device on the bus, Normal mode does.
2023-11-06 11:06 AM
I am working on the 42mhz bus and I adjusted these settings like this last time and it worked smoothly in loopback mode, but in normal mode, I tried to send data when there was no device on the other side, but I could not see the canbus frame in the logic analyzer. Unfortunately, since I am new, I do not have much knowledge about can and I do not understand some of the problems.
2023-11-06 10:51 PM - edited 2023-11-06 10:57 PM
2023-11-07 03:18 AM
Should perhaps be looking at the circuit and performance electrically. Error suggests it's not in control of the state of the bus, perhaps feedback via CAN RX is compromised.
2023-11-07 05:47 AM
Yes, what you said may be true because when I disconnected the CANbus transceiver, an acknowledge error was seen in the LEC Register bit instead of a timing error.
2023-12-26 09:48 PM
Hi @Tesla DeLorean I am new to embedded development can you please me solve this issue?
I am facing an issue in CAN normal mode. I have tried loopback mode it's working fine but when I change the mode to loopback mode I get a Bit Dominant error while transmitting.
Thank you