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.

編譯/ TMS320F28035:TMS320F28035 SCI example can't work normally

Part Number: TMS320F28035

Tool/software: TI C / C ++編譯器

Sorry,myTMS320F28035 SCI example can't work normally,

When I lost the word from the computer to the TMS320F28035, TMS320F28035 can not return the word to me, he will only have a reflex signal to me, but not the Example above the program back, and ask where is the problem?

  • Hello,

    What example are you using? Can the TMS320F28035 receive a word from the computer?

    Regards,
    Cody

  • Hello again,

    Are you still having issues?

    Regards,
    Cody
  • Hello,
    I used "Example _2803xSci_Echoback",At the beginning, I can receive 28035 came the "Hello Word, and told me to pass a character to 28035, but I return characters in the past, 28035 and no action has been stuck in the" while (SciaRegs.SCIFFRX.bit .RXFFST! = 1) ",I would like to ask what is the problem, thank you
    micky
  • Mickey,

    You should check the SCI receive status register(SCIRXST), it has many helpful bits RXERROR, BRKDT, FE, OE, and PE. These bits will tell you what goes wrong when receiving messages from the computer.

    If none of these bits are set you probably are not receiving a signal from the PC and should check the following:

    1. Your PC is transmitting, the best way is to put a Oscilloscope on the PC's TX line.

    2. Hardware connections from the PC's TX to the F28035's RX line.

    3. Check your GPIO configurations. To do this you should use a wire to connect between the SCIa Rx and SCIa Tx. You can then send a message, and check that it matches the result you Receive, if nothing appears then you have something configured incorrectly on the F28035.

    Regards,
    Cody

  • Cody,
    I am sure the PC is connected to the F28035 is correct, and the PC does have an outgoing signal to the F28035, but do not understand while (SciaRegs.SCIFFRX.bit.RXFFST! = 1) {}
    This line means.
    F28035 then received on the SCIRXBUF characters are, I would like to ask how should set up.
    Thank you very much for your patience to solve the problem.
    Regards,
    Micky
  • The "(SciaRegs.SCIFFRX.bit.RXFFST! = 1) {}" line means that the code should wait there unless there is exactly one word in the receive FIFO. There is a description of these bits in the SCI User Guide. RXFFST tells you how many unread messages are inside of the FIFO. The device will sit there if it doesn't have EXACTLY 1 message, if it has zero messages, or more than one message it could stop forever at that line.

    Regards,

    Cody

  • Cody
    Thank you for my answer, I would like to ask, how should I confirm that the PC has sent to SCIRXBUF, I am sure there are things PC out, but how to see SCIRXBUF whether there is something, I am afraid SCIRXBUF not received.
    thank you.
    Regards,
    Micky
  • Mickey,

    to determine how many unread messages have been received you should look at RXFFST. RXFFST simply indicates the number of unread messages in the receive FIFO. A full description can be found in the SCI users guide.


    Regards,
    Cody

  • Cody,

    Thank you for answering questions, I try to find a problem, I am asking you questions, thank you very much.

    Regards,
    Micky

  • Micky,
    Have you solved this issue?

    Regards,
    Cody