Skip to main content
jasonp4113
Associate III
July 23, 2014
Question

USB MSC ''STORAGE_GetCapacity_xx()'' bug

  • July 23, 2014
  • 1 reply
  • 409 views
Posted on July 23, 2014 at 05:09

Hi all

I am sure this has been discussed (although I cannot find any reference to it):

The SDIO capacity bug also extends to the ''STORAGE_GetCapacity_xx()'' functions where it enters with a pointer to a uint32_t value instead of uint64_t.

This needs to be changed in a few locations within the HAL source code so that any card > 4GB will be shown (and formatted) correctly in windows.
    This topic has been closed for replies.

    1 reply

    Montassar BEN ROMDHANE_O
    Visitor II
    July 23, 2014
    Posted on July 23, 2014 at 15:00

    Hi JasonP,

    This issue was already reported [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32Cube%20SDHC%20capacity%20bug%20%28solved%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=102]here. We 've notified our STM32Cube team that this is an issue. Please be patient as we work to fix it.

    Thanks for the feedback.

    With regards.