Tool/software: TI C/C++ Compiler
Hello,
I am encountering a build error when trying to build either the Simple Peripheral or the Project0 code using CCS Cloud. For ease of reference, the details of the error are below. I understand the error comes from the ltoa function needing all three inputs (char*)ltoa( l, buf, radix ) for both cases of the TI Compiler Version, but cannot modify the Stack Library on the CCS Cloud. To be clear, when I import into the CCS software Version: 10.0.0.00010 on my Windows 64 computer, I can fix the stack library and use the example projects easily. I would just like to request a bug fix for the CCS Cloud, if a request is not already in the system.
Thank you for your time. Please let me know if further information is required.
Board: CC2640R2F
Projects: Simple Peripheral, Project0, and others that use the ltoa function
Error:
>> Compilation failure OSAL/subdir_rules.mk:7: recipe for target 'OSAL/osal.obj' failed "/mnt/tirex-content/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/osal/src/common/osal.c", line 413: error #167: too few arguments in function call 1 error detected in the compilation of "/mnt/tirex-content/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/osal/src/common/osal.c". gmake[1]: *** [OSAL/osal.obj] Error 1 gmake[1]: Target 'main-build' not remade because of errors. makefile:176: recipe for target 'all' failed gmake: *** [all] Error 2
Relevant File and Code: Stack Library -> OSAL -> osal.c
unsigned char * _ltoa(unsigned long l, unsigned char *buf, unsigned char radix)
{
#if defined (__TI_COMPILER_VERSION) || defined (__TI_COMPILER_VERSION__)
return ( (unsigned char*)ltoa( l, (char *)buf ) );
#elif defined( __GNUC__ )
return ( (char*)ltoa( l, buf, radix ) );