Rp2040 with droneCAN no messages

Hello everyone. I am implementing a program for working with droneCAN and RP 2040-zero. I encountered such a problem that messages are not sent from can2040. I send heartbeat so that droneCAN sends me a message, but in the end, as it turns out, messages are not sent at all, I am attaching the code and logs from the program. Maybe someone has encountered this? Or can help? (I will immediately answer that the connection via RX and TX is correct, there is a resistance of 120 ohms)
code:
code.txt (6.2 KB)
Logs:
Statistics can output all 0, and output heartbeat send