osal.c build errors due to ltoa() definition changed in ARM compiler 19.6.0.STS (and 20.2.0.LTS)

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: High
    • Code Composer Studio
    • CCDSK-3797
    • Hide
      CCS_10.0.0
      CCS_9.3.0
      Show
      CCS_10.0.0 CCS_9.3.0
    • Generic
    • Hide
      Update any two parameter ltoa calls like below:
           char* ltoa(long val, char *buffer);

      To now additionally accept third parameter for radix:
           char* ltoa(long val, char *buffer, int radix);
      Show
      Update any two parameter ltoa calls like below:      char* ltoa(long val, char *buffer); To now additionally accept third parameter for radix:      char* ltoa(long val, char *buffer, int radix);
    • Hide
      Update any two parameter ltoa calls like below:
           char* ltoa(long val, char *buffer);

      To now additionally accept third parameter for radix:
           char* ltoa(long val, char *buffer, int radix);
      Show
      Update any two parameter ltoa calls like below:      char* ltoa(long val, char *buffer); To now additionally accept third parameter for radix:      char* ltoa(long val, char *buffer, int radix);
    • Will be addressed in a future SDK release. In the meantime there is a workaround documented.

      For compiler parser errors with ltoa() routine:
      "C:/ti/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/osal/src/common/osal.c", line 413: error #167: too few arguments in function call

      Bug fix EXT_EP-9216 changed stdlib.h definition of ltoa() from below:
      char* ltoa(long val, char *buffer);
      to instead align with gcc implementation with 3 parameters:
      char* ltoa( long value, char* buffer, int radix );

            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-2244 - osal.c build errors due to ltoa() d...
                SYNCHRONIZED
                • Last Sync Date: