Skip to main content
4316139955_stm1_st
Associate II
April 28, 2011
Question

Read a Image on the LCD

  • April 28, 2011
  • 5 replies
  • 1101 views
Posted on April 28, 2011 at 12:47

Read a Image on the LCD

    This topic has been closed for replies.

    5 replies

    4316139955_stm1_st
    Associate II
    May 17, 2011
    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)?

    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    May 17, 2011
    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?

    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.
    Andrew Neil
    Super User
    May 17, 2011
    Posted on May 17, 2011 at 14:33

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

     

     

    Apparently it does:

    /db467708

    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.