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

UARTE0 BAUDRATE setting method

OS in development environment :Windows7
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
Soft Ver:nRF5_SDK_15.3.0_59ac345

The ble_app_uart program uses UARTE0. However, the correct value is not set in the UARTE0 BAUDRATE register.
(UART0 BAUDRATE value is set)
How can I set the UARTE0 BAUDRATE register correctly?

"Ble_app_uart_c" UARTE0 BAUDRATE register setting is also wrong

Parents
  • Hi

    Thank you for clarifying, and sorry that I missed that. The reason these baud rates are different is that they are different modules, and require different baud rates to work properly. Anyway, I think you're mistaken with regards to the which modules these examples are using, as they're both using the UART register, which is why it makes sense that they both use the UART baud rate. It is possible to switch and use UARTE instead, but in that case, the code in ble_app_uart switches automatically to the correct baud rate and header files.

    Please tell me if anything is unclear, or how you can see that UARTE is the module that is used in the example.

    Best regards,

    Simon

  • This screen is a screen where the UART transmission is executed using Ble_app_uart_c of SDK sample program and the transmission program used is confirmed.
    ① Function name (nrfx_uarte_tx)
    UARTE is used.
    (2) UART0 baud rate setting
    UART0 baud rate parameter is set
    (3) UARTE0 baud rate setting
    The parameters are different.
    (UART0 baud rate parameter is set.)

    I am using UARTE, but the baud rate parameter of UARTE0 is not set correctly.

Reply
  • This screen is a screen where the UART transmission is executed using Ble_app_uart_c of SDK sample program and the transmission program used is confirmed.
    ① Function name (nrfx_uarte_tx)
    UARTE is used.
    (2) UART0 baud rate setting
    UART0 baud rate parameter is set
    (3) UARTE0 baud rate setting
    The parameters are different.
    (UART0 baud rate parameter is set.)

    I am using UARTE, but the baud rate parameter of UARTE0 is not set correctly.

Children
Related