STM32 + MCP2515 CAN Example
STM32F103RB Nucleo board & Sparkfun CAN-Bus Shield were used for example. https://blog.naver.com/eziya76/221188525127
I've downloaded MCP2515 SPI libraries form Microchip site and modified them for STM32 HAL library.
Reference