cancel
Showing results for 
Search instead for 
Did you mean: 

LwIP crashes on STM32H563

pbayton9
Associate II

I have an STM32H563 running FreeRTOS and LwIP with the netcon interface.

For the most part its working OK, however when I send a lot of data (around 250KB/s for a few seconds) it crashes with a HARD_FAULT

It looks like the memory (pbufs) are being corrupted

The driver (etherentif.c) is based on LwIP/LwIP_HTTP_Server_Socket_RTOS/Src/ethernetif.c

taken from the STM32H7 cube

Is there an updated driver for the STM32H5 or one with known reliability ?

 

1 REPLY 1
Andrew Neil
Super User

LwIP debug options:

https://community.st.com/t5/stm32-mcus-products/lwip-ethernet-in-stm32h7-working-in-stm32cubeide-but-not-in-iar/m-p/748501/highlight/true#M267524

Debugging Hard Faults in general:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/708193/highlight/true#M51

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.