STM32F103C8T6 CAN communication using MCP2551 module
I am working in STM32F103C8T6, in that PA11/PA12- CAN RX/CAN TX pin connected with MCP2551's CTX and RTX. using DB 9 connector i cannot able to see the CAN data using ST-LINK V2. Kindly help me
I am working in STM32F103C8T6, in that PA11/PA12- CAN RX/CAN TX pin connected with MCP2551's CTX and RTX. using DB 9 connector i cannot able to see the CAN data using ST-LINK V2. Kindly help me
Hello,
You didn't mention if you have connected another node on the bus that will acknowledge STM32F103 frames. If not, and in Normal mode you can't neither transmit nor receive messages. CAN is not an SPI nor an UART to use it in stand alone except in Loopback mode.
MCP2551 transceiver needs to be supplied by 5V and tie Rs pin to the ground or at least over a resistor (refer to its datasheet)
Hope it helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.