In Linux SDK, where can I check or change the stack size and heap size of the ARM program and DSP program ?
For the stack size of a DSP program, perhaps look a the linker command file for the DSP program.
On the arm to get the current Stack size,
root@am180x-evm:~# ulimit -atime(seconds) unlimitedfile(blocks) unlimiteddata(kb) unlimitedstack(kb) 8192coredump(blocks) 0memory(kb) unlimitedlocked memory(kb) 64process 989nofiles 1024vmemory(kb) unlimitedlocks unlimited
<< setting the stack size on the ARM to 32K >>
root@am180x-evm:~# ulimit -s 32768
root@am180x-evm:~# ulimit -atime(seconds) unlimitedfile(blocks) unlimiteddata(kb) unlimitedstack(kb) 32768coredump(blocks) 0memory(kb) unlimitedlocked memory(kb) 64process 989nofiles 1024vmemory(kb) unlimitedlocks unlimited
In reply to Schuyler Patton:
Your method is not a permanent change because I need to change it every time when I run the program.
How can I change stack size permanently so that when I compile and run the ARM program, the change is permanent ?
Similarly, how to permanently change the heap size size of the ARM program ?
In reply to std:
There are no limits stored in the program file.
Heap and stack sizes are user resource limits, which can be set for all programs run from a shell with the ulimit command, or from the program itself with the setrlimit system call (if the user has sufficient privileges; see the man page).
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.