MMCSD driver uses snprintf function from libc

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • SITSW-6794
    • 10.01.00
    • 11.01.00
    • Hide
      am62xx-sk
      am62xx-sk-lp
      am62x-sip-sk
      am62a-sk
      am62p-sk
      am62d-evm
      am275x-evm
      Show
      am62xx-sk am62xx-sk-lp am62x-sip-sk am62a-sk am62p-sk am62d-evm am275x-evm

      The MMCSD driver uses the snprintf calls here:

      https://github.com/TexasInstruments/mcupsdk-core-k3/blob/k3_main/source/drivers/mmcsd/mmcsd_priv.c#L92-L92

      Following is the image size with the default code:

      ❯ /usr/bin/ls -l sbl_emmc_linux_stage1.release.hs_fs.tiimage
      -rw-r--r-- 1 p-shivhare p-shivhare 270967 Mar 17 13:16 sbl_emmc_linux_stage1.release.hs_fs.tiimage 

      If instead of the snprintf from libc, we use the snprintf_ from the DPL printf.c, the image size reduces by ~4KB:

      ❯ /usr/bin/ls -l sbl_emmc_linux_stage1.release.hs_fs.tiimage
      -rw-r--r-- 1 p-shivhare p-shivhare 266231 Mar 17 13:16 sbl_emmc_linux_stage1.release.hs_fs.tiimage 

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-5727 - MMCSD driver uses snprintf function...
                SYNCHRONIZED
                • Last Sync Date: