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.
hi everyone,
we are developing an application using TMS320F2812 dsp custom board. our main task is to read parallel data from 4 ch ADC(AD7865) we are using three of them and send the parallel data to 2 ch DAC.
when i read first channel of first ADC dsp is working fine, when i read three channels of first ADC then also it working fine but when i read the fourth channel of the first ADC then ILLEGAL_ISR TRAP interrupt is raised and the program comes to halt.when i execute the DAC code alone its running fine but when i integrate DAC code with ADC code again the same problem is occured. all these codes were tested in RAM mode with rude real time mode enabled.
when i dumped this code into flash and tested again the same result, the dsp is running for few seconds and coming to halt.
i took the TI sample code of GPIO toggle and made changes to that code for ADC reading and writing to DAC.
Why is the ILLEGAL ISR TRAP interrupt raised? what may be the problem?
when i have gone through the problem in this community i have understood the problem may be due to stack. but what changes i have to make to my code to over come this serious issue?
Can anyone help me out with this issue? its very critical issue and it has stopped the whole project?
Satish,
Illegal ISR trap interrupt is raised when the CPU fetches an illegal instruction during the code execution. Stack overflow could actually change the opcode to be executed to some illegal instruction which could lead to this behavior.
The document below should be really useful for your debug.
Online Stack Overflow Detection on the TMS320C28x DSP - http://www.ti.com/lit/an/spra820/spra820.pdf
Best of Luck !
Regards,
Manoj
Hi Satish,
you can find more exact location where TRAP is raised following : http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/p/40471/232783.aspx#232783
Regards, Mitja