Question
fatfs_platform.c needs a section /* USER CODE BEGIN Includes */ and /* USER CODE END Includes */ so we can call our user defined functions in BSP_PlatformIsDetected(), otherwise when the code is regenerated the manually inserted includes are lost.
Editing C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\plugins\com.st.stm32cube.common.mx_6.1.1.202012091304\db\templates\fatfs_platform_c.ftl
#include "fatfs_platform.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
uint8_t BSP_PlatformIsDetected(void) {Above "USER CODE BEGIN Includes and END" section fixes it ... until new firmware package is available.
