Reading from SD card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading from SD card

819 Views
lpcware
NXP Employee
NXP Employee
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?
0 Kudos
Reply
2 Replies

786 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by liza on Sun Apr 08 05:13:04 MST 2012
Hi
Did you use LPC1768 (as in the demo) or did you port it to another micro ?
0 Kudos
Reply

786 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Jan 18 01:09:05 MST 2012

Quote: james
...this is a C programming question...



Yes, so google for "array pointer C" and you should find something readable like

http://pw1.netcom.com/~tjensen/ptr/ch8x.htm


Quote: james
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.



Then return a pointer :)
0 Kudos
Reply