STM32F0 Audio device HardFault_Handler(); error problem.
Hi,
I am currently trying to develop the Audio device on STM32F0 to stream audio data from USB to IS2 signal, although It worked without any issues on STM32F4 discovery board, when I am trying to apply same logic for Nucleo32 It does not seem to work at all. Windows displays the board like so:
I will try to describe my problem in more details; after successful compilation, while debugging, program stops on HardFault_Handler(); . Code part that seems to be error cause is in usbd_audio.c file in Middlewares section of the project.

I tried to add more heap memory to solve this issue but changing it in the project does not seem to affect STM32F042K6TX_FLASH.ld and when I change it manually it gives an compilation error.


The code is generated through STM32CubeMX, I have not done anything to it. Still I will attach them if someone would like to look through it.
Am I on good track? Did anyone had that issue before? Please share your thoughts.
