http://www.mikrocontroller.net/topic/216867 Storage_OpenReadFile(''STFILES'', ''STLOGO.BMP'', (uint32_t)&Wavebuffer, &bmplen); Check also that you are setting up the volume information properly first, or that the OpenDir stuff is even appropriate or used by OpenReadFile. If that doesn't work, try adding some debugging telemetry/instrumentation, or just use a debugger and get a clue about where the real problem is.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Let's bisect the problem a little. Is the problem with it loading the BMP, or with displaying it?
For instance, if you look at the buffer space you supposedly loaded from the SD card, can you see the data memory? Does the loading process generate any errors? How do you react to the errors? Are you initializing the file system structure properly? Can you load a text file for instance?
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Before you can find a solution, you need to identify what the problem is! What have you actually done to look for the problem? Have you used a debugger to step through the code? Have you tried adding diagnostic output so that you can follow what the code is doing?
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.