Hi,
You need not change the state of pins. The loopback mode is used for internal test, for example testing of receive/masking operation. FlexCAN behaves as it normally does when transmitting and treats its own transmitted message as a message received from a remote node. The ACK field is ignored so the message can be received normally.
In the loopback mode no message is visible on TX output, it goes to the recessive state (logic “1”).
BR, Petr