Skip to main content
Visitor II
May 18, 2025
Solved

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

  • May 18, 2025
  • 4 replies
  • 704 views

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 topic has been closed for replies.
    Best answer by mƎALLEm

    @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.

    4 replies

    Graduate II
    May 18, 2025

    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.

    ssharrafiAuthor
    Visitor II
    May 20, 2025

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

    thanks for your comment

    Technical Moderator
    May 19, 2025

    Hello,

    What board are you using? Blue pill?

    ssharrafiAuthor
    Visitor II
    May 20, 2025

    yes

    mƎALLEmAnswer
    Technical Moderator
    May 20, 2025

    @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.

    Graduate II
    May 19, 2025

    Diagram what you've actually built/constructed.

    Part# and wiring

    ssharrafiAuthor
    Visitor II
    May 20, 2025

    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.