UART does not work in SDK3.7.0 in BCM94390WCD2

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

While porting our software  to SDK 3.7 for SSL/TLS with MQTT

Device : BCM94390WCD with SPIL module

Status:

  UART is not working in SDK3.7.0

  From the module view,   UART TX is working, UART RX is not working.

  Same code, different target to BCM943362, it is working

  

  We tested with #ifndef BCM4390X_UART_SLOW_POLL_MODE definition for  "platform_uart_receive_bytes"

  It also does not work.

For simple duplication,

      snip.uart-BCM943362WCD4-FreeRTOS-LwIP download run  <== this works

      snip.uart-BCM94390WCD2-FreeRTOS-LwIP download run   <== this does not work.

//------------------------------------------------------------------------------------------------------------------------

Snip code from WICED

void application_start( )

{

    char c;     uint32_t expected_data_size = 1;

    /* Initialise ring buffer */

    ring_buffer_init(&rx_buffer, rx_data, RX_BUFFER_SIZE );

    /* Initialise UART. A ring buffer is used to hold received characters */

    wiced_uart_init( STDIO_UART, &uart_config, &rx_buffer );

    /* Send a test string to the terminal */

    wiced_uart_transmit_bytes( STDIO_UART, TEST_STR, sizeof( TEST_STR ) - 1 );

    /* Wait for user input. If received, echo it back to the terminal */

   while ( wiced_uart_receive_bytes( STDIO_UART, &c, &expected_data_size, WICED_NEVER_TIMEOUT ) == WICED_SUCCESS )

    {

    WPRINT_APP_INFO(("RECEIVED=%c",c));

        wiced_uart_transmit_bytes( STDIO_UART, &c, 1 );

        expected_data_size = 1;

    }

    WPRINT_APP_INFO(("erroR=%c",c));

}

0 Likes
2 Replies
Anonymous
Not applicable

Hi Alex,

Could you contact me via E-mail? Please send me a mail via ccha@cypress.com.

Thanks,

Best regards,

Roy

0 Likes
Anonymous
Not applicable

Hi manulsan​,

Which header pins your using for STDIO_UART?

see platform.h and platform.c and try to compare

thanks,

0 Likes