CANopenNode / CanOpenSTM32

CANopenNode on STM32 microcontrollers.
Other
275 stars 110 forks source link

STM32F4DISCOVERY CAN port cannot communicate #49

Open CHTUZKI opened 8 months ago

CHTUZKI commented 8 months ago

HI.

I have downloaded CanOpenSTM32 and am using the STM32F4DISCOVERY example. I am using a USB to CAN adapter to communicate with the STM32F4DISCOVERY via CAN. However, I found that the CAN communication is not working properly, even though the baud rate is correct. To rule out issues with my wiring, I used an Arduino CAN example program, and I found that the Arduino CAN program works fine.

I don't know how to solve this problem, has anyone else encountered this issue and can help me? Thank you very much,

warmest regards.

HamedJafarzadeh commented 7 months ago

Hi @CHTUZKI,

Did you solve your issue ? It is probably some small configuration probably in my opinion (mixed RX/TX pins ? Wrong clocks ?) . If you follow the tutorial video, I'm using STM32F4Disco board and I didn't have any problems.

CHTUZKI commented 3 months ago

@HamedJafarzadeh Hi.

thank you for your reply.

image I use these two pins on STM32F4-DISCOVERY board.

I don't know the behavior of this program. Will STM32F4-DISCOVERY actively send data?

image

I used a logic analyzer and I put the probes on the PB5 and PB13 pins and the logic analysis did not detect any voltage

CHTUZKI commented 3 months ago

I feel like there's something wrong with my USB to CAN converter. There seems to be no problem with the program. I'm testing it.