Search code examples
windowsembeddedstm32nucleo

development board is shown as external storage device when connected in windows


so when I connect my development board (NUCLEO-f446re) to my laptop , everything is working normally , but there is only one thing that confuses me , see the next picture

enter image description here

windows recognize my development board as external storage device with 1.52 MB size (partition named NODE_F446RE(E:)) when I open it , the next image show what I see

enter image description here

there is only 2 files there , the .HTM file takes me to this link and the .TXT file has the follow content:

Version: V2J40M27

Build: May 5 2022 13:16:48

so I don't understand what does this mean ?, like what does 1.5MB storage represent in my MCU even though , the flash size of my MCU is only 512 KB which is way less than the shown storage , also what happens if I put any .exe file in that partition ?


Solution

  • From the web page you link (emphasis by me):

    USB re-enumeration capability: three different interfaces supported on USB

    • Virtual Com port
    • Mass storage (USB Disk drive) for drag'n'drop programming
    • Debug port

    Your board offers the option to program your application. Simply drap and drop the bin (binary) file of the application into this drive.

    It is "just" a virtual drive, the software behind it does the flashing for you, if it receives a binary file.

    Why the size of the drive is bigger than the available flash memory, is not clear. Perhaps to allow for necessary overhead to mimic a file system, and to have room for the files you see.

    If you copy an exe file in it, I'd expect some kind of error message. Or that the file will not be stored. Experiment!