This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I configure UART? Send data from nRF52832 to QUECTEL module by using "ZEPHYR" SDK?

Hi all,

       I am using nRF82532 board. This board TX,RX(P0.06,p.0.08) pins connected with QUECTEL module in ZEPHYR sdk platform . Please forgive me for these basic doubts. 

   1. If I need to send some command from my nRF52832 board to QUECTEL module through UART, how can I make communication through UART?

   2.How do I configure UART using ZEPHYR API's?

Parents
  • Hi,

    What board do you use? Nordic DK or custom?

    UART is configured basing on:

    1. board's device tree - this is where you define PINs, baudrate and peripheral (UART/UARTE - using compatible)

    2. Kconfig - this is where you select driver (UART or UARTE). You need to ensure that peripheral in DT (device tree) and selected driver are consistent. 

    3. prj.conf file - this is where you say that your project is willing to use UART feature.

    Next when you are in the main function all is ready and initialized. UART API is located in the file:

    zephyr\include\uart.h

Reply
  • Hi,

    What board do you use? Nordic DK or custom?

    UART is configured basing on:

    1. board's device tree - this is where you define PINs, baudrate and peripheral (UART/UARTE - using compatible)

    2. Kconfig - this is where you select driver (UART or UARTE). You need to ensure that peripheral in DT (device tree) and selected driver are consistent. 

    3. prj.conf file - this is where you say that your project is willing to use UART feature.

    Next when you are in the main function all is ready and initialized. UART API is located in the file:

    zephyr\include\uart.h

Children
Related