Freescale Semiconductor
Freescale MQX™ File System (MFS)
Register  ·  Sign In  ·  Help
Jump to Page:   1
  Reply  

Writing stream data to usb
Options    Options  
Jairo
Visitor
Posts: 9
Registered: 2009-09-13


Jairo

Message 1 of 2

Viewed 259 times


Hi, i want to know how to manage files, i understand all about files managing in C on a PC, here is my problem: I got a data stream captured with A GPIO port, that stream is an image, and i want to save it to an USB stick, so it's necesary load all the image in RAM (the image data expected doesn't fit in the RAM) or i can write byte to byte received to the file whitout loading all the data in RAM?
2009-09-25 04:28 PM
  Reply  

Re: Writing stream data to usb
Options    Options  
Third-Party Moderator EAI
Third-Party Moderator
Posts: 49
Registered: 2008-09-25


EAI

Message 2 of 2

Viewed 194 times


Yes you can write byte by byte to a file, but for better performance I would recommend writing 512 bytes at a time.
2009-10-08 02:12 PM
Jump to Page:   1