Home/Support/Support Forum/Fim Uart ME 9210 not working without JTAG debug
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Fim Uart ME 9210 not working without JTAG debug

0 votes
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\n", "/com/4");
goto init_done;
}

if (tcgetattr(comb, &tios) < 0)
{
printf("tcgetattr failed\n");
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\n");
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 ?
asked Mar 3, 2017 in NET+OS by mispacek New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
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.
answered Mar 3, 2017 by LeonidM Veteran of the Digi Community (2,891 points)
...