Skip to content

Garbage when send (probably when receive too) with data packet > 2048 #11

@rlowit

Description

@rlowit

There is a bug in wiznetinterface.cpp. Change code in WIZnetInterface::socket_send line 574 (Tested in nucleo l476RG)
ret = _wiznet.send(SKT(handle)->fd, (char*)((uint32_t )data+writtenLen) , (int)_size);
with
ret = _wiznet.send(SKT(handle)->fd, (char
)((uint32_t *)data)+writtenLen, (int)_size);

and probably too in WIZnetInterface::socket_recv line 687 (this is not tested)
retsize = _wiznet.recv(SKT(handle)->fd, (char*)((uint32_t )data + recved_size), (int)_size);
with
retsize = _wiznet.recv(SKT(handle)->fd, (char
)((uint32_t *)data) + recved_size, (int)_size);
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions