Hi,
I having problem using F2812 eZdsp.
My program quite long and have many call function to be perform in the CpuTimer0
interrupt.
I encounter this error when I run the program:
interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP
{
// Insert ISR Code here
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm(" ESTOP0");
for(;;);
}
If i remove half of the program, then it will run and give correct results.
Any idea how to remove the this error?
Thank you for your help.
-jenny
_____________________________________
Illegal operation TRAP for F2812
Started by ●April 1, 2010
Reply by ●April 2, 20102010-04-02
I will not explain how to remove the error, but maybe give you some clue
to find it !
ILLEGAL_ISR is an illegal operation, such as executing illegal opcode
0xFFFF code (that you should have filled in the non-used memory).
So, two main causes
* Function pointer : If you have some, you should used CONSTANT function
pointers
* Stack overflow / stack corruption : here the stack size is too low or
there is a code that crash the stack value.
So, how to debug.
The asm ESTOP0 stop the emulator. From here, have a look to the CallStack
(function that were called before the crash), it should be always the same
function that perform the crash !
Well, I hope for you ... or it will take days until you found it.
Good luck in your investigation.
_____________________________________________________________________________________
Alain SALMETOZ | APC by Schneider Electric | IT Business |
Firmware design Engineer senior
Phone: +4 76 18 33 59 ext. 3359 |
Email: a...@mgeups.com | Site: www:apc-mge.com | Address:
140 avenue Jean Kuntzmann, INOVALLEE - Montbonnot St Martin, 38334 Saint
Ismier cedex
*** Please consider the environment before printing this e-mail
m...@gmail.com
Envoypar : c...
01/04/2010 12:27
Veuillez rondre br /> m...@gmail.com
A
c...
cc
Objet
[c28x] Illegal operation TRAP for F2812
Hi,
I having problem using F2812 eZdsp.
My program quite long and have many call function to be perform in the
CpuTimer0 interrupt.
I encounter this error when I run the program:
interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP
{
// Insert ISR Code here
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm(" ESTOP0");
for(;;);
}
If i remove half of the program, then it will run and give correct
results.
Any idea how to remove the this error?
Thank you for your help.
-jenny
_____________________________________
to find it !
ILLEGAL_ISR is an illegal operation, such as executing illegal opcode
0xFFFF code (that you should have filled in the non-used memory).
So, two main causes
* Function pointer : If you have some, you should used CONSTANT function
pointers
* Stack overflow / stack corruption : here the stack size is too low or
there is a code that crash the stack value.
So, how to debug.
The asm ESTOP0 stop the emulator. From here, have a look to the CallStack
(function that were called before the crash), it should be always the same
function that perform the crash !
Well, I hope for you ... or it will take days until you found it.
Good luck in your investigation.
_____________________________________________________________________________________
Alain SALMETOZ | APC by Schneider Electric | IT Business |
Firmware design Engineer senior
Phone: +4 76 18 33 59 ext. 3359 |
Email: a...@mgeups.com | Site: www:apc-mge.com | Address:
140 avenue Jean Kuntzmann, INOVALLEE - Montbonnot St Martin, 38334 Saint
Ismier cedex
*** Please consider the environment before printing this e-mail
m...@gmail.com
Envoypar : c...
01/04/2010 12:27
Veuillez rondre br /> m...@gmail.com
A
c...
cc
Objet
[c28x] Illegal operation TRAP for F2812
Hi,
I having problem using F2812 eZdsp.
My program quite long and have many call function to be perform in the
CpuTimer0 interrupt.
I encounter this error when I run the program:
interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP
{
// Insert ISR Code here
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm(" ESTOP0");
for(;;);
}
If i remove half of the program, then it will run and give correct
results.
Any idea how to remove the this error?
Thank you for your help.
-jenny
_____________________________________
Reply by ●April 16, 20102010-04-16
build your program with one function at a time if possible
then you will find out which part is creating a wrong function to occur in your processor
best of luck
-Chirag
--- On Fri, 2/4/10, a...@mgeups.com wrote:
From: a...@mgeups.com
Subject: RE [c28x] Illegal operation TRAP for F2812
To: m...@gmail.com
Cc: c...
Date: Friday, 2 April, 2010, 11:24 AM
I will not explain how to remove the error, but maybe give you some clue
to find it !
ILLEGAL_ISR is an illegal operation, such as executing illegal opcode
0xFFFF code (that you should have filled in the non-used memory).
So, two main causes
* Function pointer : If you have some, you should used CONSTANT function
pointers
* Stack overflow / stack corruption : here the stack size is too low or
there is a code that crash the stack value.
So, how to debug.
The asm ESTOP0 stop the emulator. From here, have a look to the CallStack
(function that were called before the crash), it should be always the same
function that perform the crash !
Well, I hope for you ... or it will take days until you found it.
Good luck in your investigation.
____________ _________ _________ _________ _________ _________ _
Alain SALMETOZ | APC by Schneider Electric | IT Business |
Firmware design Engineer senior
Phone: +4 76 18 33 59 ext. 3359 |
Email: alain.salmetoz@ mgeups.com | Site: www:apc-mge. com | Address:
140 avenue Jean Kuntzmann, INOVALLEE - Montbonnot St Martin, 38334 Saint
Ismier cedex
*** Please consider the environment before printing this e-mail
makinotaro@gmail. com
Envoyé par : c28x@yahoogroups. com
01/04/2010 12:27
Veuillez répondre à
makinotaro@gmail. com
A
c28x@yahoogroups. com
cc
Objet
[c28x] Illegal operation TRAP for F2812
Hi,
I having problem using F2812 eZdsp.
My program quite long and have many call function to be perform in the
CpuTimer0 interrupt.
I encounter this error when I run the program:
interrupt void ILLEGAL_ISR( void) // Illegal operation TRAP
{
// Insert ISR Code here
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm(" ESTOP0");
for(;;);
}
If i remove half of the program, then it will run and give correct
results.
Any idea how to remove the this error?
Thank you for your help.
-jenny
then you will find out which part is creating a wrong function to occur in your processor
best of luck
-Chirag
--- On Fri, 2/4/10, a...@mgeups.com wrote:
From: a...@mgeups.com
Subject: RE [c28x] Illegal operation TRAP for F2812
To: m...@gmail.com
Cc: c...
Date: Friday, 2 April, 2010, 11:24 AM
I will not explain how to remove the error, but maybe give you some clue
to find it !
ILLEGAL_ISR is an illegal operation, such as executing illegal opcode
0xFFFF code (that you should have filled in the non-used memory).
So, two main causes
* Function pointer : If you have some, you should used CONSTANT function
pointers
* Stack overflow / stack corruption : here the stack size is too low or
there is a code that crash the stack value.
So, how to debug.
The asm ESTOP0 stop the emulator. From here, have a look to the CallStack
(function that were called before the crash), it should be always the same
function that perform the crash !
Well, I hope for you ... or it will take days until you found it.
Good luck in your investigation.
____________ _________ _________ _________ _________ _________ _
Alain SALMETOZ | APC by Schneider Electric | IT Business |
Firmware design Engineer senior
Phone: +4 76 18 33 59 ext. 3359 |
Email: alain.salmetoz@ mgeups.com | Site: www:apc-mge. com | Address:
140 avenue Jean Kuntzmann, INOVALLEE - Montbonnot St Martin, 38334 Saint
Ismier cedex
*** Please consider the environment before printing this e-mail
makinotaro@gmail. com
Envoyé par : c28x@yahoogroups. com
01/04/2010 12:27
Veuillez répondre à
makinotaro@gmail. com
A
c28x@yahoogroups. com
cc
Objet
[c28x] Illegal operation TRAP for F2812
Hi,
I having problem using F2812 eZdsp.
My program quite long and have many call function to be perform in the
CpuTimer0 interrupt.
I encounter this error when I run the program:
interrupt void ILLEGAL_ISR( void) // Illegal operation TRAP
{
// Insert ISR Code here
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm(" ESTOP0");
for(;;);
}
If i remove half of the program, then it will run and give correct
results.
Any idea how to remove the this error?
Thank you for your help.
-jenny