Not able to receive data over CAN
- September 6, 2018
- 4 replies
- 1377 views
I am working on STM32F4-Discovery board with STM32F412ZG. Trying to work CAN communication between MCU and PC with the help of kvaser canking tool(SJW=1, bus speed=125 kbps). I got success in transmitting data to PC successfully and I am getting correct data without any error. But unable to receive data on same can bus. Whenever i send data from PC over CAN, I am not able to get any data in MCU's FIFO mailbox. I have checked CAN_RX and GND pins on DSO and i am getting pulses(data) till connector(CN12) of discovery board. i have checked schematic of discovery board and connection of that connector is directly gone to MCU pin. But still not able to receive data in FIFO mailbox.
I am attaching my code here. Please suggest if i missed anything in order to receive data successfully.
