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

ble_app_uart Unable To Build/Run Due to nrf drv uart config errors

I was trying to build the ble_app_uart_pca10040_s132 from the nRF dk 17.0.2 examples and the unmodified file failed to build.  I got the errors "unknown type name 'nrf_drv_uart_config_t' then 'NRF_DRV_UART_DEFAULT CONFIG' undeclared and some subsequent errors based on those.  I assumed there was a missing header file so I compared to the flashwrite example which was working properly.  The differences I noticed between the files were:

1.) The ble_app_uart file was missing the nrf_cli.h and nrf_cli_uart.h headers.  I added these and updated the user include directory and all errors except for " 'm_cli_uart' undeclared (first use in this function) " went away.

2.) I tried going into the sdk_config.h and compared it to the flashwrite example sdk_config file and found that the ble_app_uart file's sdk config.h file was missing this code:

// <q> NRF_CLI_UART_ENABLED  - nrf_cli_uart - UART command line interface transport
 

#ifndef NRF_CLI_UART_ENABLED
#define NRF_CLI_UART_ENABLED 1
#endif

But this didn't help the issue.  I never edited the base example from the SDK so I thought there may be an installation issue and tried reinstalling the SDK but this didn't help either.  I'm unsure what to try next and any help would be appreciated, thanks!

Related