Setting up basic bidirectional communication over CAN using two stm32f042 nucleo boards
I am using the STM32CubeIDE.
I would like to use the standard HAL libraries to establish communication between two boards.
I looked around a decent amount for example code but all the code I have found uses either old or custom libraries incompatible with the current version of HAL.
Let me know if there is an easily accessible implementation tutorial or datasheet.
Please help me get the following functionality.
Functionality:
I want to have a button on each and be able to send a CAN message triggering the other board to toggle its on-board LED attached to PB3.
Schematic:
Two Nucleo STM32f042 boards with their PA11(CAN_TX) and PA12 (CAN_RX) cross connected.
a pullup resistor and wire attached to PB3 to be used as a makeshift button.
Best,
-Danny