Tool/software:
I trying to use the CCS10.1 serial terminal but not able to see any data even after transferring to SCITX buffer.
Help me with this.
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:
I trying to use the CCS10.1 serial terminal but not able to see any data even after transferring to SCITX buffer.
Help me with this.
Hi Premsai,
And also, i am suggesting you to refer the below tested examples once:
--
Thanks & regards,
Jagadish.
Jagadish can i transfer 16bytes at a time from DMA to LINTD0 and LINTD1 using software trigger, if yes which should use block transfer or frame transfer
Yes, you can!
Use block transfer and configure number of frames as 16 and elements as 1.
SS_DMA_HW_TRIGGER_DISABLE, /*HWTriggerEnable */
SS_DMA_CH_HIGH_PRIORITY, /*ChannelPriority */
DMA_RQST_NONE, /*DMA_RequestSource */
(UINT32)&APP_FPGA_TX_RawBuffer[0], /*InitialSourceAddress */
(UINT32)0xFFF7E574U, /*InitialDestinationAddress*/
16U, /*InitialFrameCount */
1U, /*InitialElementCount */
NO_DMA_CHANNEL_SELECTED, /*ChannelChaining */
ELEMENT_SIZE_32_BIT, /*ReadElementSize */
ELEMENT_SIZE_32_BIT, /*WriteElementSize */
DMA_ONE_BLOCK_TRANSFER, /*TransferType */
DMA_INDEXED_ADDRESSING_MODE, /*ReadAddressingMode */
DMA_INDEXED_ADDRESSING_MODE, /*WriteAddressingMode */
TRUE, /*AutoInitiationMode */
4U, /*ElementDestinationIndex */
4U, /*ElementSourceIndex */
0U, /*FrameDestinationIndex */
8U /*FrameSourceIndex */
check this if it is right
Hi Premsai,
You can do it from CCS as well,
In CCS and in debug mode, we have a window called Terminal:
If you can't find this window after entering in debug, then use this search option:
After opening terminal window here, you can configure the serial baudrate and other settings like COM port as per your board.
Once you configure then it will be ready to print your serial data in this window
Even you can give the input to the controller from this terminal by just typing from keyboard;
For example, as you can see the buffer is empty right
Now i am entering 8 keys from 1 to 8 in my keyboard in terminal window:
As a result, you can see my data is moved to the controller buffer by DMA.
In this way you can print or send the data using this terminal.
Remember here i changed the example baudrate to 115200:
--
Thanks & regards,
Jagadish.
HI jagadish,
void sciSetupAndTransfer(void)
{
// Initialize the SCI module
sciInit();
// Define the data to be sent
uint8 data[] = "Hello, SCI!";
uint32 dataLength = sizeof(data) - 1; // Exclude the null terminator
// Wait until the SCI is ready to transmit
while (!sciIsTxReady(scilinREG))
{
// Wait for the transmit buffer to be ready
}
// Send the data
sciSend(scilinREG, dataLength, data);
}
I prepared this code from the same module this should print the data on the ccs terminal right?
Hi Premsai,
Yes this should print.
First i am suggesting you try this example code once:
SCI_AND_LED_Blink_TEST_LS3137 (2).zip
In this code i am toggling LED's for every one second and also in the same timeout i am printing the data on terminal "HERCULES" like as shown below.
This worked without any issues on my TMS570LS3137 board:
And make sure the terminal settings as below:
--
Thanks & regards,
Jagadish.
Hi Premsai,
Yes, it is important to use LINTX. Because the data will be transmitted on LINTX only.
As we are using SCI2 driver, which is combination of LIN and SCI, the data will be moved to the LINTX (B7) only.
In our Schematic we connected these LIN or SCI pins to the FT2232HL like as shown below
FT2232HL can be able to interface with two independent interfaces, each can be UART/FIFO/JTAG/SPI/I2C.
In our design we selected those two interfaces as UART and JTAG. So that means the FT2232HL will function like
1. USB to JTAG
2. USB to UART
Here USB to JTAG is used for device programming and debugging. Whereas USB to UART is used as a console to interface with PC.
For more details refer below thread:
So, as we connect this UART to USB to our PC, this USB driver in our PC allowing me to open the serial terminal. And whenever i send data from this controller UART, this will be converting into USB levels and then it is displaying in the serial terminal. Similarly, you can transfer data from terminal to the controller UART.
If your board doesn't have onboard USB to UART converter then at least you should use external UART to USB convertor adopter to view the data in serial terminal.
--
Thanks & regards,
Jagadish.