工具/软件:TI-RTOS
尊敬的支持人员:
我有一个带有 RTOS 的小型程序(CCS 7.2、TI v16.12.0、XDCtools 3.32.2.25内核)
程序应通过 SCIC 与 PC 进行通信。 环回工作正常。(中断工作)、没有 RTOS 也工作正常(我从 PC 数据发送、它产生 RX 中断)
通过 RTOS ( 不带环回)从 PC 数据发送不会产生 RX 中断。 我用相同的波特率配置了 PC 和 DSP
我的设置为:
void scic_fifo_init ()
{
ScicRegs.SCICCR.ALL = 0x0007;
ScicRegs.SCICTL1.ALL = 0x0003;
ScicRegs.SCICTL2.bit.TXINTENA=1;
ScicRegs.SCICTL2.bit.RXBKINTENA=1;
ScicRegs.SCIHBAUD.ALL = 0x0000;
ScicRegs.SCILBAUD.ALL = SCI_PRD;
ScicRegs.SCICCR.bit.LOOPBKENA=0;
ScicRegs.SCIFFTX.ALL = 0xC022;
ScicRegs.SCIFFRX.ALL = 0x0022;
ScicRegs.SCIFFCT.ALL = 0x00;
ScicRegs.SCICTL1.ALL = 0x0023;
ScicRegs.SCIFFTX.bit.TXFIFORESET = 1;
ScicRegs.SCIFFRX.bit.RXFIFORESET = 1;
}
这里有什么问题?
如果中断在回送中工作-它也应该在没有中断的情况下工作!
我的配置文件为:
var hwi0Params = new hwi.Params();
hwi0Params.instance.name ="ISR_PhysicalLayer_Tx_Handle";
hwi0Params.enableInt = true;
program.global.ISR_PhysicalLayer_Tx_Handle = Hwi.create (93、"&ISR_PhysicalLayer_Tx"、hwi0Params);
var hwi1Params = new hwi.Params();
hwi1Params.instance.name ="ISR_PhysicalLayer_RxA_Handle";
hwi1Params.enableInt = true;
program.global.ISR_PhysicalLayer_RxA_Handle = Hwi.create (92、"&ISR_PhysicalLayer_RxA"、hwi1Params);
boot.SPLLIMULT = 40;
bios.cpufreq.lo = 200000000;
BOOT.SYSCLKDIVSEL = 1;
谢谢、Sabina