Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/TMS320F28379D: UART data sent to Tera Term is not correct

$
0
0

Part Number:TMS320F28379D

Tool/software: Code Composer Studio

I'm using the LAUNCHXL-F28379D board.

I'm using the following code to setup the UART:

// SCIA RX
GPIO_setPinConfig(GPIO_43_SCIRXDA);
GPIO_setPadConfig(43, GPIO_PIN_TYPE_STD);
GPIO_setDirectionMode(43, GPIO_DIR_MODE_IN);
GPIO_setQualificationMode(43, GPIO_QUAL_ASYNC);
// SCIA TX
GPIO_setPinConfig(GPIO_42_SCITXDA);
GPIO_setPadConfig(42, GPIO_PIN_TYPE_STD);
GPIO_setDirectionMode(42, GPIO_DIR_MODE_OUT);
GPIO_setQualificationMode(42, GPIO_QUAL_ASYNC);

// UART setup
SCI_performSoftwareReset(SCIA_BASE);
SCI_setConfig(SCIA_BASE, DEVICE_LSPCLK_FREQ, 9600, (SCI_CONFIG_WLEN_8 | SCI_CONFIG_STOP_ONE | SCI_CONFIG_PAR_NONE));
SCI_resetChannels(SCIA_BASE);
SCI_enableModule(SCIA_BASE);
SCI_performSoftwareReset(SCIA_BASE);

I setup Tera Term for 9600 baud and I send the following message:

unsigned char *msg;
msg = "\rProgram Start\n\0";
SCI_writeCharArray(SCIA_BASE, (uint16_t*)msg, 17);

Why doesn't the message print correctly in Tera Term?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>