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: Facing error while viewing Stack Usage in Code Composer studio Version: 20.2.0.12__1.8.0

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi, 

I am currently using CCS Version 20.2.0.12__1.8.0 for my BLE project. SDK version is 9.11.0.18. I'm trying to view the Stack Usage, but I'm facing an error. The screenshot of the error is pasted below:

"The Stack Usage view graphically displays your project's stack usage details. The project must be successfully built first."

Despite successfully building the project, I encounter this error. Can you suggest a solution for this issue?



Regards,
Shivam

  • Hi Shivam,

    Thanks for reaching out!

    1. Quick clarifying question: The build was successful without any errors or warnings, correct?

    2. Try to see if this same issue can be replicated using a different version of CCS.

    3. Right click on your project and go to Properties -> Build -> Tools -> Arm Compiler (whatever compiler that you are using) -> Advanced Options ->Unusual Runtime Model Options -> Function stack size metadata  -> make sure it is set to Emit function stack size metadata. After this, run a clean build to see the Stack Usage.

    Sometimes BLE examples have this switched off by default so we need to manually go in and fix it.

    Please let me know if this works and if you need anything else from me!

    Thanks,

    Mayur 

  • Hi Mayur,


    • Yes, the build completes successfully without any errors or warnings.

    • Yes, I am facing the same issue in CCS Theia version 1.5.1.3.

    • Even after following the steps you suggested in point number 3, I am still encountering the same issue. What could be the possible reasons?

    Regards,

    Shivam

  • Hi Shivam, 

    Understood.

    What dependencies (libraries, modules, imports) are you working with?

    The dependencies you are using may not be compatible with the 9.11 SDK version and may lead to you not being able to see the Stack Usage.

    Thanks,

    Mayur 

  • Hi Mayur,

    In my current project, I am using the following dependencies:

    • FreeRTOS with POSIX settings

    • BLE5 stack with one advertising set and secure connection mode

    • Drivers: UART, LGPTimer, RNG, NVS (internal)

    • Device modules: Power, RFDesign, RCL

    However, I noticed that my .syscfg file when i open in text editor mode still references SDK 8.40:


      

    But I am currently working with SDK 9.11. Could this version mismatch in syscfg be the cause of Stack Usage not showing up?Let me know how to resolve this mismatch cleanly.

    Regards,

    Shivam

  • Hi Shivam,

    That could definitely be the cause of the problem. Here are a couple of steps to take... if this doesn't work let me know and I can follow up with the team.

    Try regenerating the .sysfig File by right-clicking the .sysfig file and click "generate or re-generate SysConfig Code" - should update the file and reference the correct version of the SDK.

    Try creating a new project and migrate the same code and check.

    I wouldn't recommend manually updating the .sysfig file directly. Once again, let me know if it does not work.

    Thanks,

    Mayur

  • Hi,

    I attempted to regenerate the .syscfg file using my current SDK (v9.11) in CCS version 20.2.0.12, but I did not find any option like "Generate or Re-generate SysConfig Code" when right-clicking on the .syscfg file.

    Additionally, for your reference, I followed the official porting guide to update the SDK version from 8.40 to 9.11 using the steps outlined in the link below:

    dev.ti.com/.../CC23XX_SDK_8.40_to_9.10.html

    Could you please suggest an alternative solution to update or regenerate the .syscfg file correctly with SDK 9.11?

    Thank you.

    Shivam

  • Hi Mayur,

    Looking forward to your suggestions regarding the issue stated above."

    Regards,

    Shivam

  • Since you've upgraded from the 8.40 to the 9.11 SDK, make sure that CCS is using the newly installed SDK. Do Window -> Pref. -> CCS -> SDK and make sure that 9.11 is the ACTIVE SDK listed. 

    Also make sure the project paths are correct - go to Project -> Properties -> Build -> C/C++ Build -> Settings -> GCC C/C++ Compiler -> Include Direc. Make sure that the 9.11 directory is present and do the same for the 9.11 Library. 

    In addition, navigate to the sysconfig_ic.exe directory and run the command in command prompt "path directory"  --generate ./your_project.sysfg

    Change the names accordingly and clean and rebuild