2023-12-10 11:53 PM
Hi,
i have STM32F767BIT6 MCU and microcontroller crashes into Hard Fault during initialisation of LWIP MX_LWIP_Init(); Problem is that in FreeRTOS is calling memcpy in queue.c in function prvCopyDataFromQueue with huge ammount of length.
( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize );
Source(pxQueue->u.xQueue.pcReadFrom) and destination(pvBuffer) address is correct placed inside internal SRAM area but length(pxQueue->uxItemSize) is so huge, that end address is placed out of accessible area. So it goes into HardFault_Handler.
When i created the same project in older STM32cubeIDE 1.6 (FW F7 package 1.16.x) it works fine but when i create project with newer STM32cubeIDE (1.10 or 1.12 or 1.14) with FW F7 package 1.17.x it crashes into HardFault_Handler.
Best regards,
Petr
Solved! Go to Solution.
2023-12-12 02:41 PM
I agree, the stack extension helps and it works with it.
Thank you for help.
2023-12-12 11:06 PM
Good news, You are welcome :)