Tool/software: Code Composer Studio
hi
how to enable and configure logging setup ( uart logger ) in ccs for tm4c1294ncpdt ? and how to send the logs ( data ) to uart console using these logging setup ?
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: Code Composer Studio
hi
how to enable and configure logging setup ( uart logger ) in ccs for tm4c1294ncpdt ? and how to send the logs ( data ) to uart console using these logging setup ?
I would suggest having a look at the uartlogging example included with TI-RTOS for TivaC. It uses the UART driver and LoggerIdle to send Log data to the UART. You can use this as a baseline to develop your application.
TI-RTOS for TivaC can be downloaded and installed directly from Resource Explorer inside CCS.
In addition to that example, the System Analyzer User's Guide is a great reference for the different logger types available and how each one should be configured.
http://www.ti.com/lit/spruh43
Details are in Chapter 5 or search for LoggerIdle in the guide.
Hope this helps.
1. Import, build and load uartlogging example.
2. Determine which port to use. For example, here is Device Manager on my Windows machine. I see the port is COM14
3. Open Tools->RTOS Analyzer->Execution Graph. Make sure the correct port was selected and the status is good and select "Start".
4. Run the target. You should start to get Log records in the Live Session
and the Execution graph (you'll need to open and resize as needed).
Todd
Are you looking for the decoded log records to be sent out the UART? Please note that this impacts the performance of the device since non-trivial string manipulations must be done on the device (as opposed to doing them on the host computer). If so, why do you want to do this?
Nike,
Take a look at this page: http://processors.wiki.ti.com/index.php/LoggerIdle_Uart. It includes code example. If you look at the code example, the decoding of the binary Log records to ASCII is done in MyLog_doPrint().
Todd
Nike,
I'm glad you got the UART output to work. Please start a new thread for the stack overflow. You might want to read/watch this first though: https://training.ti.com/debugging-common-application-issues-ti-rtos
Todd