2018-08-10 11:57 PM
Hello friends, I am trying to build a CAN protocol with CubeMX I am using STM32F103 and STM32F446 and I did set them by same clock freq, but I couldn't get any data on debug operating.Do you have any simple example that you would send me that.
2018-08-11 12:16 AM
Hello,
go to \STM32Cube\Repository\STM32Cube_FW_F4_V1.21.0\Projects\STM324xG_EVAL\Examples\CAN\CAN_Networking
study this example and try to use it for your mcu. its very easy . i tried it and worked.
couldnt get data where ?
are you trying loop back mode or normal mode ?
are you using transceiver ? if not, then in loopback mode, can_rx has to be pulled vcc via 3.3k resistor
you can get more idea here :
2018-08-11 01:39 AM
I am using transceiver ,also I will look example,and I would like to ask a more question,If 10 device send data on the line ,how can I get all data.Is it possible by hardware or can I build extra sofware control?
2018-08-12 03:10 PM
There are 3 onboard RxFIFOs for CanBus. that is, only 3 frames wide.
2018-08-12 03:35 PM
The devices will all take turns, they can see via feed-back on the RX pin that the bus is active.
Your software must remove packets from the FIFO as they arrive to free them up to receive new data. So don't expect to dilly-dally in the IRQ Handler, or printf() diagnostic info in there.
2018-08-16 10:25 PM
Thank you information, I handled it by software control,