Go to previous topic
Go to next topic
Last Post 20 Oct 2008 08:23 AM by  mikea@logicpd.com
Reading bmp from CF. Unable to Open
 1 Replies
Author Messages
audint
New Member
New Member
Posts:


--
03 Oct 2008 11:16 AM
    Hello,

    I am just getting started with the SDK and have gone through draw-test with a custom LCD. Everything is fine. Now I have formatted a 2g CF on xp using FAT (not FAT32) and copied some bmps from my pc to cf, inserted the cf into the sdk, rebooted, mounted fatfs /cf (no problems) and below are the results:

    losh> mount fatfs /cf
    losh> video-init test84 8
    video-init display: width: 640 height: 480 bpp: 8 disp: test84
    losh> video-open test84 8
    closing old display
    video-open display: width: 640 height: 480 bpp: 8 disp: test84
    losh> bitmap /cf_card/bmp1.bmp
    error: bitmap: failed to open (/cf_card/bmp1.bmp)
    error: bitmap: failed to open
    losh>

    Why can't LoLo open the file? It is acting like it doesn't see the file. Is 2gig too large for the cf?

    FOUND THE PROBLEM....the path is not /cf_card/, it is just /cf/

    Thank You
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    20 Oct 2008 08:23 AM
    Try this:

    losh> bitmap /cf/bmp1.bmp

    You mounted the CF card as '/cf', not '/cf_card'.


    ---