cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Communication in Loopback mode with STM32F407

rohitkumarkv07
Associate III

I want to implement CAN Communication in Loopback mode in which I have added Can interrupt mode . In Tx interrupt it will sent data after every 1000 m/s and data increment . In Rx interrupt it will read the sent data. I compiled the code and it will show me the value in live registers.  But I am not able to see that in logic analyzer. Suggest me some ideas to help me out.

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

What config you have enabled?

This one:

SofLit_0-1716928168605.png

or this one:

SofLit_1-1716928196501.png

Or this one?

SofLit_2-1716928249621.png

You need to select the second one and configure the correct GPIO pin.

And don't forget to enable the pull-up for Rx pin.

Otherwise you need to share your project for an efficient help.

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
PS: This is NOT an online support (https://ols.st.com) but a collaborative space. So please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.

View solution in original post

3 REPLIES 3
Karl Yamashita
Lead III

You haven't said which CAN controller and the port pin you're monitoring. Is the CAN transceiver in place and are you connected to other CAN nodes? If so, are you probing before or after the CAN transceiver? If it's after the Transceiver, is the RS pin pulled low?

Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.
SofLit
ST Employee

Hello,

What config you have enabled?

This one:

SofLit_0-1716928168605.png

or this one:

SofLit_1-1716928196501.png

Or this one?

SofLit_2-1716928249621.png

You need to select the second one and configure the correct GPIO pin.

And don't forget to enable the pull-up for Rx pin.

Otherwise you need to share your project for an efficient help.

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
PS: This is NOT an online support (https://ols.st.com) but a collaborative space. So please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.
Harikalakshmi
Associate

can pls post your source code here.