When i plug in my STM32 Nucleo-f303k8 windows detects it as a mass storage device. Is there any way to write data in this memory from the ucontroller?
There was a long discussion about this a couple of months ago - IIRC, the conclusion was, "No."
The mass storage that you see is for the mbed bootloader.
Can you link me that post please?
The forum is currently in a semi-broken state, providing directly links fails in most cases and for many users.
The flash arrangement and speed of write/erase is not conducive to real-time operation and management of 512 byte block devices. Erase and Write will stall the processor when running code from flash.
I would have but, as Clive One says, the forum is not currently in a fit state.
The ST-LINK is faking a MSC, you can write a binary that replaces the entire memory content of the target device. This is how the mbed drag-and-drop programming works.
Retrieving data ...