This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with NRFX_CHECK(NRFX_UART_ENABLED) when trying to include the UART driver module to my project

Hi Nordic DevZone,

I am trying to include the UART driver module (.c .h file pairs) into my new project in SEGGER Embedded Studio.

I have done the following:

  1. I have created a new folder, and added the existing driver file: nrfx_uart.c

 

  1. Added the nrfx_uart.h file under the User Include Directories - (Common: Project Options -> Preprocessor -> User Include Directories -> Path to nrfx_uart.h file)
    I am certain that the Project Variable $(SDK) works in defining the path to the file.

  1. Used the CMSIS Configurator java tool to enable the NRFX_UART_ENABLED definition in the sdk_config.h file. I did also double check in the editor to see that NRFX_UART_ENABLED is set to 1 in the sdk_config.h file. The same is done for NRFX_UART0_ENABLED.

 

The project can build and run, but all of the code in nrfx_uart.c is grayed out because the line #if NRFX_CHECK(NRFX_UART_ENABLED) is not working. When I try to use functions from the nrfx_uart.c file, they cannot be found and the project will not build.

 

I hope you can help me understand what else I need to do to get this driver module working and gain access to the grayed out code.

 

Br. Casper

Related