2024-09-11 01:35 AM - last edited on 2024-09-11 01:49 AM by SofLit
I am working on NUCLEO F446RE, I need to use CAN1 and CAN2 on the STM32 NUCLEO-F446RE board. I tested CAN1, which works normally for sending and receiving data, but when I tried CAN2, it didn’t work at all. I looked for solutions in https://community.st.com/t5/stm32-mcus-products/how-to-configure-can-filters-to-use-can1-and-can2-parallelly/td-p/56553?attachment-id=595 and https://community.st.com/t5/stm32-mcus/stm32-in-dual-can-configuration-bxcan-filter-bank-explanation/ta-p/698739 , but CAN2 still doesn’t work. here is my code
Solved! Go to Solution.
2024-09-11 04:06 AM
I need to desolder my shield. Please wait. I think there might be an issue with my hardware.
2024-09-11 04:48 AM
Hello,
I've created a project with CAN1 and CAN2 are communicating together on NUCLEO F446RE in Normal mode using two MCP2561 transceivers and the communication is working well. I didn't change any SB solder bridge on the board.
I'm using Interrupts instead of polling. In CubeIDE See live expression CAN1_RxData[] and CAN2_RxData[]: the data are changing. CAN1 is sending data to CAN2 and vice versa.
Use the attached project and connect CAN1 to CAN2. Remove the other nucleo from the bus and get back to me with the result.
Hope it helps.
2024-09-11 10:44 AM
After I desoldered the shield connected to the Nucleo board, I found that there was a short circuit on the CAN2 transceiver IC. It works fine now. Thank you for your help, and I apologize for wasting your time.