This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMDXRM57LHDK
Hi there guys,
I am having trouble understanding a crash of my device. I'll try to explain it in detail.
What my program does:
Note: the serial interface receives data in asynchronous mode. This means that while the main loop is processing and sending via TCP the last received data it is also receiving new data over serial.
Problem:
Thoughts:
From the Reference Manual, I know there are two receive buffers: the SCIRXSHF and the SCIRD. The frist one gets all incomming data and when a frame has been completely received, the data is transfered to the second one.What is a frame here? As this transfer occurs, the RXRDY flag is set and a receive interrupt is generated.
If the serial interrupt is generated while the program is in the tcp interrupt, what happens with new data at SCIRXSHF? I would think, the SCIRXSHF keeps getting data to avoid losing some, right? Does this new data gets copied to SCIRD (because a complete frame was received) even though the last interrupt hasn't been serviced yet?
I wanted to see how ti behaves if I set the multi buffer mode (MBUF_MODE -> setting bit 10 of the global control register). But I am not setting it right. I don't see it in the register window of code composer studio. I am using this in the SCI_init function:
// attempt 1 sciREG3->GCR1 |= 0x400U; // attempt 2 sciREG3->GCR1 |= (uint32)((uint32)1U << 10U)
I'm stuck here guys. I could use some help.
Thanks and best regards,
Julio