lpcware

Reading from SD card

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by james on Tue Jan 17 19:32:25 MST 2012
Hi,

I am trying to read characters from the SD card and process them before copying them back into the SD card.

Using the efsl demo provided from code red cmsis examples i am able to write/read from the SD card, but how can i store the buffer from reading of a SD card into an array[] and return it from a function?

Sorry that this is a C programming question and not very relevant in this forum.

I have goggled for ways to 'return' array[] from functions but cant really work it out, and some of the files (pictures) are too big.

Basically I am trying to read a picture file, do some processing, for example adding red filter and write a new file into the SD card. Anyone have any good method to do this?

Outcomes