Skip to main content
Graduate II
October 15, 2023
Solved

Flash drive in Nucleo-F446RE

  • October 15, 2023
  • 2 replies
  • 2211 views

Hello,

When I plug this board to my computer, appears a removable disk of 1,6 MB capacity.

Is this disk accessible from the MCU? For store small data, or make a datalogger

Where the filesystem is stored? Neither the STM32F446RE nor STM32F103CB of the STlink have enough capacity

 

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    It's a faux MSC device to allow for drag-n-drop of binary files to flash onto the STM32F446. A bit like the UF2 loader used on Arduino/RPi Pico type boards.

    The STM32F1 used for the ST-LINK provides a CDC/VCP and MSC class device, and emulates a FAT Volume for the purpose of writing into the FLASH of the Target

    2 replies

    Graduate II
    October 15, 2023

    It's a faux MSC device to allow for drag-n-drop of binary files to flash onto the STM32F446. A bit like the UF2 loader used on Arduino/RPi Pico type boards.

    The STM32F1 used for the ST-LINK provides a CDC/VCP and MSC class device, and emulates a FAT Volume for the purpose of writing into the FLASH of the Target

    Graduate
    March 28, 2025

    Hello Tesla DeLorean

    i 'm able to make an MSC class device using USBX connected to a volume emulated in RAM using FileX

    but i'm only able to do a volume of 64K that have a real capacity of 64K (actually is less but i think its because part of the space is the FAT)

    did you know how ST is able to "FAke" the 6mb of space?

    i think i can use the number i want on the ULONG USBD_STORAGE_GetMediaLastLba(VOID) function but only this don't help.

    I want to drag and drop a config file on to the microcontroller and i dont need to have  the real file at the finished operation of copy (like ST do with the bin file) but to have access on the file to store value on a eeprom 

    thank you

     

     

    Super User
    March 28, 2025
    Visitor II
    October 15, 2023

    Sorry. Can't understand. Which specific board are you using? The appearance of a removable disk of 1.6MB capacity when you plug a board into your computer typically indicates that the board has a USB Mass Storage interface.

    Graduate II
    October 15, 2023

    If you can't read and understand the question, don't answer it. The board is explicitly stated by the OP