Change linker to support combining copy tables with compression and CRC

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: Low

      The attached C file has these lines ...

      __attribute__((section(".custom.data"), retain))
      const int array[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
      

      The attached linker command file has these lines ...

          .custom.data :
              LOAD=FLASH
              crc_table(CRC_TBL, algorithm=CRC16_802_15_4)
              RUN=MEM
      
      /* To see the failure, uncomment the compression on the next line */
              TABLE(CUSTOM_INIT /*, compression=lzss */)
      

      It builds clean.

      % cl430 file.c -z -o file.out -m file.map msp430_link.cmd
      <Linking>
      

      Add compression on the copy table ...

      % cl430 file.c -z -o file.out -m file.map msp430_link.cmd
      <Linking>
      warning: file.out: accessing the raw data of section ".custom.data" which is
         uninitialized according to its section attributes; changes to raw data may
         be lost
      warning: file.out: accessing the raw data of section ".custom.data" which is
         uninitialized according to its section attributes; changes to raw data may
         be lost
      

      The suggestion is to compress first, then compute the CRC on the compressed memory image.

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-5668 - Change linker to support combining ...
                SYNCHRONIZED
                • Last Sync Date: