Hi,
the example is configured in Loopback mode, so can be useful to test sending/receiving operation, interrupts, etc, but for sure no communication with external nodes is functional. To allow this some modification have to be done, mainly adding pins used to connect with CAN transceiver, proper CAN bit timing, etc.
1. CAN protocol clock is set in Clock config tool. By default FIRC is used (48MHz), so this can be kept
2. In flexcan component use below setting for 500 kbit/s assuming 48MHz PE clock, also change operational mode

3. you should add used CAN TX /RX pins in Pins config tool, based on your HW.
4. Add Siul2_port driver in Peripherals config tool and Update code.
5. Use attached main.c
I do not have any board, so did not test it, but hope it helps little bit.
BR, Petr