interoberlin / nRF51-adc-test

A simple demonstration of ADC and NUS (Nordic UART Service) using the nRF-DK board.
http://electronut.in/nrf51-adc-test/
0 stars 0 forks source link

pstorage.h:28:31: fatal error: pstorage_platform.h: No such file or directory #5

Closed matthiasbock closed 8 years ago

matthiasbock commented 8 years ago
$ ./build.sh 
rm -rf _build *.jlink
echo  Makefile
Makefile
mkdir _build
Compiling file: app_button.c
Compiling file: app_error.c
Compiling file: app_fifo.c
Compiling file: app_timer.c
Compiling file: app_trace.c
Compiling file: nrf_assert.c
Compiling file: retarget.c
Compiling file: app_uart_fifo.c
Compiling file: nrf_delay.c
Compiling file: nrf_adc.c
Compiling file: nrf_drv_common.c
Compiling file: nrf_drv_gpiote.c
Compiling file: pstorage.c
In file included from ../../../nordic//components/drivers_nrf/pstorage/pstorage.c:13:0:
../../../nordic//components/drivers_nrf/pstorage/pstorage.h:28:31: fatal error: pstorage_platform.h: No such file or directory
 #include "pstorage_platform.h"
                               ^
compilation terminated.
Makefile:168: recipe for target '_build/pstorage.o' failed
make: *** [_build/pstorage.o] Error 1
matthiasbock commented 8 years ago

Add path to Makefile:

INC_PATHS += -I$(SDK_ROOT)/components/drivers_nrf/pstorage/config/