2016-03-19 12:50 PM
Hello,
I am newbie in STM microcotrollers family. Other HelloWorld project work's fine. Now I have new project, I would like show data from memory on microcontroller on my PC. I created project in STMCubeMX then build and load on flash from KEIL, Connect my NUCLEO 64 board on PC over USB and in my computer show USB Flash drive, but I cannot open this because is in RAW format. I don't know how to view my data on MCU. Please help me. :D Thank you for answering. #massstorage #usb2016-03-20 12:19 PM
2016-03-23 07:34 AM
I wish to access my data on the flash. How can I do it?
Can I create a txt file on MCU and then show this file on my PC, over USB.2016-03-23 08:40 AM
The MSC here is provided by the ST-LINK, not your target chip. The ST-LINK also provides a VCP, you could use that to transmit a stream of data via one of the USART on you target.
2016-03-23 11:18 AM
I ran an example, which was generated in STM32Cube. I connected the USB with the PA11 and PA12. I set the jumper on E5V and the device showed on my PC (Raw file system). I can see the memory map with HEX Editor.
I wish to save data fron the GPS module and access them through the USB connection.
Is there a way to access the memory on a SD card if it is connected to the MCU?
2016-03-23 12:46 PM
I wish to access my data on the flash. How can I do it?
Can I create a txt file on MCU and then show this file on my PC, over USB. Only if the file exists in the media before you connect the MSD to the PC.The controller firmware cannot create the file or modify the file while the MSD is connected to the PC.The PC owns the media. There is one master, and it is the PC.if your data is dynamic, then choose another transport such as CDC or HID.2016-03-24 07:15 AM
> the device showed on my PC (Raw file system).
> I wish to access my data on the flash. How can I do it? You may directly read the drive sectors from the MSC device to your PC, like your 010 editor / drive editor mode. For Linux application, just open() the drive device, like this post,
http://stackoverflow.com/questions/7289453/reading-hard-disk-sectors-in-c-on-linux
For Windows, SPTI (SCSI Pass Through Interface) is available. Send READ10 SCSI command over SPTI.https://msdn.microsoft.com/en-us/library/ff560519%28VS.85%29.aspx
https://github.com/Microsoft/Windows-driver-samples/tree/master/storage/tools/spti
Tsuneo2016-03-29 07:54 AM
Is there a way to access the memory (over usb) on a SD card if it is connected to the MCU?