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

error: 'NRF_UARTE_BAUDRATE_250000' undeclared

I'm using

SDK : nRF5_SDK_17.0.2

Example Project : ble_app_uart

Soft device :S113

The initial project builds successfully.

My project has requirements for tow uarts.

As one UART is already used in the built in project, i leave it as it is.

When i try to configure another uart i get as below

error: 'NRF_UARTE_BAUDRATE_250000' undeclared (first use in this function); did you mean 'UART_BAUDRATE_BAUDRATE_Baud250000'?

Really confused about UART and UARTE are they mutully exclusive ??

8838.sdk_config.h

Parents
  • Hi

    The UART module is the older UART peripheral that we used in earlier devices (like the nRF51 series), and it is only kept for compatibility reasons to ensure that older code written for the UART module will still work. 

    For any new project you should use the UARTE module instead, which is an improved version of the peripheral that most importantly adds support for the EasyDMA feature. 

    The UART and UARTE is mutually exclusive, yes, and if you use the UART0 peripheral then the UARTE0 peripheral will not be available. 

    If you are using the nRF52833 you have two UARTE modules available, and I recommend using these two instead of using the UART module. 

    Best regards
    Torbjørn

Reply
  • Hi

    The UART module is the older UART peripheral that we used in earlier devices (like the nRF51 series), and it is only kept for compatibility reasons to ensure that older code written for the UART module will still work. 

    For any new project you should use the UARTE module instead, which is an improved version of the peripheral that most importantly adds support for the EasyDMA feature. 

    The UART and UARTE is mutually exclusive, yes, and if you use the UART0 peripheral then the UARTE0 peripheral will not be available. 

    If you are using the nRF52833 you have two UARTE modules available, and I recommend using these two instead of using the UART module. 

    Best regards
    Torbjørn

Children
Related