Re: HardFault UDP Client
Split from: https://community.st.com/t5/stm32-mcus-embedded-software/hardfault-udp-client/m-p/716640
I have the same problem. @LEAMtw, I hope you don't mind if I add details here for my scenarios.
Error
Thread #1 [main] 1 [core: 0] (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)
MemManage_Handler() at stm32h7xx_it.c:105 0x8016138
<signal handler called>() at 0xffffffe9
ethernet_input() at ethernet.c:113 0x802e6c4
ethernetif_input() at ethernetif.c:347 0x8023e18
MX_LWIP_Process() at lwip.c:156 0x8023b6a
Firmware::MainRuntimeLoop() at firmware.cc:101 0x80034de
Boilerplate_Loop() at boilerplate.cc:16 0x80011d6
main() at main.c:131 0x8015458
When debugging, I noticed that `p` buffer is valid, however, the payload is invalid.

Name : p
Details:0x30004140 <memp_memory_RX_POOL_base+15680>
Default:0x30004140 <memp_memory_RX_POOL_base+15680>
Decimal:805323072
Hex:0x30004140
Binary:110000000000000100000101000000
Octal:06000040500
Name : payload
Details:0x9a000000
Default:0x9a000000
Decimal:-1711276032
Hex:0x9a000000
Binary:10011010000000000000000000000000
Octal:023200000000
In my case I am not using FreeRTOS, I am using a bare-metal approach instead.
Configuration
I have a STM32H723ZG. This is how things are configured.
## MPU


ETH

LWIP

STM32H723ZGTX_FLASH.ld

