FlashLayout - seho85/python-dgus GitHub Wiki

Flash Memory Layout

The internal 16MB flash memory of the DGUS Display is organized in the following way:

DGUS Internal Flash Organization

It has:

  • 64 slots

    • each 256KB

Data that is flashed to Display is located in the DWIN_SET folder.

To which slot the data is flashed is defined by the index at the beginning of the filename.

  • 0_DWIN_ASC.HZK

    • will be put to slot 0
  • 13TouchFile.bin

    • will be put to slot 13
  • 32.icl

    • will be put so slot 32
  • a.s.o.

Overlapping files

The file name of the ICL-files are defined by the user.

The ICL file contains the graphics (raster format) that are shown on the display.

By default the Background images for the Display masks are stored in the 32.icl file.

But the user may create other icl-files that contain icons, that can be used in different controls.

It's in the user responsibilty to ensure the ICL files are not overlapping each other.

Example:

We got two icl files.

32.icl

  • contain the 'background images' for the Display Masks.

34.icl

  • contains icons used in the display application.

Depending of the size of 32.icl an overlapping may occure.

  • when sizeof(32.icl) < 256KB
    • 1 slot is needed to store the the icl
      • it will use slot just slot 32 (no overlapping)
  • when sizeof(32.icl) > 256KB and sizeof(32.icl) < 512KB
    • 2 slots are needed
      • it will use slot slot 32 and slot 33 (no overlapping)
  • when sizeof(32.icl) > 512KB
    • 3 slot are needed
      • it will use slot 32 to 34 (overlapping with 34.icl!)

The library contains a script that can be used for checking if there are overlapping files are defined.

See icl_helper.py

TODO: Create Page that describes usage of icl_helper.py

⚠️ **GitHub.com Fallback** ⚠️