Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    PanelDue firmware size

    Scheduled Pinned Locked Moved
    Firmware wishlist
    3
    9
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sv2kundefined
      Sv2k
      last edited by

      Since firmware size for large screens (5" or 7") is already very close to MCU flash size are there any plans to optimize it? It looks like icons and font take more than 70kb of the flash. Storing icons using some kind of compression may help, something very simple, RLE or similar. If I try to implement it are you interested to merge?

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Yes, it would be very useful to save some flash memory. The problem with using RLL or similar compression is that the order in which the font entries are accessed depends on the orientation of the display. This is to avoid having to write the pixel address to the display for every pixel, which would slow down writes. Likewise with the icons.

        However, the icons could be compressed by using a palette. 16 colours should be enough for any icon, which would reduce the storage space from 16 bits/pixel to 4 bits/pixel, plus 32 bytes per palette. Several icons could share a palette, for example all the home icons. Another advantage of this scheme is that we could use different palettes for the light and dark themes.

        I was planning to implement this, but due to other work I don't know when I will have time. So you are more than welcome to implement it!

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • Sv2kundefined
          Sv2k
          last edited by

          Looks like using palette is great idea, I'll try to implement it and post the results.

          1 Reply Last reply Reply Quote 0
          • Sv2kundefined
            Sv2k
            last edited by

            So build for 5" panel is only 94kb now, much more room left for my evil plans!

            11.06.2017 01:58 96 832 PanelDueFirmware.bin
            11.06.2017 01:55 253 532 PanelDueFirmware.elf
            11.06.2017 01:55 272 421 PanelDueFirmware.hex
            11.06.2017 01:55 257 344 PanelDueFirmware.map

            1 Reply Last reply Reply Quote 0
            • Sv2kundefined
              Sv2k
              last edited by

              BTW switching to the dark palette is not implemented yet.

              Actually I'm more interested in adding non-latin characters to the fonts to add more locales…

              1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators
                last edited by

                Many thanks for implementing this! I have merged it in to the master source along with some other changes I was developing. I made further changes to select the light or dark palette according to the colour scheme chosen, however I haven't changed the colours in the dark palette yet.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                1 Reply Last reply Reply Quote 0
                • Sv2kundefined
                  Sv2k
                  last edited by

                  I needed this more than you 🙂

                  btw: I didn't check it with small screens, but it seems to be fine with 5" panel (width 800px)

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators
                    last edited by

                    I have tested it on a 4.3" screen.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    1 Reply Last reply Reply Quote 0
                    • Dougal1957undefined
                      Dougal1957
                      last edited by

                      How about 7inch screens?

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA