DSPRelated.com
Forums

Interrupts

Started by zhudi November 20, 2001
hi !
i have a problem in writing a interrupt test program for tms320vc33 in code compser!
error messages were poped when assembly the vecs.asm which defines the interrupt vector.
the error message:
************************************
asm30 vecs.asm vecs.obj -s -v30
TMS320C3x/4x COFF Assembler Version 5.11
Copyright (c) 1987-1999 Texas Instruments Incorporated
PASS 1
PASS 2
.title "vecs.asm"?
"vecs.asm", line 4: INVALID OPCODE

.ref _c_int01,_c_int02
"vecs.asm", line 5: INVALID OPCODE

.sect "vectors"?
"vecs.asm", line 7: INVALID OPCODE

br _c_int00
"vecs.asm", line 8: INVALID OPCODE

br _c_int01
"vecs.asm", line 9: INVALID OPCODE

br _c_int02
"vecs.asm", line 10: INVALID OPCODE 6 Errors, No Warnings

Errors in source - Assembler Aborted
************************************
the source code is as follows:

********.CMD FILE*******

MEMORY
{

OCRAM1 : org=0x800000, len=0x7fff
OCRAM2 : org=0x809800, len=0x7c1
VECS: org=0x809fc1, len=0x3f

}

SECTIONS
{

"vectors" > VECS
.text: > OCRAM1
.bss: > OCRAM1
.cinit: > OCRAM1
.const: > OCRAM1
.stack: > OCRAM1
.sysmem: > OCRAM2
}
***********C language main funtion and interrupt funtion***
#include

void interrupt c_int01()
{

}
void interrupt c_int02()
{

}
main()
{
printf("hello");
}
*************the vecs.asm file************
.title "vecs.asm"?
.ref _c_int01,_c_int02

.sect "vectors"?
br _c_int00
br _c_int01
br _c_int02

.end


Hello Zhudi

If you can repost this in ASCII text it would helps. The Yahoo server
scrambled this real bad.

Keith

At 05:16 PM 11/20/01 +0800, you wrote:
><body>
>hi !<br>i have a problem in writing a interrupt test program for tms320vc33
in code compser!<br>error messages were poped when assembly the vecs.asm
which defines the interrupt vector.<br>the error
message:<br>************************************<br>asm30 vecs.asm vecs.obj
-s -v30<br>TMS320C3x/4x COFF Assembler Version 5.11<br>Copyright
(c) 1987-1999 Texas Instruments Incorporated<br> PASS 1<br> PASS 2<br>.title
"vecs.asm"?<br>"vecs.asm", line 4: INVALID OPCODE<br><br>.ref
_c_int01,_c_int02 <br>"vecs.asm", line 5: INVALID OPCODE<br><br>.sect
"vectors"?<br>"vecs.asm", line 7: INVALID OPCODE<br><br>br
_c_int00<br>"vecs.asm", line 8: INVALID OPCODE<br><br>br
_c_int01<br>"vecs.asm", line 9: INVALID OPCODE<br><br>br _c_int02
<br>"vecs.asm", line 10: INVALID OPCODE<br><br><br> 6 Errors, No
Warnings<br><br>Errors in source - Assembler
Aborted<br>************************************<br>the source code is as
follows:<br><br>********.CMD FILE*******<br><br>MEMORY<br!
>>{<br> <br> OCRAM1 : org=0x800000, len=0x7fff<br> OCRAM2 :
org=0x809800, len=0x7c1<br> VECS: org=0x809fc1, len=0x3f<br>
<br>} <br><br>SECTIONS<br>{<br> <br> "vectors" > VECS<br> .text: >
OCRAM1<br> .bss: > OCRAM1<br> .cinit: > OCRAM1<br> .const: >
OCRAM1<br> .stack: > OCRAM1<br> .sysmem: > OCRAM2<br>}<br>***********C
language main funtion and interrupt funtion*** <br>#include <stdio.h>
<br><br>void interrupt c_int01()<br>{<br><br>}<br>void interrupt
c_int02()<br>{<br><br>}<br>main()<br>{<br>
printf("hello");<br>}<br>*************the vecs.asm
file************<br>.title "vecs.asm"?<br>.ref _c_int01,_c_int02
<br><br>.sect "vectors"?<br>br _c_int00<br>br _c_int01<br>br _c_int02
<br><br>.end <br><br><br><br><br><table border="1"
bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF"width="496"> <tr>
<td width="217"> <script language="JavaScript1.1"
src="http://ad263.allyes.com/main/adfshow?user=tebie|footer|footer3&db263
&loca!
>l=yes&js=ie"></script> </td> <td width="263"> <script
language="JavaScript1.1"
src="http://ad263.allyes.com/main/adfshow?user=tebie|footer|footer4&db263
&local=yes&js=ie"></script> </td> </tr> <tr> <td width="217">
<script language="JavaScript1.1"
src="http://ad263.allyes.com/main/adfshow?user=tebie|footer|footer1&db263
&local=yes&js=ie"> </script> <td width="263"><a
href="http://advert.263.net/cgi-bin/advert/push/redirect.cgi?aid123"
target="_blank"><font color="blue"> </font></a> <script
language="JavaScript1.1"
src="http://ad263.allyes.com/main/adfshow?user=tebie|footer|footer2&db263
&local=yes&js=ie"></script> </td> </tr></table><br>
><br>
>
><!-- |**|begin egp banner|**| -->
>
><table border=0 cellspacing=0 cellpadding=2>
><tr bgcolor=#FFFFCC>
><td alignter><font size="-1" color=#003399><b>Yahoo! Groups
Sponsor</b></font></td>
></tr>
><tr bgcolor=#FFFFFF>
><td alignter widthG0><a
href="http://rd.yahoo.com/M!2180.1701098.3252983.1269402/D=egroupweb/S0
5004726:HM/A2074/R=0/*http://www.verisign.com/cgi-bin/go.cgi?a53340270
003000"><img
src="http://us.a1.yimg.com/us.yimg.com/a/ve/verisign/vsopen24.gif" height`
widthF8 border=0></a></td>
></tr>
><tr><td><img alt="" width=1 height=1
src="http://us.adserver.yahoo.com/l?M!2180.1701098.3252983.1269402/D=egrou
pmail/S05004726:HM/A2074/rand54683401"></td></tr>
></table>
>
><!-- |**|end egp banner|**| -- ><br>
><tt>
>_____________________________________<BR>
>Note: If you do a simple &quot;reply&quot; with your email client, only the
author of this message will receive your answer.&nbsp; You need to do a
&quot;reply all&quot; if you want your answer to be distributed to the
entire group.<BR>
><BR>
>_____________________________________<BR>
>About this discussion group:<BR>
><BR>
>To Join:&nbsp; Send an email to <BR>
><BR>
>To Post:&nbsp; Send an email to <BR>
><BR>
>To Leave: Send an email to <BR>
><BR>
>Archives: <a
href="http://groups.yahoo.com/group/c3x">http://groups.yahoo.com/group/c3x</
a><BR>
><BR>
>More Groups: <a
href="http://www.dsprelated.com">http://www.dsprelated.com</a><BR>
></tt>
><br>
>
><br>
><tt>">http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
></br>
>
></body>
>hi !
>i have a problem in writing a interrupt test program for tms320vc33 in code
compser!
>error messages were poped when assembly the vecs.asm which defines the
interrupt vector.
>the error message:
>************************************
>asm30 vecs.asm vecs.obj -s -v30
>TMS320C3x/4x COFF Assembler Version 5.11
>Copyright (c) 1987-1999 Texas Instruments Incorporated
> PASS 1
> PASS 2
>.title "vecs.asm"?
>"vecs.asm", line 4: INVALID OPCODE
>
>.ref _c_int01,_c_int02
>"vecs.asm", line 5: INVALID OPCODE
>
>.sect "vectors"?
>"vecs.asm", line 7: INVALID OPCODE
>
>br _c_int00
>"vecs.asm", line 8: INVALID OPCODE
>
>br _c_int01
>"vecs.asm", line 9: INVALID OPCODE
>
>br _c_int02
>"vecs.asm", line 10: INVALID OPCODE > 6 Errors, No Warnings
>
>Errors in source - Assembler Aborted
>************************************
>the source code is as follows:
>
>********.CMD FILE*******
>
>MEMORY
>{
>
> OCRAM1 : org=0x800000, len=0x7fff
> OCRAM2 : org=0x809800, len=0x7c1
> VECS: org=0x809fc1, len=0x3f
>
>}
>
>SECTIONS
>{
>
> "vectors" > VECS
> .text: > OCRAM1
> .bss: > OCRAM1
> .cinit: > OCRAM1
> .const: > OCRAM1
> .stack: > OCRAM1
> .sysmem: > OCRAM2
>}
>***********C language main funtion and interrupt funtion***
>#include
>
>void interrupt c_int01()
>{
>
>}
>void interrupt c_int02()
>{
>
>}
>main()
>{
> printf("hello");
>}
>*************the vecs.asm file************
>.title "vecs.asm"?
>.ref _c_int01,_c_int02
>
>.sect "vectors"?
>br _c_int00
>br _c_int01
>br _c_int02
>
>.end >