cancel
Showing results for 
Search instead for 
Did you mean: 

Why i don't receive data?(can protocol communication with stm32f103c8t6)

ssharrafi
Associate II

I want to make a communication between 2 microcontrollers by can protocol i put after each microcontroller  a can transceiver and the problem is that we send data but i other board we don't receive it, i mean after the second receiver we don't have proper output in RX,TX even it's CANH,CANL input of transceiver is ok and the transceiver doesn't have problem because i changed them but the problem remain! and i archived the codes if you want to take look...

if you know where the problem is pls tell me.

 

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions

@ssharrafi wrote:

yes


Hello @ssharrafi ,

Sorry but ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

7 REPLIES 7
MHoll.2
Senior II

So if I understand You right, You have measured the CAN frame on the BUS and it's OK, but after the Transceiver the RX signal is always High.

If this is the case, You probably have a connection problem with Your transceiver. Can You tell us what Transceiver You are using?

Some Transceiver need the pin STD (or similer) to be pulled to GND to work.

mÆŽALLEm
ST Employee

Hello,

What board are you using? Blue pill?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Diagram what you've actually built/constructed.

Part# and wiring

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ssharrafi
Associate II

I’ve documented the solutions I found here in order, so that if anyone else encounters a similar issue, it might help others. There were two main causes: one related to hardware and the other to software.

Hardware:
Ensure the wiring is correctly connected, and verify that the microcontroller provides the transceiver input. You can do this by measuring the signals with a multimeter.

Software:
The issue was that the filter name in the code did not match the "callback" function I was using. Correcting the filter name resolved the problem.

yes

yes it was the problem that the microcontroller didn't provide exact 5volts to my transceiver. 

thanks for your comment


@ssharrafi wrote:

yes


Hello @ssharrafi ,

Sorry but ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.