|
TI给出的DSP BIOS例程里面有一个 mbxtest 程序,大概是教一下邮箱的用法,该程序有三个写任务和一个读任务,,优先级相同。彼此靠MBX来激发。我新建了一个工程,除了cpu工作时钟和swwsr的设置不同外,以下全部相同,可是在我的实验箱上的编译连接以后,出现这样的问题:
---------------------------- mailbox.pjt - Debug ----------------------------
"c:\ti\plugins\bios\gconfgen" mailbox.cdb
((self.COUNTSPMS & 0xffff0000) >> 16)
self.COUNTSPMS & 0xffff0000
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000) >> 16
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
((self.COUNTSPMS & 0xffff0000) >> 16)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
self.COUNTSPMS & 0xffff0000
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000) >> 16
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
((self.COUNTSPMS & 0xffff0000) >> 16)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
self.COUNTSPMS & 0xffff0000
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000) >> 16
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
((self.COUNTSPMS & 0xffff0000) >> 16)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
self.COUNTSPMS & 0xffff0000
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000)
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
(self.COUNTSPMS & 0xffff0000) >> 16
==> err
((self.COUNTSPMS & 0xffff0000) >> 16)
((self.COUNTSPMS & 0xffff0000) >> 16)
==> err
"c:\ti\c5400\cgtools\bin\cl500" -g -q -fr"C:/ti/myprojects/mailbox/Debug" -i"C:/ti/myprojects/mailbox" -d"_DEBUG" [email=-@]-@"Debug.lkf[/email]" "mbxtest.c"
[mbxtest.c]
"c:\ti\c5400\cgtools\bin\cl500" -g -q -fr"C:/ti/myprojects/mailbox/Debug" -i"C:/ti/myprojects/mailbox" -d"_DEBUG" [email=-@]-@"Debug.lkf[/email]" "mailboxcfg.s54"
"mailboxcfg.s54", ERROR! at line 257: [E0005] Operand missing
.asg
"mailboxcfg.s54", ERROR! at line 258: [E0003] Only labels and comments may
begin in the first column. Make
sure that the label name is not
a reserved keyword.
, _COUNTSPMSHIGH
"mailboxcfg.s54", ERROR! at line 258: [E0002] Invalid mnemonic specification
, _COUNTSPMSHIGH
Errors in Source - Assembler Aborted
"c:\ti\c5400\cgtools\bin\cl500" -g -q -fr"C:/ti/myprojects/mailbox/Debug" -i"C:/ti/myprojects/mailbox" -d"_DEBUG" [email=-@]-@"Debug.lkf[/email]" "mailboxcfg_c.c"
[mailboxcfg_c.c]
Build Complete,
4 Errors, 0 Warnings, 0 Remarks.
我的实验箱是5402的!
我解释不清楚,有哪位高手大哥明白的请帮帮忙吧!
其实,我只是想看看3个写任务和一个读任务在优先级相同的情况下的工作流程,和用邮箱是怎样代替SEM-post、pend工作的;就是想用执行曲线看一下具体是怎么操作的!
如果有哪位大侠对该个程序理解很好,请不吝赐教吧!
|
|