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.

CC1312R7: A compilation error occurred when the SPIFFS related function was called

Part Number: CC1312R7
Other Parts Discussed in Thread: SYSBIOS, SYSCONFIG

Hi Team TI,

Recently I downloaded the official latest SDK development kit: simplelink_cc13xx_cc26xx_sdk_7_40_00_77, I plan to add file system SPIFFS related operations in the ns_coap_oad_offchip_LP_CC1312R7_tirtos7_ticlang project, I looked at the routine spiffsexternal_LP_CC1312R7_tirtos7_ticlang and ported the related functions to the ns_coap_oad_offchip project. I called the SPIFFSNVS_config() function in mainThread and found that it did not pass at compile time. The undefined identifier ti_sysbios_gates_GateMutex_create appeared. Then, after I changed ns_coap_oad_offchip-sysconfig-BIOS-Runtime Support Library Lock Type-GateMutexPri to GateMutex, the compilation was normal. May I ask what is the reason for this, why the function related to SPIFFS is called, and the compilation error is reported?

  • Hi Bill,

    If you are asking why you are seeing the error when calling SPIFFSNVS_config(), it is because:

    • This function calls MutexP_create() which in turn calls GateMutex_create(). 
    • And if you are using TIRTOS 7, the GateMutex_create function is defined as ti_sysbios_gates_GateMutex_create in GateMutex_defs.h. 
    • For GateMutex_create to be defined, you would need the selection in Sysconfig. 

    Regards,

    Sid

  • Hi,Sid

    Thanks for your answer. Based on your response, I assume that if SPIFFSNVS_config() is called, then sysconfig-BIOS-Runtime Support Library Lock Type must be set to GateMutex, right?

  • Yes, you are right