After running the CAN example code, I connected a PCAN-USB adapter to S32k344 J32 which is the output of the CAN transceiver TJA1443ATK. But then, I don't receive any CAN message via the PCAN-view GUI. My question is are there a code different from the given example that will cause the CAN controller to send CAN message over the CAN BUS given that the example code implements the LoopBack feature.
Thank you @PetrS . Actually I ran the flexcan example as CAN example doesn't have an option to change to normal mode. However, nothing appears in the PCAN-view GUI after connecting the PCAN- USB adapter to the CAN transceiver TJA1443ATK. Attached is my code
Hi,
which board do you use? If self made one, please share MCU-CAN PHY circuitry.
If nothing can be sent, check if right pins connected to CAN transceiver are used and initialized. CAN transceiver has to be active and terminated.
Then check module ECR/ESR1 registers to know status and possible errors detected.
BR, Petr
Hi @PetrS. I'm using S32K344 Rev B board and from the board schematic, the CAN transceiver is internally terminated with 120 ohms resistor while the PCAN usb adapter is also terminated with 120 ohms as well . I've also added pin configurations for PTA 6 (CAN0_rx), PTA7(CAN0_tx), PTC20(CAN0_STB), PTC21(PTCCAN0_EN) and PTC23(CAN0_ERRN).
Attached is the ECR/ESR1 register status
Hi,
not sure of the board still...
From ESR1 it seems module is not synchronized to the bus. Check pin setting and RXD line.
BR, Petr
BR, Petr