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.

TMDX5535EZDSP: ezDSP5535 and CSL Uart lib

Part Number: TMDX5535EZDSP

Hi,

I'm student and i actually work on an audio app with the ezDSP5535 board. I want to transmit data since my phone (app developped with MIT App Inventor) and my board via BT connexion (HC-06 module). I used for that the UART_RX and UART_TX pin from the extension board P2. I can establish a connexion, but i read understanding values. I tried the functions UART_read and UART_fgetc from CSL lib to recover my data from my phone, but i only received char like "ø", "þ", ... And when i used i slider item on my app, who normally can pass 10 values, i just read one or two of these characters... I set the baud rate at 9600 for my BT module, and the input clock to 100000000 Hz.

I just want to read from my app a simple integer on one byte with your CSL library for UART, how i can proceed? 

Thank you for your help.

Best regards.

Alex

  • Hi Alex,

    I guessing you have different UART configurations on ezDSP5535 and HC-06 module. I suggest you to take a look at CSL_UART_pollExample about UART initialization (UART setup structure):

    CSL_UartSetup uartSetup =
    {
    	/* Input clock freq in MHz */
        100000000,
    	/* Baud rate */
        9600,
    	/* Word length of 8 */
        CSL_UART_WORD8,
    	/* To generate 1 stop bit */
        0,
    	/* Disable the parity */
        CSL_UART_DISABLE_PARITY,
    	/* Disable fifo */
    	/* Enable trigger 14 fifo */
    	CSL_UART_FIFO_DMA1_DISABLE_TRIG14,
    	/* Loop Back enable */
        CSL_UART_NO_LOOPBACK,
    	/* No auto flow control*/
    	CSL_UART_NO_AFE ,
    	/* No RTS */
    	CSL_UART_NO_RTS ,
    };

    The configured parameters are c5535 clock (100 MHz), Baud rate, Word length, parity, flow control and stop bits. You must ensure same configuration on both devices.

    Also you can test c5535 UART as connect it to PC and start terminal application line Hyper terminal or Teraterm for Windows or minicom for Linux for example. Then type something om terminal and check what received on c5535. This test will help you to verify c5535 UART settings.

    Also you can connect HC-06 module to PC terminal and verify HC-06 UART settings too.

    Regards,

    Tsvetolin Shuleev

  • Thank you for your reply,

    I have set these parameter correctly (it's the same between my board and my BT module), and i have tried with the function UART_config and UART_setup, i continue to read special character... I have tried with a hyperterminal and the UART_ functions work correctly. I have the following pseudocode :

    - CSL_uartSetup structure declaration

    - UART_init () call, i have tried in polled mode and interrupt mode

    - Uart handle creation

    - Uart_reset () call

    - Uart_setup() call

    - Uart_resetOff() call

    - Uart_read() call

    I have tried the same within the reset functions, same problem... Have you any idea?

    Best regards.

    Alex