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.

usbcdcmousedevice_MSP430F5529

Other Parts Discussed in Thread: MSP430F5529

I am trying to use the Log_print0() from one of the Ti Resource Explorer example:

TI-RTOS for MSP430 / MSP430x5xxx Family /  MSP320F5529 / Driver Examples / MSP430F5529 Experimenter Board / TI Target Examples / USB Examples / USB CDC Mouse Device

What are the changes required to have the Log_print0() working?

 Example:

switch (reportType) {
case USB_REQ_HID_INPUT:
/* Return pointer to input Report Buffer */
Log_print0(Diags_USER1, "USB: USBHID_handleEP0GetReport: USB_REQ_HID_INPUT");
return 0;
case USB_REQ_HID_OUTPUT:
/* Return pointer to OUTput Report Buffer */
Log_print0(Diags_USER1, "USB: USBHID_handleEP0GetReport: USB_REQ_HID_OUTPUT");
return 0;
case USB_REQ_HID_FEATURE:
/* Return pointer to FEATURE Report Buffer */
Log_print0(Diags_USER1, "USB: USBHID_handleEP0GetReport: USB_REQ_HID_FEATURE");
return 0;
default:
Log_print0(Diags_USER1, "USB: USBHID_handleEP0GetReport: default");
return 0;
}

Sylvain

  • Sylvain,

    There is a description of configuring and viewing logs in the TI-RTOS User’s Guide (e.g., Chapter 2 in http://www.ti.com/lit/ug/spruhd4f/spruhd4f.pdf).  Have you seen this?

    Scott

  • Sylvain,

    You should also look a the the "Memory Footprint Reduction" section in the TI-RTOS User Guide. Most of the TI-RTOS peripheral examples were designed to minimize footprint out of the box, so there is no logging support. The "Memory Footprint Reduction" describes how the footprint was reduced. You can reverse these in your example to get logging working. Also note that the UART examples support different types of logging (e.g. UART, USB and stopmode).

    Todd

  • You saw it coming, I got the following error:

    <Linking>

    error #10099-D: program will not fit into available memory. run placement with alignment fails for section "DATA_GROUP" size 0x47a . Available memory ranges:

    remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    RAM size: 0x2000 unused: 0x1e max hole: 0x1e

    remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    "../VTB01.cmd", line 109: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".stack" size 0x300 . Available memory ranges:

    remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    RAM size: 0x2000 unused: 0x1e max hole: 0x1e

    remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    error #10010: errors encountered during linking; "VTB01-FWR001-01A.out" not built