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/MSP432P4111: TI-RTOS heap and queue size

Part Number: MSP432P4111


Tool/software: TI-RTOS

Hi all,

I have a MSP432 project. I need a queue a bit greater than what I currently have, but if I increase it the program hangs. So I think that may be I need to increase also the heap, or I need to do anything to increase my queue size.

Can anyone help me?

Thank you in advance.

  • QUESTION 1 - Are the TI-RTOS queues located in heap?
    QUESTION 2- If yes ==> How can I allocate more heap memory in order to be able to allocate a bigger queue?
    QUESTION 3- If no==> Where are the queues allocated? How can I allocate more memory to have a greater queue?
  • Well, in spite of this lack of support, I now have the questions solved.

    QUESTION 1 - Are the TI-RTOS queues located in heap? (Amit, please answer only yes/no)

    Yes, of course. This was a trap question just to realize the lack of knowledge/interest of my interlocutor.

    QUESTION 2- If yes ==> How can I allocate more heap memory in order to be able to have allocate a bigger queue?

    In CCS, Right click on the project, and in the Linker Options there is a field where you can write the size of the heap. As default, TI uses 0x8000 for the MSP430, I needed 0x9500 to fullfil my requirements. And finally, since I'm going to use the bigger microcontroller, I've put 0xA500. This value needs also to be written in cmd file.

    Looking for in internet I saw that there is a way to even configure dinamically heaps for allocate memory in tasks, that can be an interesting option, but it is not what is needed in a queue. Anyway the comprehension in depth of cfg files is still an open issue for me.

    I found an interesting video here: training.ti.com/ti-rtos-workshop-series-3-10-ti-rtos-concepts

    And in the following manual, chapter 7 is dedicated to the heap management using cfg files: www.ti.com/.../spruex3t.pdf

    Best regards.
  • Thanks for updating this post with your solution!

**Attention** This is a public forum