ganehag / cantt

CANTT is an Arduino library (or compatible) for sending long messages over CAN bus using a topic and payload
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

STM32, arduino framework #7

Open JoshSK opened 2 years ago

JoshSK commented 2 years ago

Hello, your idea is great but for cost optimalization I want to use STM32, in my case Bluepill but I'm starting to test on Blackpill with chinese MCP2515/TJA1050 CAN/SPI interface. Callback doesn't work with this configuration and I don't know why. When I use CAN0.readMsgBuf() on the receiver, I get the data sent from the cantt sender.

Could you help me please where the problem might be, I'm using your example. Thanks a lot

ganehag commented 2 years ago

It's been a few years since I played around with this. I do remember having a similar problem while I was developing, but I can't for the life of me remember what caused it or how I solved it. All I can say is to ensure that everything is wired up correctly. It may be that if the bus is not wired correctly and that causes a local echo.

If you own a logic analyzer, then use that to aid you in finding the cause.