The new format of code generation makes a BUG in the file: bsp_driver_sd.h
The BUG prevent building FAT_FS modules
To solve the issue line 67 should be changed with the following ones:
#define BSP_SD_CardInfo HAL_SD_CardInfoTypedef
#define SD_CardInfo HAL_SD_CardInfoTypedef
DETAILS: there was a typo in the first define (capital vs small cap Typedef vs TypeDef)
The second define is the one required by sd_diskio.c
...Middlewares/Third_Party/FatFs/src/drivers/sd_diskio.c:161:3: error: unknown type name 'SD_CardInfo'
This is an error in code generation (e.g. cube program) and not the library files and there is no way to rollback after an update (very annoying). Any help in solving this issue faster is appreciated.