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.

RTOS/TM4C1294NCPDT: Problem with page 16 of the TI-RTOS 2.20 User Manual, unable to make use of UIA/Logging

Part Number: TM4C1294NCPDT

Tool/software: TI-RTOS

Based on demo project from usbserialdevice (instead of uartecho as in manual) for this device (I have EVAL board BoosterPack2 for 1294 device) which working fine.

I then tried to adopt the section 2.3 of the user manual to explore UIA/Logger but got stuck due to complier error unregonised symbol USBCDCD_LoggerIdle_sendData

LoggingSetup.loggerType = LoggingSetup.LoggerType_IDLE;
LoggerIdle.transportType = LoggerIdle.TransportType_USB;
LoggerIdle.bufferSize = 1024;
LoggerIdle.transportFxn = "&USBCDCD_LoggerIdle_sendData";

I unable to progress as the manual did not explain what went wrong. I disabled the logger and loggeridle from the RTSC for now. Recomplie and it work fine (without logging).

UI

  • Hello Richard,

    If the compiler reports "unregonised symbol USBCDCD_LoggerIdle_sendData" that means that it does not see a way to compile the USBCDCD_LoggerIdle_sendData function. This would happen if the header file for that function is not properly included in your project and/or the .c file making the API call. Looking at the TI-RTOS for Tiva-C download, it looks like this function is contained in the header file 'USBCDCD_LoggerIdle.h'. You will need to link the location of that header file along with it's .c companion to your CCS project, and then use a #include for the header file within any .c file that contains the USBCDCD_LoggerIdle_sendData API.
  • Ok, I have already included this USBCDCD_LoggerIdle.h in accordance to section 2.3 procedure, have I missed something? how to make link work?
  • Hello Richard,

    Hmm, reading through the document those steps should be all you need to perform. I think it would be quickest if I could try building the project myself and see the error. Can you export the CCS project into a zip file and upload it to E2E so I may try on my end?
  • 110-RFDDAQ-1A.rar

    (1) Please delete the file when you loaded in, thanks

    (2) I believe there bug in CCS 8.0.0 impacting the XGCONF where under TI-RTOS DRIVER Configuration Option where instrumented or non-instrument checkbox is not displayed. I can do this via CONF editor.

    (3) Because I was using USB (CDC) for specific application, which look like there conflict between USBDCD and USBDCD_LoggerIdle file, both cannot work together otherwise compiler error happen. I could use TransportType_UART but not sure how to use that. 

    (4) The code work when STOP (via JTAG) which indicated printf() activity. This before LoggerIdle was adopted. 

    (5) I note the code seem to freeze (is this what happening?, I have not yet checked this) waiting for USB connection before message and LED come out, how to bypass that.

    I still on learning curve. I used RTOS on CC2640R2 project and structure is very similar what I made up now. 

    R,  

  • I forget to add......(6) How to make use chart (ie workload)
  • Hello Richard,

    I forgot to ask which version of TI-RTOS are you using, from the project it looks to be 2.14.00.10, is that right? I am getting a missing package error on my end so want to make sure I am trying to build with the right RTOS version...

    Regarding point 1, I don't understand?

    As for the remaining points, I will need to hand those over to the TI-RTOS team but I want to try and help resolve the compiling error before doing so.