This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F4 CAN Protocol

Former Member
Former Member

Hi friends,
I am trying Can Protocol STM32F4 to STM32F4 ,I not sure about that I am doing right it.

If I use STM32F1 ,this device include just CAN master,so I mean if it is possible STM32F1 to STM32F1 because of both device include just master CAN.
STM32F4 also include CAN Slave,in this case I think I can use STM32F4 to STM32F1 or STM32F4

Is it possible master to master communication.

Is there an anyone to managed  this protocol,please share both device codes with me.

Thanks.

Parents Reply Children
  • Former Member
    0 Former Member in reply to jwhitmore

    I couldnt explain well I suppose.
    Now I m gonna try to explain better.
    I opened the stm32cubemx ,I altered one of series stm32f1but I dont remember my uC all device's name anyway.I enabled Can protocol and I saw master under the CAN .Also I altered Stm32f407vg and I have two options CAN1 and CAN2 and CAN2 is slave .so I mean what does that mean and Can I communicate Stmf1 to stmf1.According to your talking I can .

  • Ahhh. I've now looked up the stm32cubemx and it's a code configuration tool. I'm afraid I can't help you with that I've never used any of those tools. They take all the fun out of it ;-)

    If that stm32cubemx is talking about CAN Master and Slave then it means that it's wrong. Well in my humble opinion ;-) There is no such thing. Your best bet might be to grab the CAN Bus spec or look at the datasheet for your uC which should have a section to give you an overview of CAN. Read that and get an understanding of it and then try and raise a question with the stm32cubemx people.

    All I'm saying is that CAN Bus is NOT a Master/Slave protocol. It's probably referred to as a multi Master, (because ANY node can initiate communications) with Collision detection.