Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- What happens if your writes are:
netconn_write(com->conn, "abcd", 1, NETCONN_NOCOPY);
netconn_write(com->conn, "efgh"i+1, 1, NETCONN_NOCOPY);
netconn_write(com->conn, "ijkl"+2, 1, NETCONN_NOCOPY);
netconn_write(com->conn, "mnop+3", 1, NETCONN_NOCOPY);
netconn_write(com->conn, "qrst", 1, NETCONN_NOCOPY);The problem might be with misaligned transfers. --- Quote End --- Dsl, happens essentially the same – the same garbage on the boundaries of short writes. Bill’s driver handles misaligned writes by copying into temporary buffer on stack. I’ve attached complete session dump (for these tests I use shell.c from lwip contrib and just modify com_help()).