cancel
Showing results for 
Search instead for 
Did you mean: 

Saving external flash data on file

Nico3
Senior

Hello I am using STM32F0 Series MCU. 

I am saving some data every 10 minutes on external Adesto flash. I am able read data from ext flash and display on console using printf command. Now I want to save the data on external file rather than just display only. please suggest a way so I can save data  in .txt file 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
raptorhal2
Lead

If it is not a requirement to save directly from F0 to a file device, printf to a PC/Mac serial terminal program. Usually it will have a log to file capability, or you can copy and paste terminal display text to a text processor such as NotePad.

View solution in original post

3 REPLIES 3
RhSilicon
Lead

Text file will need some file system. Therefore, it may be more advantageous to use an SD card or a USB Flash Drive.

I made a project that save data in FLASH W25Q64 and export data via USB. But most users prefer to use SD card, it is less laborious.

raptorhal2
Lead

If it is not a requirement to save directly from F0 to a file device, printf to a PC/Mac serial terminal program. Usually it will have a log to file capability, or you can copy and paste terminal display text to a text processor such as NotePad.

RhSilicon
Lead

It might be interesting to know this:

https://www.usb.org/getting-vendor-id

(Some manufacturers like FTDI may offer some ICs for use without the need to obtain a license, but the design may look less professional)

A vendor identification is necessary for obtaining a certification of compliance from the USB-IF. The USB-IF is responsible for issuing USB vendor identification numbers to product manufacturers.

Alternatively, many members of the open source community promote the use of USB VID 0xF055 (visually similar to FOSS) for open-source hardware projects. Although this VID is not registered to any company (as of October 2015), the USB-IF have not released any confirmation about reserving it for this particular purpose.

Source: https://en.wikipedia.org/wiki/USB_Implementers_Forum