Hi llich,
Have you cross checked the PINMUX & PLL clock settings against the working code? Because you’re not touched the PINMUX settings in the AISgen configuration
Are you flashing the code with (-flash_noubl) command for single bootable image in the flash memory?
Have you tired other working code and followed the same procedure to flash the image? In order to make sure the steps you’re following are correct and the board is good when booting from NAND flash. Try using the same cmd file and AIS CFG.
Have you tried connecting the Emulator and see which place it gets stuck?
Regards
Antony