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.

CC2652R: TI-RTOS Configuration "Semaphore.supportsEvents = true"

Part Number: CC2652R


I am working with a customer who is wanting to use this feature. Because of the existing comment in the example *.cfg file, we are wondering what happens if we intend to use RTOS in ROM and set this option:

/*
 * Allows for the implicit posting of events through the semaphore,
 * disable for additional code saving.
 *
 * Pick one:
 *  - true
 *      This allows the Semaphore module to post semaphores and events
 *      simultaneously.
 *  - false (default)
 *      Events must be explicitly posted to unblock tasks.
 *
 *  When using BIOS in ROM:
 *      This option must be set to false.
 */
Semaphore.supportsEvents = true;

//Semaphore.supportsEvents = false;
 
For example, would the impact be that the Semaphore feature gets pulled into FLASH? ...or would the impact be that the entire RTOS gets pulled into FLASH?
Thanks,
Stuart
  • Hey Stuart,

    Using BIOS in flash instead of ROM is all or nothing:

    /* ================ ROM configuration ================ */
    /*
     * To use BIOS in flash, comment out the code block below.
     */
    var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    if (Program.cpu.deviceName.match(/CC26/)) {
      ROM.romName = ROM.CC26X2V2;
    }
    else if (Program.cpu.deviceName.match(/CC13/)) {
      ROM.romName = ROM.CC13X2V2;
    }

    So if you want to set Semaphore.supportsEvents = true; then you have to comment out the code above.  You can see the affect this has on flash by comparing the generated MAP files.

    Regards,
    Ryan