NUCLEO-F413ZH both CAN 2 or CAN 3 not receiving or transmitting (University Student help!)
- January 22, 2020
- 2 replies
- 2096 views
Hi,
I've made a code that sends the same CAN message but different IDs, I'm using a USB - to - CAN logger to see the communication between these three CANS (1,2,3). I'm running into a problem where the code compiles fine, builds fine, and debugs successfully into the Nucleo board but doesn't transmits/receives any messages through CAN 2 & 3. CAN 1 works fine and receives (works because there's an RX interrupt as well -> LED Blinks) . These are the measures I've taken in trying to figure out what's happening:
-Re-initialized the CANS through the CUBE interface software
-Disconnected each CANL & CANH pin in figuring out one by one which ones were working
-CANS are all the same parameters and matched accordingly to reference, CAN1 works, so I'm just puzzled as to why CAN2,3 are not?? Note: CAN2 is a slave, CAN3 is a master
Given:
-Can bus (120 Ohms terminating bus)
-GND
-Power to each 3x Transciever
-Pins connected accordingly to Tx/Rx of the IC transciever
-CANL/CANHs are connected fine
-Code is attached below
-A JPG is attached below, indicating CAN1's messege is recieved by my logger as well as an interrupt happening through RX of CAN1, although I did enable interrupts for CAN2,3 , they don't work (Physically disconnected the CANL/CANH pins per canbus to pinpoint)
Any help would be greatly appreciated!