Hi,
I already solved the problem.
The sources were taken from Toradex and MCC support is present in it. The thing was that some initializations for some peripherals that were properly done with the previous kernel/u-boot, weren't done in this kernel/u-boot.
After changing u-boot sources in order to enable clocks and initialize those peripherals code wasn't getting stuck anymore and the execution went through.
Thanks for your interest,
Julen.