STM32 FATFS with SPI FLASH
I am trying to interface a SPI flash from Winbond (W25Q64JV) with FATFS.
I have no previous experience with FATFS.
I initialize FATFS in CubeMX with the option "used-defined" and modified the MAXIMUM and MINIMUM Sector Size to 4096, as it is the smallest possible erase sector dimension.
I Got a Sample github code. This is It.
https://github.com/maxiufeng258/SPI_Flash_Uart_Led_Polling_V1.0.
i got w25Qxxx file from this github file which contain spi command to interact with w25q64.
Now i know i should edit User_diskio or diskio,c as mentioned in the gitcode.
i done it and got hardfault error at HAL_SPI_Transmit() function.
i know that so many done and success it before .
but i dont get a clear picture of how it done. anyone guide ASAP
