STM32F446 I2S fails to work
Hi,
I have setup STM32F446 MCU such that, when pressing the user blue button, it will trigger an external interrupt. Inside the interrupt routine, it contains the I2S receive function:
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
int16_t audio_buffer[16000];
HAL_I2S_Receive(&hi2s2, (uint16_t *) audio_buffer, 16000, 100);
}
However, when debugging, as soon as I pressed the blue button the program just ceases to work. In the debugger console, the message displayed was:
Temporary breakpoint 1, main () at ../Src/main.cpp:82
82 HAL_Init();
Program received signal SIGTRAP, Trace/breakpoint trap.
HardFault_Handler () at ../Src/stm32f4xx_it.c:86
86 {
Could anyone please guide me on solving this issue? thank you.
