none
WEC7 - getting Logo.bmp to display whilst booting from SD Card RRS feed

  • Question

  • Hi everyone

    (Using WEC7 with Adeneo BSP on TI AM335x)

    I'm trying to replace the splash screen that comes up during EBootSD to my own.

    During the EBootSD phase I get the following message

    BLSDCardReadLogo:  cannot open Logo.bmp

    (instead it displays 4 coloured rectangles which I believe are generated by code rather than being a bitmap)

    When I place my own Logo.bmp (with the correct pixel dimensions) on the SD Card I get

    BLSDCardReadLogo:  cannot read file header 

    It seems like its picking up the logo.bmp but its not in a format it likes.

    I've tried creating the .bmp to various formats ie RGB565 but no joy.

    Anyone got any ideas?

    Is it ok to copy the Logo.bmp onto the SD Card as normal or do I need to use the TI tool that formats and writes MLO, EBootSD and NK.bin to the SD Card?

    Regards

    Terry

    Friday, November 21, 2014 1:47 PM

Answers

  • Ok I think I've now cracked it (for my system at least)

    STEPS TO CREATE SPLASH SCREEN
    =============================
    1. Create required splash screen as 32 bit .png file
    2. Make sure X and Y pixel sizes are as per LCD display.
    3. Flip the image top to bottom (otherwise it will be upside down)
    4. Use the tool at https://pngtobmp32.codeplex.com/ to convert to a 32 bit .bmp file which is suitable as WEC7 Splash Screen.
    5. Ensure bitmap is called logo.bmp. Use Windows Explorer to copy to SD Card.
    6. ReBoot system - new Splash Screen should be displayed as WEC7 comes up.

    I think more modern versions of Paint.NET, Gimp etc are producing .bmp files that aren't suitable for WinCE (and MSPaint only produces 24bit .bmp) 

    • Marked as answer by Terence P Monday, November 24, 2014 3:37 PM
    Monday, November 24, 2014 3:37 PM

All replies

  • Hi Terry,

    If the source code is available, then the BSP Vendor might have shipped the sample logo.bmp file. Look for its format and try to create your logo.bmp similar to the bmp file shipped by vendor.

    You can try copying using TI Tool.

    Regards,

    GSR

    Monday, November 24, 2014 8:43 AM
  • Hi GSR

    Thanks for the reply.

    I did manage to find a logo.bmp in C:\WINCE700\platform\CM_T335\FILES
    (its a bitmap of the desktop wallpaper)

    When I copied this onto the SD Card using Windows Explorer it worked. (though upside down)

    The header part of the file is

    Hex Addr 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    ---------------------------------------------------------
    [00]     42 4d 36 70 17 00 00 00 00 00 36 00 00 00 28 00
    [10]     00 00 20 03 00 00 e0 01 00 00 01 00 20 00 00 00
    [20]     00 00 00 00 00 00 c4 0e 00 00 c4 0e 00 00 00 00
    [30]     00 00 00 00 00 00 ff ff ff ff ff ff ff ff ff ff
    [40]     ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

    This suggests the bmp is in 32bit.

    I've now got another problem

    When I try and create my own bitmap I can create a 32bit BMP (using Paint.NET) but I get the wrong colours.

    The logo.bmp that comes with the BSP seems to have the 4 pixel bytes in little endian form. ie

    0x FF FF FF FF
    0x EC EC EC FF
    0x D3 D3 D3 FF

    whereas my bmp seems to have 4 pixel bytes in big endian form ie

    0x FF FF FF FF
    0x FF 1A 05 E3
    0x FF 8E 83 F1

    (both shown going from lo to hi addresses with the alpha bytes at 0xFF)

    Can anyone recommend a method for creating the .bmp file correctly?

    Regards
    Terry

      

    Monday, November 24, 2014 2:39 PM
  • Ok I think I've now cracked it (for my system at least)

    STEPS TO CREATE SPLASH SCREEN
    =============================
    1. Create required splash screen as 32 bit .png file
    2. Make sure X and Y pixel sizes are as per LCD display.
    3. Flip the image top to bottom (otherwise it will be upside down)
    4. Use the tool at https://pngtobmp32.codeplex.com/ to convert to a 32 bit .bmp file which is suitable as WEC7 Splash Screen.
    5. Ensure bitmap is called logo.bmp. Use Windows Explorer to copy to SD Card.
    6. ReBoot system - new Splash Screen should be displayed as WEC7 comes up.

    I think more modern versions of Paint.NET, Gimp etc are producing .bmp files that aren't suitable for WinCE (and MSPaint only produces 24bit .bmp) 

    • Marked as answer by Terence P Monday, November 24, 2014 3:37 PM
    Monday, November 24, 2014 3:37 PM