Hi Ikki,
Please test the code I have attached. Please ignore the name of the project. I have not used loopback mode now but his setup possibility is still visible there.
If you want to see what is sent then connect probe to a TXCAN . It is CT1. (It is close to JP4, close to CAN connector or close to CAN_EN jumper)
GND connect to J8 pin 4 on the board.
You have to see traffic on the Tx pin if you use the code I attached.
BTW; if you use setup for loopback (in the function main.c) then send/received data and IDHIT can be check by means of PC (UART for 9600bps)
For CAN setup you can find (main.c):
// init_CAN(0,0xC3, 0x58, 1); // 125 kb/s, loop enabled/disabled=1/0, - LOOPBACK MODE
init_CAN(0,0xC3, 0x58, 0); // 125 kb/s, loop enabled/disabled=1/0, - NORMAL MODE
Best regards,
Ladislav