Exemple dwm-uart (on-board-package)

Hey, iḿ trying to build the exemple dwm-uart in the SEGGER Embedded Studio, but all the mensage that i´m receiving is:

Building ‘dwm-uart’ from solution ‘dwm-uart’ in configuration ‘dwm1001_configuration’
output/compiler/dwm-uart.o does not exist.
Compiling ‘dwm-uart.c’
/usr/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi-gcc -c dwm-uart.c -I. -I…\nordicsemi\components\drivers_nrf\uart -I…\nordicsemi\components\drivers_nrf\hal -I…\nordicsemi\components\device -I…\nordicsemi\components\toolchain\cmsis\include -I…\nordicsemi\components\toolchain -I…\nordicsemi\components\libraries\util -I…\nordicsemi\components\drivers_nrf\nrf_soc_nosd -I…\nordicsemi\components\drivers_nrf\common -I./…/…/include -I./…/…/lib -I. -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Wall -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -mthumb -O0 -g -fno-exceptions -Wno-pointer-arith -DNRF52 -DNRF52832 -D__LINT__=0 -o output/compiler/dwm-uart.o
nrf_drv_uart.h: No such file or directory

output/compiler/nrf_drv_uart.o does not exist.
Compiling ‘nrf_drv_uart.c’
/usr/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi-gcc -c …/…/nordicsemi/components/drivers_nrf/uart/nrf_drv_uart.c -I. -I…\nordicsemi\components\drivers_nrf\uart -I…\nordicsemi\components\drivers_nrf\hal -I…\nordicsemi\components\device -I…\nordicsemi\components\toolchain\cmsis\include -I…\nordicsemi\components\toolchain -I…\nordicsemi\components\libraries\util -I…\nordicsemi\components\drivers_nrf\nrf_soc_nosd -I…\nordicsemi\components\drivers_nrf\common -I./…/…/include -I./…/…/lib -I. -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Wall -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -mthumb -O0 -g -fno-exceptions -Wno-pointer-arith -DNRF52 -DNRF52832 -D__LINT__=0 -o output/compiler/nrf_drv_uart.o
nrf_drv_uart.c
nrf_uart.h: No such file or directory
Build failed

This files (nrf_drv_uart.h, nrf_uart.h) are in /nordicsemi/components/drivers_nrf/uart/ but itś not recognizing… Any one knows what to do?
(Im using Ubunto)

For anyone still having the issue, here are some steps to follow :

  1. Go to “Project > Options… > Code > Preprocessor > User Include Directories”

  2. Paste the following :

./…/…/include
./…/…/lib
./…/…/nordicsemi/components/drivers_nrf/hal
./…/…/nordicsemi/components/drivers_nrf/uart
./…/…/nordicsemi/components/drivers_nrf/common
./…/…/nordicsemi/components/drivers_nrf/nrf_soc_nosd
./…/…/nordicsemi/components/device
./…/…/nordicsemi/components/toolchain/cmsis/include
./…/…/nordicsemi/components/toolchain
./…/…/nordicsemi/components/libraries/util

  1. If you are prompted with something close to the following error, follow step 4-6 :
    “[…]/dwm/examples/dwm-uart/dwm-uart.c:140:(.text.app_thread_entry+0x124): undefined reference to `nrf_drv_uart_rx’”

  2. Go to “Project > Options… > Code > External Build > Link Command”

  3. Change the command to avoid having “.o", it seems like the wildcard is misread by the compiler, therefore changing "$(SolutionDir)/output/compiler/.o” into “$(SolutionDir)/output/compiler/$(SolutionName).o”

  4. Also add the different “.o” files that are generated by your project, in this case “$(SolutionDir)/output/compiler/nrf_drv_uart.o”

The Link Command should therefore look like the following :

“$(ToolChainDir)/arm-none-eabi-gcc” -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wl,–gc-sections -Wl,-static -Wl,-n -g -nostdlib -o “$(SolutionDir)/output/linker/$(SolutionName)_fw2.elf” “$(SolutionDir)/output/compiler/$(SolutionName).o” “$(SolutionDir)/…/…/lib/dwm.o” “$(SolutionDir)/output/compiler/nrf_drv_uart.o” “$(SolutionDir)/…/…/lib/libdwm.a” -nostartfiles -L “$(SolutionDir)/…/…/lib” -Wl,-Map,“$(SolutionDir)/output/linker/$(SolutionName)_fw2.map” -T “$(SolutionDir)/…/…/lib/target_s132_fw2.ld” -lm -lgcc -lc -lnosys

Hope it helps !