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.

RTOS/CC1310: Running out of RAM 15.4 stack collector

Part Number: CC1310


Tool/software: TI-RTOS

Hello,

I am trying to modify the collector example to be used for my application. I added 2 tasks one that is sampling the ADC using the sensor controller, and one task that is an SPI task that is waiting on a mailbox to fill with received packets and passing them over SPI. Individually I am able to test and run the tasks but when I attempt to intialize both I believe I am running out of heap or stack space. Is there any easy ways to minimize the RAM usage of the collector 15.4 example.

Regards,

Jacob Umbrage

  • I seem to have partial luck is i start defining a size for heap size predefined statement, however if I am not sure what a reasonable value should be and It appears that I am still having memory problems, Also I am having trouble with persistence on the launchpad, I removed all the bootloader enables but if reset the board the programming seems to be cleared from flash and nothing runs.'
  • Hey Jakerage,

    You can undefine some features in features.h. For example if you are using non-beacon mode you can undef beacon mode and frequency hopping mode. If you are still needed more RAM, you can disable security or reduce the number of devices in your network (CONFIG_MAX_DEVICES) in config.h.