Hi,
have you enable CANPHY and its supply via Aec as was shown in the example I shared?
Generally for testing CAN; check in debugger MCR, ECR,ESR1 registers to know module status and if any errors are detected after sending messages. Measuring CAN lines with scope/analyzer is also advisable.
BR, Petr