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.
Tool/software: TI C/C++ Compiler
Hello,
My name is Julian and I'm currently working with a Hercules Safetiy MCU Dev. Kit (TMS570LC43 MCU).
To be concise, I'm working on a project that requires the use of multiple SCI interfaces and also the EMIF. Since the EMIF shares pins with SCI4, the only serial interfaces left are SCI1, SCI2 and SCI3.
I'm using USB to TTL conectors to connect my terminal with the board.
SCI1 is used as a report tool (classic "puts()" function) from the board back to a terminal that the Hercules is connected to. SCI2 ought to be used to receive data from the terminal and SCI3 to send data back to the terminal (processed data). You get the picture: my setup is a loop between the Hercules and my terminal, using SCI2 as a RX port (board side) and SCI3 as a TX port (board side), while SCI1 acts as a debug or report tool.
Without further ado, SCI2 as a RX port does not receive data at all. I.e., the "Terminal -> SCI2 -> Hercules > SCI3 -> Terminal" connection does not work. Yet, if I use SCI4 as a receiver, it does work; "Terminal -> SCI4 -> Hercules > SCI3 -> Terminal". But I know that SCI4 cannot be used since I have a pin mux conflict with the EMIF peripheral. Therefore, I have to find out why SCI2 is not working.
Pin muxing is set correctly (as far as I know, I have SCI3, SCI4 and LIN2/SCI2 enabled) and no muxing conflicts; interrupts are also set for all the serial ports; as far as I can tell, I'm connecting the USB to TTL connectors to the correct I/Os on my board. This is: SCI2/LIN2 ought to be P4 (RX) and T5 (TX). Of course, since I can receive/send all the data correctly, SCI3 (W3, N2) and SCI4 (A13, B13) are also correct.
I'm using SCI1/LIN1 directly with the JTAG connector.
Am I missing something? Why is it that all the serial interfaces work yet SCI2 does not? Am I missing a configuration? Am I not using the correct connectors? Does it have to do with the fact that it is a LIN port and that the JTAG is blocking it?
Thank you very much in advance,
Julian
PS: I am currently running a FreeRTOS on the board, but I obtain the same results with a project that does not. Basically both projects have the same behavioral, with the exception that the FreeRTOS functionality is a tasks main body, whereas in the other, it is not.
Hello, QJ Wang.
Responding to both things, accordingly: the drivers are enabled correctly for the SCI drivers only (no LIN) and the same goes for the pinmux.
Getting back to the latest answer: it is then my understanding that I cannot use SCI2 via the I/O pins on the back of the board.
So the only way for me to work then is using SCI3 and SCI4 using the I/O pins and SCI1/2 (or LIN1/2) using the JTAG connector. Have I understood correctly?
Knowing this would basically resolve the issue, because I would exactly know what does and what does not work on my Hercules TMS570LC4357 board, despite SCI2 not working properly. And I could find a workaround with that.
Thank you very much in advance,
Julian
edit: phrasing.