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.

TMS320F2800157-Q1: UART Issue, unable to send Zero

Part Number: TMS320F2800157-Q1
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi TI Support Team,

I am trying to send a array of 12 bytes with all zeros using sci write char array function in micro controller, I was not able to receive data in a different system with receiver application. While I am sending non zero data in 12 bytes I was able to receive in the other system. I am not using FIFO anyway.

Kindly, suggest me ways to solve this issue?

Thanks,

Regards,

Kaustuv

  • Hello Kaustuv,

    A few questions for you:

    1. Is your program based off of one of our SCI C2000Ware SDK examples?
    2. Which version of C2000Ware are you using?
    3. Are you able to successfully run an SCI loopback mode example?
    4. Are you scoping the SCI lines to ensure TX/RX looks as expected?
    5. I see you are using nonFIFO mode. Is there a particular reason why? Can you share your SCI initializations?

    Best Regards,

    Allison

  • I am using c2000 5.1

    On hitting ISR for receive I am writing back 16 bytes of data in same ISR function. I am also clearing interrupts for getting next interrupt in ISR. Only Ready receive I am using. No FIFO is used.

    No transmit interrupt is being used.

  • Hello,

    To clarify, my understanding is that you are receiving data from another (non-C2000) device which triggers an RX ISR on the F280015x SCI. Within the SCI RX ISR, you are then transmitting back 16 bytes to the other device via the write char array driverlib function (nonFIFO mode). Is the issue that the other device does not receive the data? What data do you see on the other device when sending non-zero data versus data of zeroes? We need to also determine if the issue is on transmission side or other device receiving side. What is the other device you are communicating to?

    Can you please clarify my other questions I listed above as well:

    • Is your program based off of one of our SCI C2000Ware SDK examples? I want to ensure your initializations are set up correctly. Can you share the init?
    • Are you scoping the SCI lines to ensure TX/RX looks as expected for both F280015x and the nonC2000? What does the data look like when you are transmitting zeroes?

    Can you please download the latest version of C2000Ware? The version you are using (5.01.00.00) has a known bug in the write char array function that was fixed in the latest version (note that this bug would appear in FIFO mode and you are not using FIFO, it would be good for you to be up to date with the latest versions of DriverLib functions).

    Best Regards,

    Allison