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.

about sdk_display() function in EZ430-RF2560 IAR soft

 

sorry for Innocent question!I'm a newbie in BT and MSP430! I already downloaded IAR BT sameple soft for board.I want  to display data ( for debug and exchange data) through UART.

I find many place in code using sdk_display() but I can;t find the source code for this function?I understand that function display status of BT device.But where do it display on?through UART or another port???? i''m using EZ430-RF2560 and USB debug from TI.

example: in this code.where does string "SPP_RECVD_DATA_IND -> Data received successfully" display on????

 

By theway i want to display status on terminal how can I do it?

case SPP_RECVD_DATA_IND:
        sdk_display("SPP_RECVD_DATA_IND -> Data received successfully\n");
        sdk_display("\n----------------HEX DUMP------------------------\n");
        for (index = 0; index < datalen; index++) {
            sdk_display("%02X ", l_data[index]);
        }

 

best regard

  • Hi,

    sdk_display() is current defined not to display anything and is only a place holder that can be customized by the user. So, you will not see any print messages with the default definition of sdk_display(). You can however customize this function as part of your application requirements. Look for the definition of sdk_display(...)in sdk_common.h to customize it according to your needs. T.

    In your case, you may choose to define this function to use the halUsbSendString() if you wish to redirect these messages to the UART.

    Regards

**Attention** This is a public forum