Skip to content

Hard Fault during mg_send #3438

@paolopepe00

Description

@paolopepe00

I'm using a STM32H743VIT board and I have a TCP client that continuously sends messages in a loop to a remote host. The issue is that, after a few successful iterations where messages are correctly received by the remote device, the system अचानक triggers a HardFault inside the mg_send function, specifically at this point:

bool mg_send(struct mg_connection *c, const void *buf, size_t len) {
  struct mg_tcpip_if *ifp = c->mgr->ifp;

While debugging, I observed that the ifp pointer appears to reference a memory region that is not accessible or valid. However, I do not understand why the HardFault does not occur immediately, but only after several successful transmissions.

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