AnsweredAssumed Answered

Please Correct BUG with SD code generation

Question asked by Avizzano.Carlo_Alber on Mar 2, 2017
Latest reply on Nov 14, 2017 by Amel N

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:

#ifndef BSP_SD_CardInfo
  #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'
   SD_CardInfo 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.


C.Alberto Avizzano