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:
- I have created a new folder, and added the existing driver file: nrfx_uart.c
- 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.
- 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