0
\$\begingroup\$

I have a custom board with a STM32F411 and a MCP25625 chip, which I did not create. But now I need to write a firmware on it so that this board communicates with another board via the CAN bus. I know on which pins the MCP25625 is connected to the mcu. But I cannot find libraries and examples of how they can be connected programmatically so that the CAN bus can work. The only library that I have found is CANnuccia, but it seems to me that it will not work for this case, and even more so, I have not found any examples using this library. Well, the question itself - which library should be used in this case and how to link them programmatically. (I already know how to upload firmware to this board, write PWM to it, etc.). Most likely this question will not be correct for this site, but I hope for any help and advice. Thank you.

\$\endgroup\$
8
  • 1
    \$\begingroup\$ Arduino should have libraries. Have you looked there? \$\endgroup\$
    – Kartman
    May 26, 2021 at 11:13
  • \$\begingroup\$ Im using STM32CubeIDE, should I use Arduino IDE? \$\endgroup\$ May 26, 2021 at 11:31
  • \$\begingroup\$ That's your choice. I'd use platformio, but that's mine. The choice of IDE is not the issue - you want library code. Does cubemx not have any CAN libraries? \$\endgroup\$
    – Kartman
    May 26, 2021 at 11:34
  • \$\begingroup\$ Im not sure about how to check this out. But I do not see any CAN libraries in my project. \$\endgroup\$ May 26, 2021 at 11:40
  • 1
    \$\begingroup\$ Ok, you're not using the F411's can controllers. A quick Google found this: github.com/coryjfowler/MCP_CAN_lib \$\endgroup\$
    – Kartman
    May 26, 2021 at 11:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.