Solved
HardFault_Handler() at stm32l0xx_it.c:85 0x80008b4
MX_GPIO_Init();
MX_SPI2_Init();
MX_USART2_UART_Init();
MX_FATFS_Init();
/* USER CODE BEGIN 2 */
W25Qxxx_Init();
fres = f_mount(&fs,"0:",1);
if(fres == FR_OK)
{
v=9;
fres = f_open(&fp, "info.txt", FA_OPEN_ALWAYS|FA_WRITE);
}
else
{
v=2;
}
trying to use spi flash using fatfs .
but occur hardfault handler when calling fopen . i am not sure whether it is from fopen or not.
