Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F4DISCOVERY CAN port cannot communicate #49

Open
CHTUZKI opened this issue Dec 1, 2023 · 3 comments
Open

STM32F4DISCOVERY CAN port cannot communicate #49

CHTUZKI opened this issue Dec 1, 2023 · 3 comments

Comments

@CHTUZKI
Copy link

CHTUZKI commented Dec 1, 2023

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
Copy link
Collaborator

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.

@HamedJafarzadeh HamedJafarzadeh added question Further information is requested Need more info and removed question Further information is requested labels Jan 24, 2024
@CHTUZKI
Copy link
Author

CHTUZKI commented May 10, 2024

@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
Copy link
Author

CHTUZKI commented May 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants