I’m trying to use Timo’s great NMEA2000 library on a STM32.
How do I specify which SPI port to use?
I also have a TFT connected, which needs max SPI-speed, but the CAN controller has a max of 10MHz, so I want to use two SPI-ports on my STM32.
Im using a Bluepill, but changed the STM to a STM32F103CBT6 (more memory).
I’m using Visual Studio Code with PlatformIO - a ST-LINK for upload/debug, a MCP2515 as controller and MCP2542 for transceiver.
The micro should have 2xSPI, but I can’t find info how to use SPI2
Just tell me if you need more information…