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.

CC2340R5: How much code capacity can be reduced when switching from RTOS to bare metal

Expert 2440 points
Part Number: CC2340R5

Tool/software:

Hi All,

Using Zephyr, the firmware was developed with a ROM/RAM capacity of 166kB/36kB.

In the next development, bare metal development is being considered to change to a lower capacity ROM.
Do you have any knowledge of how much code capacity is reduced when changing from RTOS to bare metal?

I don't want exact data as it depends on the use case, but if you have any historical examples, please let us know.

Best Regards,

Ito

  • Hello Ito,

    I hope you are doing well. For this experiment I will take two examples from the SDK, and simply change the RTOS to NORTOS to see the effect by viewing memory allocation:

    Starting with gpiointerrupt example:

    RTOS (FREERTOS) : 

    NORTOS : 

    In this specific example the FLASH went from 11714 to 5073 (reduction of 6641 by switching from FREERTOS to NORTOS). 

    You can apply the same test above to all other examples that you can build in the SDK. 

    Thanks,
    Alex F