Hard Fault during mg_send #3439
-
|
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: 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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
This is not a Mongoose issue, this is your issue using Mongoose. Moved to Q&A Please see our documentation, and follow the guidelines in our tutorials. |
Beta Was this translation helpful? Give feedback.
-
|
@scaprile Sorry for missing some information. For the rest, I left everything with the default values automatically generated by the IDE.
|
Beta Was this translation helpful? Give feedback.
This is not a Mongoose issue, this is your issue using Mongoose. Moved to Q&A
I can't tell without debugging your code. Our code is CI/CD and hardware tested.
Please follow your HardFault, see where that memory area is, see why your code ends up pointing there, fix it. Mongoose just allocs 4 buffers where you tell it to do it; assuming you are using our TCP/IP stack, thing you don't say (you didn't fill the template when you opened your issue, btw), something in your code may be trashing your memory, or you may not be using Mongoose properly, or with a small stack/heap on an RTOS (another unknown).
Please see our documentation, and follow the guidelines in our tutorials.
Check memory plac…