Tool/software: TI-RTOS
Dear support,
I have a small program with RTOS (ccs 7.2, TI v16.12.0, XDCtools 3.32.2.25 core)
The program should communicate via SCIC with PC. Loopback work good.(interrupts work), without RTOS work good too (I send from PC data and it produce RX interrupt)
With RTOS (without loopback) sending from PC data doesn't produce RX interrupt. I configured PC and DSP with the same baudrate
My setting is:
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;
}
What is be the problem here?
if interrupt work in loopback - it should work without it also!
My configuration file is:
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;
Thanks,Sabina