DSPRelated.com

Stack overflow detection

Started by Bhaskar Reddy N in TMS320c6x19 years ago

Can anyone provide good logic for Stack overflow detection specially for C6x. I came to know the Stack painting logic, in which we will be...

Can anyone provide good logic for Stack overflow detection specially for C6x. I came to know the Stack painting logic, in which we will be filling the stack with known data like "0xdeadbeaf" and check at the end of stack area moving towards beginning of stack. But this has its own limitations. I have seen a stack overflow interrupt available in c28x processors. 


help needed regarding task stack decoding in c64x processors

Started by Naga r in TMS320c6x18 years ago

Hi, Is there any way to decode the task stack in C64x processors. My aim is to obtain the state of all tasks from thememory dump of stack/stack...

Hi, Is there any way to decode the task stack in C64x processors. My aim is to obtain the state of all tasks from thememory dump of stack/stack pointers, at any point. I cud see that the return address of a function,etc getting stored in stack pointer as and when they are called..but it looks like in no particular order. Is there any relevant document where i can see..how exactly,and in whi...


DSP/BIOS stack doubts

Started by Giovanni Parodi in TMS320c6x18 years ago 2 replies

Hello everybody, I have a doubt about stack in DSP/BIOS tasks. In fact I'm currently using a DM642 based platform and I have these doubts: 1) ...

Hello everybody, I have a doubt about stack in DSP/BIOS tasks. In fact I'm currently using a DM642 based platform and I have these doubts: 1) the stack size of task seems to be limited to about 32 KB. Is this correct? Why is used this threshold? 2) how is allocated the stack? It seems that there is some hole in stack, but I don't know which alignment strategies are adopted by the DSP/BIO...


stack monitor utilities

Started by shiv...@yahoo.com in TMS320c6x17 years ago 1 reply

Hi guys, This is a querry related to the STACK monitoring on 62x DSP. DSP system running perfectly with a DSP BIOS. It has a PRD defined to...

Hi guys, This is a querry related to the STACK monitoring on 62x DSP. DSP system running perfectly with a DSP BIOS. It has a PRD defined to run at 10 ms. I would like to know, how I can monitor the STACK and find if it is getting corrupted/overflowing anytime. Please help me find the solutions for the following: 1) How can I read the stack content? 2) How can I check if stack is cor...


query on stack pointer.

Started by Ajeet K Mall in TMS320c6x22 years ago

Hi all, I have a small query regarding coding in linear assembly for C64x. I would like to know how can I initialize a local stack...

Hi all, I have a small query regarding coding in linear assembly for C64x. I would like to know how can I initialize a local stack using stack pointer in my linear assembly code. I know that register B15 is used as the stack pointer, and also i can assign it to any other variable but


Re: how to access CPU registers in C code

Started by wbon...@wimsworld.com in TMS320c6x19 years ago

I am interested in the exact same feature, and would like to know if you found a solution. I would like to simply read the B15 register,...

I am interested in the exact same feature, and would like to know if you found a solution. I would like to simply read the B15 register, which is used as the stack pointer. I want to be able to periodicly check how much stack space is being used, and also to easily initialize the unused stack space.


TCP/IP stack for TI C6x

Started by Thomas Schwere in TMS320c6x24 years ago 1 reply

Hi all, Does anybody know about a TCP/IP stack for the TI C6x? We need such a stack (preferably royalty free/open source) for a...

Hi all, Does anybody know about a TCP/IP stack for the TI C6x? We need such a stack (preferably royalty free/open source) for a diploma thesis at the ETH Zurich. Thanks in advance Thomas -- //\\\\ | ~ ~ | ( O O ) ______________


question about .stack section

Started by Hua Ouyang in TMS320c6x23 years ago

Hi,everyone: I have place .sysmem and .stack section into SBARAM.The program runs successfully. As soon as I place .stack...

Hi,everyone: I have place .sysmem and .stack section into SBARAM.The program runs successfully. As soon as I place .stack section before the .sysmem section in *.cmd file,I get wrong result when call function.I get wrong result when I place .stack into internal data


TSK and SWI

Started by balasubramanian vaidhyanathan in TMS320c6x16 years ago

Hi all ?? I have a question on the stack usage in the case of the SWI and TSK. What is the difference between having the same stack for all...

Hi all ?? I have a question on the stack usage in the case of the SWI and TSK. What is the difference between having the same stack for all SWI's and each its own stack for TSKs ... Can you elaborate on why this is so?.? regards Bala


stack problem

Started by waji...@hotmail.com in TMS320c6x18 years ago 6 replies

Hi I am new to dsp programming.the following error occurs when I run the program in ccs v2. warning: creating .stack section with default...

Hi I am new to dsp programming.the following error occurs when I run the program in ccs v2. warning: creating .stack section with default size of 400 (hex) words. Use -stack option to change the default size. What is this error?????? Any response in this regard would be helpful. Thanks wajahat.


How to do heap and stack size calculation?

Started by "H.264encoderondm642" in TMS320c6x18 years ago 4 replies

I have just finished my encoder and decoder implementation on TMS320C6713 DSK. I have some things that are not clear in my mind....

I have just finished my encoder and decoder implementation on TMS320C6713 DSK. I have some things that are not clear in my mind. ==> ## What is method to calculate heap and stack sizes? ## What will be effect of larger heap and stack size allocation than required? Will it improve performance in terms of cycles? ## Do I need to allocate some arbitrary space in memory fo


What happens to my stack?

Started by esbn8 in TMS320c6x18 years ago 1 reply

Hi, trying to run a code developed and running in MSVC on CCS3.1. I use the c64xx CPU Cycle accurate simulator. I use the Call Stack window to...

Hi, trying to run a code developed and running in MSVC on CCS3.1. I use the c64xx CPU Cycle accurate simulator. I use the Call Stack window to track my function calls, but a some point the list of nested calls is replaced by some strange hex number, probably an address. This address is changing as I step further through the code, sometimes its pointing to the stack, sometimes to space o...


stack size

Started by Raj in TMS320c6x21 years ago 2 replies

hi, is there any limitation on the size of the stcak on 6X EVM. Can I have a stack size of as high as 15kB? what is the effect of...

hi, is there any limitation on the size of the stcak on 6X EVM. Can I have a stack size of as high as 15kB? what is the effect of putting the stack on SDRAM apart from slowing down the execution of the code? Rajesh


Windmill Ethernet stack issues

Started by "Norton, Peter" in TMS320c6x17 years ago

Hi all, Anyone have any experience with the Windmill ethernet stack for the 91C11 chip? I am having issues where the stack cannot keep up...

Hi all, Anyone have any experience with the Windmill ethernet stack for the 91C11 chip? I am having issues where the stack cannot keep up with sending a 1k byte array every 100ms using SocketWrite() and is reporting 'not ready' about 1/3 of the time This does not seem reasonable at such a low data rate. Also, what should be a realistic upper limit on data rate for a C6x with a 91C11, c...


Using aligned memory on the stack for FFT calls.

Started by William C Bonner in TMS320c6x15 years ago 4 replies

I'm using FFT calls from the DSP Library for the 6713 (SPRU657 ) that say they need the data to be double word aligned. I?m trying to use...

I'm using FFT calls from the DSP Library for the 6713 (SPRU657 ) that say they need the data to be double word aligned. I?m trying to use memory on the stack, which is allocated simply by moving the stack pointer the amount required. I?m using an array of floats. I believe that he size of a float is 4 bytes. I believe that the size of


warning on dsp about stack

Started by abhi_gs2005 in TMS320c6x17 years ago 1 reply

hi all, whenever i trying ti build any program on 6713, there is warning regarding to stack area has been use. what is really this, how...

hi all, whenever i trying ti build any program on 6713, there is warning regarding to stack area has been use. what is really this, how it can be solved. Thanks


Stack - C6x

Started by goelhss in TMS320c6x22 years ago

Hi C6x, How to calcualte stack requirements of a code for 'C62x ? Can it be done using coding ? Thanks and Regards, ...

Hi C6x, How to calcualte stack requirements of a code for 'C62x ? Can it be done using coding ? Thanks and Regards, Vishal.


to save and restore A10-A15 & B10-B15 registers in stack into C6XX...

Started by aysem_as in TMS320c6x16 years ago

Hi All.I'm new in here and I'd be very glad if u help me.. In C6XX series we cannot modify the values in A10-A15 & B10-B15 because these...

Hi All.I'm new in here and I'd be very glad if u help me.. In C6XX series we cannot modify the values in A10-A15 & B10-B15 because these registers are used in C to store valuable information.So,how can I save and restore these registers in stack?Also,It'll be good if you know about how to use the stack into 6000?? Thanks everyone from now on..


C6x stack

Started by Lars Skade in TMS320c6x24 years ago 1 reply

Hi, Does anyone know why the C6x stack is filled with 0x00COFFEE? Is it actually used for anything?, i.e. does it have to be...

Hi, Does anyone know why the C6x stack is filled with 0x00COFFEE? Is it actually used for anything?, i.e. does it have to be filled with that word? Cheers, Lars


memcpy for stack content read??

Started by shiv...@yahoo.com in TMS320c6x17 years ago 1 reply

Hi 6x Experts, Can I use memcpy to read the stack content? Please help me understand more. Thanks in advance.. regards, Shiva Check Out...

Hi 6x Experts, Can I use memcpy to read the stack content? Please help me understand more. Thanks in advance.. regards, Shiva Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467