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.

CC3220MODA: RAM usage in latest SDK

Part Number: CC3220MODA


We've recently upgraded from SDK from 2.4 to 4.3 (big jump, I know, but the project was effectively on hold for a while). I was able to get it to run fine on the launchpad in the debugger (but not in release mode), but that requires disabling a lot of code related to our custom hardware. Note, we're using FreeRTOS.

When I run the fully enabled code on our custom hardware, we have apparently run out of memory. We get malloc failures at the very beginning of main, but after programStart that runs the constructors, etc. None of our code is explicitly using malloc, but we do call into TI libraries that do use malloc. I've tried increasing the heap by 4K, but it does not help, which is surprising (and I'm digging into that right now). I can't increase it further. 

So my question is, is it expected that the newer SDK uses a lot more memory than the earlier SDK? I don't see anything obvious in the release notes.

Thanks,
Katie

  • Hi Katie,

    I don't think so.

    Do you use S or SF device? Please provide results from memory allocation tool in CCS.

    Jan

  • I'm using the SF device. 

    Also, we're using GCC in CCS, so does the memory allocation tool not work?

    Thanks,

    Katie

  • Hi Katie,

    I am not sure if memory allocation tool is supported by GCC, but probably not.

    Unfortunately I have no experience with debugging memory issues with FreeRTOS and GCC. You will need wait for input from other users.

    I use at my projects TI-RTOS and in CCS are very useful tool for TI-RTOS debuging (e.g. ROV). With FreeRTOS are capabilities very limited and you need to use 3rd party tools.

    Jan

  • Hi Katie,

    I have not noticed a change in the memory usage of FreeRTOS in the newer SDKs. As Jan mentioned, the debug tools are more limited when investigating FreeRTOS issues, but there are a couple things we can check.

    1. How did you update from SDK version 2.4 to 4.3? Was your custom code based off of some example project in the SDK that you re-imported from the new SDK?
    2. Did you also update the FreeRTOS source when you updated the SDK? The v4.30 SDK is validated against FreeRTOS 10.2.1, so if you're using an older version there may be unexpected behavior.

    As FreeRTOS is not a TI product, contacting FreeRTOS support might also be useful, as our ability to support FreeRTOS on the forums is limited.

    Regards,
    Michael

  • We're not using simplelink as a library, but have instead compiled it into the main project. I had a bug in how it dealt with malloc (pointing to libc instead of the TI malloc), which led to the error.

    Thanks for your help. 

    -Katie