I need some help as to how to go about reading data from an sd card using rlp as i am processing my information through rlp and reading data through c# will not work and will be slow compared to native coding.
I am using a FEZ hydra to build a portable video player. I have an lcd and configured it by using the lcdcontroller.configuration method in c# and thereafter updating the lcd base address in rlp with the pixel format in order to update the lcd.
The only problem i am having is video decoding,whichever video format it may be. Reading from the sd card through c# will not be fast enough and it will be easier to pass data from the sd card to the decoder algorithm using rlp . Therefore by using native code to implement the sd card the system will be faster as i need to read and decode data at a relatively fast rate. Any ideas with to help me would me much appreciated.
Using the libmpeg2 video codec isnt easy as well.
Please provide me with any help as i am relatively new to video decoding as well as implementing file systems.
I have ordered a Hydra one week ago. Once I receive it I’ll be able to check things out.
In the meanwhile you can search for the open source FATFS library.
Btw, why are you using NETMF anyway? Seems like your project doesn’t benefit from it. Get a jtag programmer and write directly in C++ is also an option on the hydra (that’s one of the reasons I’ve ordered the board)
Im using netmf for the interface and the module usage and im more familiar with c# rather than c.
Can you please email me your fatfs code if you dont mind. I will try and use the idea and incorporate it in my design.
(208512294@ stu.ukzn.ac.za)
I will not share the code because it took me a LOT of time to get it working. But if you google FATFS, on the projects site you’ll find example implementations for STM32 and LPC23xx. If you had EMX, I could give you a compiled objectfile for you to use.
The fat library itself will work in rlp lite but interfacing the SD card might be difficult because you need to handle DMA, timer and SD card interrupts.
Is it possible to open a file stream in RLP after you have mounted the sd card in c#?? Ive sorted displaying the frames from a video file although i am reading the data from the sd card through c# and i have timed it and its taking abit long to actually read the bytes from the file.