@Robin_Shen ,
you are correct. This is the example code taken and configured.
I'm using TI's TCAN1167 board as a external SBC. The part number is TCAN1167-Q1. It is enabled successfully and the same also verified. We are writing value 7 to MODE_CTRL register of SBC, this will set to Normal mode.
The connections are as below,
PTC 16 - CAN Rx pin from MCU connected to SBC Rx
PTC 17 - CAN Tx pin from MCU connected to SBC Tx
CAN H & CAN L to CAN tool
Apart form these, spi lines (SDO, SDI, cs, clk) are connected to the SBC board from MCU.

Thank you