cancel
Showing results for 
Search instead for 
Did you mean: 

Read a Image on the LCD

4316139955_stm1_st
Associate II
Posted on April 28, 2011 at 12:47

Read a Image on the LCD

5 REPLIES 5
Posted on May 17, 2011 at 14:33

Cross -posted

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
Up vote any posts that you find helpful, it shows what's working..
4316139955_stm1_st
Associate II
Posted on May 17, 2011 at 14:33

It doesn't work too, if I change the Directory. I tested anything, but I cant find a solution...

Anyone has a example programm to see a image on the lcd (stm3210c-eval)?

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 14:33

''but I cant find a solution''

 

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?

Posted on May 17, 2011 at 14:33

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
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III
Posted on May 17, 2011 at 14:33

''Does the loading process generate any errors?''

 

 

Apparently it does:

/db467708