Thread: Why SERCOM1_USART_Write function cannot be used twice in a row?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2021
    Posts
    17

    Why SERCOM1_USART_Write function cannot be used twice in a row?

    For a PIC32CM processor, I am trying to use the UART write function twice in a row. The project is built from Harmony3.

    SERCOM1_USART_Write(char_array1, sizeof(char_array1));
    SERCOM1_USART_Write(char_array2, sizeof(char_array2));

    When the code is executed, only string1 is displayed.

    I introduced various delay methods in between the two writes without success.

    Does anyone have a solution or workaround?

    Thanks.
    Last edited by boomeral; 06-15-2021 at 06:28 AM. Reason: added information.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-19-2020, 05:50 AM
  2. Function Prototype, Function Call, and Function definition
    By dmcarpenter in forum C Programming
    Replies: 9
    Last Post: 04-09-2013, 03:29 AM
  3. Replies: 13
    Last Post: 03-20-2012, 08:29 AM
  4. Print function: sending a function.. through a function?
    By scarlet00014 in forum C Programming
    Replies: 3
    Last Post: 11-05-2008, 05:03 PM
  5. Replies: 9
    Last Post: 01-02-2007, 04:22 PM

Tags for this Thread