Fim Uart ME 9210 not working without JTAG debug

Hi I have a strange problem on Digiconnect ME 9210

I can open and use uart4 on FIM port using this code:
comb = open(“/com/4”, O_RDWR | O_NONBLOCK);

if (comb <= 0)
{
printf("Failed to open %s
", “/com/4”);
goto init_done;
}

if (tcgetattr(comb, &tios) < 0)
{
printf("tcgetattr failed
");
close(comb);
goto init_done;
}

tios.c_cflag &= ~CRTSCTS;
tios.c_iflag &= ~(IXON | IXOFF);
serl_flow_ctrl = FC_NONE;

cfsetospeed(&tios, serl_baudrate); /* set the baudrate */
if (tcsetattr(comb, TCSANOW, &tios) < 0)
{
printf("tcsetattr failed
");
close(comb);
goto init_done;
}

init_done:

And everything is working fine, under debug.
But with disconnected JTAG debugger, after I upload same firmware through FTP, FIM port is not working.

I using routines from FIM UART DRIVER Sample.
Same gpio.h

Where is the problem ?

Please build in release mode and update bootloader (rom.bin) using image produced by the above build. It is responsible for GPIO settings as well.