2024-11-14 01:03 AM - last edited on 2024-11-14 02:42 AM by SofLit
i recently made a custom board using stm32h743VIT6 and i configured lwip and freertos (before this i was using stm32f407vgt6 it is perfectly working and the circuit is same for this MCUs) now when i start the program it keeps having hardfault i tried it with MPU but still im having hardfault i changed the clock setting from external to internal but nothing changed only when i commented out MX_LWIP_Init() its working its better to mention im having only one task in freertos with 2048 stack size and also the lwip init is done completly after a little hard fault come up.
my hardfault analyzer returns "Bus memory management or usage fault with bus fault details imprecise data access violation".
im not having any httpd or anything on lwip i only want to get a simple ping.
2024-11-14 02:41 AM
Hello,
Check what MX_LWIP_Init() is accessing as variables, it could be due to an access to a non-initialized/NULL pointer/buffer. Check your map file, and if you are using MPU, check the memory regions you prohibited for access.
Check out this article "How to create a project for STM32H7 with Ethernet and LwIP stack working"
Also refer to this article on : "How to debug a HardFault on an Arm Cortex®-M STM32"