I’m not sure what library you are using, but I know this one works for sure.
github.com/coryjfowler/MCP2515_lib