On STM32F7691 board using STM32CubeIDE. malloc halts at HardFault_Handler.
I am running Audio_playback_and_record example(shipped with IDE) into which I have integrated my neural network code . The code has malloc and when I try to execute the process function in loop , It stops at HardFault_Handler when trying to malloc.
For each malloc it tries to allocate the memory address instead of using the freed memory.
I have seen in few posts that sbrk is not implemented properly which might cause this issue(link).
Can you clarify the same ?
Can we use malloc for MCUs or should we go for static allocations?
Even though there are no memory overflows for stack and heap why do we see the malloc issue. Is the free implemented correctly here?
