Resolved! stm32cubeide bug with code generation
I have found an issue with code generation from .ioc file. Using STM32H7S78 DK when choosing pins for FDCAN2 (I chose pb5 and pb6), after code generation it doesnt set pb 6 as an RX. Even if you manualy add it in the code it will remove it after code...