Closed iiinjoy closed 2 years ago
Hi @iiinjoy,
Thank you for your report. Your point is confirmed and has been logged into our internal database.
With regards,
Hi @iiinjoy,
I hope you are doing well. Back to you about this point. Although confirmed, our development teams said it is minor and, as no future release of the FatFs lib is planned, they will take no action.
Please allow me then to close this issue. Thank you for your comprehension and thank you for having reported.
With regards,
BUG: usbh_diskio, USBH_ioctl, cmd GET_SECTOR_SIZE: incorrect cast to DWORD instead of WORD
https://github.com/STMicroelectronics/STM32CubeH7/blob/ccb11556044540590ca6e45056e6b65cdca2deb2/Middlewares/Third_Party/FatFs/src/drivers/usbh_diskio_template.c#L215
fatfs expects WORD for GET_SECTOR_SIZE command:
https://github.com/STMicroelectronics/STM32CubeH7/blob/5975bffae9358bc2b2890a35a203d940a395efef/Middlewares/Third_Party/FatFs/src/ff.c#L5314
https://github.com/STMicroelectronics/STM32CubeH7/blob/5975bffae9358bc2b2890a35a203d940a395efef/Middlewares/Third_Party/FatFs/src/ff.h#L95
This bug is also present in other MCU Firmware Packages.