This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/CC2640R2F: Simple_Peripheral is not building anymore.

Part Number: CC2640R2F

Tool/software: TI C/C++ Compiler

On Friday 3/20 I was able to build the Simple_Peripheral example in the CCS Cloud. I came back today after running Project 0 on my board and tried to run Simple_Peripheral again and it's been failing to build. I haven't changed any code at all and tried to re-download the code from the example page.

It gives me this error below:

OSAL/subdir_rules.mk:7: recipe for target 'OSAL/osal.obj' failed "/mnt/tirex-content/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 1 error detected in the compilation of "/mnt/tirex-content/simplelink_cc2640r2_sdk_3_40_00_10/source/ti/ble5stack/osal/src/common/osal.c". gmake[1]: *** [OSAL/osal.obj] Error 1 gmake[1]: Target 'main-build' not remade because of errors. gmake: *** [all] Error 2 makefile:176: recipe for target 'all' failed

Which brings me to the osal.c in this section:

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 ) );

I cannot change this bit of code and I was wondering what I could do to fix this? I am trying to work with the peripheral for a project for school but I don't know how I can fix this.

Thank you in advance