We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am working on a SOC which has 8051 microcontroller core & a 24 bit DSP. It has 16 KB of data RAM (on soc). 14KB is already occupied by other applications. So by using the remaining 2KB memory in data RAM, i have to sort the 200 audio files alphanumerically ( Long filename FAT32 ). Can anybody help me in this problem?
Do the filenames have to be stored in the 2KB or are they stored elsewhere? With a maximum filename of 255 bytes for FAT32, 200 files will take up ~50KB. So you'll need very large kilobytes if it needs to fit in 2KB ;-)
Can anybody help me in this problem?
Your local library can. Get a textbook on basic algorithms. Or, if you can afford it: get your own copy of the bible of computer science: Knuth, Donald E.: The art of computer programming. That's 500 pages on sorting and searching alone.
We are storing audio files & application build on Nand Flash. Application is split in to banks. I need to display songs stored in NAND flash in alphanumerical order. Any suggestions/ ideas ? Thank you Best Regards
Use a small index that will eventually lead you to the filename, sort the indexes by filename, display filenames through the indexes.