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.

CCS/TMS570LS1227: SciSend only sending firstchar/byte

Part Number: TMS570LS1227
Other Parts Discussed in Thread: TMS570LS1224, HALCOGEN

Tool/software: Code Composer Studio

Hello, 

I'm working on a self-made computer that uses the tms570ls1227PGE, and am currently trying to SciSend data via sciREG through a FT230XS USB to UART device. I have previously used this for sciSend on a tms570ls1224 launchpad, with success, but am only receiving the first char in my string when I attempt to sciSend. Is there different behavior with the USB to UART device because of my custom setup? If I am only able to send one byte at a time, is there a recommended way of sending entire strings efficiently?

Thank you!

  • Edit: I should also add that if I write multiple sciSend statements in a row, it will only print off the first char of the first sciSend and the last one. I am assuming this means that sciSend is not interrupting the program correctly to complete execution.
  • sciSend is to send a block of data. SCI is serial port, and it sends only 1 char at a time. Please check TXRDY bit in FLR register. If the bit is cleared, the data in TD registered is not transmitted. Do you tell sciSend function the data length for transmitting?

    Since you have got 1 char already, the setup of USB-FT232-JTAG/SCI of TMS570 should be fine.
  • Hello QJ , thanks for the reply.

    Yes, I did specify the length of the string in SciSend, with no luck. If I were to specify "Hello", for instance, with length of 5, it would still print just "H".
    I'm unable to find the FLR register in my list of registers when debugging in CCS, am I looking in the wrong place?

    Since this may be important: I am running this on a TMS570ls1227PGE, which is using FreeRTOS that was ported from a TMS570ls1227ZWT using a TI tutorial. However, I don't think FreeRTOS is to blame as I stuck the sciSend command in a while(1) loop in main and it was still performing in the same fashion.

    Best regards
  • Hello Again QJ,

    I've been experimenting all day and ended up going back to my Hercules development board to test ( a TMS570ls1224PGE). Interestingly, it is also sending only single characters to my terminal, so I am glad to assume that it isn't any issue with my hardware (I think). I have also tried using a different computer with a completely different program to sciSend, but I am seeing the exact same issue. I have no idea what could be going wrong at this point, any ideas?

    Thank you!

  • Hello Ben,

    Do you like to try the test case I created? I can write a test case to print a whole string for you.
  • Hi Ben,

    BTW, do you see the same issue using TI LS12x Launchpad?
  • Hello QJ,

    Sorry for the delay. It turned out to be an issue with my Halcogen Setup as I had both the RX and TX ints enabled and was not considering that in my code.

    Thanks for all the help!