Thank you Mr Jan for your response.
I am using nRF52840 PCA 10056 DK. Moreover, i am using now the latest CODE as mentioned by you in the previous email. Still, the following commands are giving errors. Please advise.
[17/124] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj
ccache /home/muh/zephyr-sdk-0.10.3/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=zephyr-v2.0.0-1364-gbb3cd11bf192 -DKERNEL -DNRF52840_XXAA -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/muh/zephyrproject/zephyr/kernel/include
-I/home/muh/zephyrproject/zephyr/arch/arm/include -I/home/muh/zephyrproject/zephyr/include -I/home/muh/zephyrproject/zephyr/include/drivers -Izephyr/include/generated -I/home/muh/zephyrproject/zephyr/soc/arm/nordic_nrf/nrf52 -I/home/muh/zephyrproject/zephyr/ext/hal/cmsis/Core/Include
-I/home/muh/zephyrproject/modules/hal/nordic/nrfx -I/home/muh/zephyrproject/modules/hal/nordic/nrfx/drivers/include -I/home/muh/zephyrproject/modules/hal/nordic/nrfx/mdk -I/home/muh/zephyrproject/modules/hal/nordic/. -isystem /home/muh/zephyrproject/zephyr/lib/libc/minimal/include
-isystem /home/muh/zephyr-sdk-0.10.3/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/include -isystem /home/muh/zephyr-sdk-0.10.3/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/include-fixed -Os -imacros/home/muh/zephyrproject/zephyr/samples/drivers/display/build/zephyr/include/generated/autoconf.h
-ffreestanding -fno-common -g -mthumb -mcpu=cortex-m4 -imacros/home/muh/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable
-Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/muh/zephyrproject/zephyr/samples/drivers/display=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/muh/zephyrproject/zephyr=ZEPHYR_BASE
-ffunction-sections -fdata-sections -mabi=aapcs -march=armv7e-m -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles/app.dir/src/main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c
In file included from /home/muh/zephyrproject/zephyr/include/logging/log.h:11,
from ../src/main.c:10:
../src/main.c: In function 'main':
../src/main.c:183:35: error: 'DISPLAY_DEV_NAME' undeclared (first use in this function); did you mean 'DT_FLASH_DEV_NAME'?
LOG_INF("Display sample for %s", DISPLAY_DEV_NAME);
^~~~~~~~~~~~~~~~
/home/muh/zephyrproject/zephyr/include/logging/log_core.h:230:6: note: in definition of macro 'Z_LOG_TO_PRINTK'
##__VA_ARGS__); \
^~~~~~~~~~~
/home/muh/zephyrproject/zephyr/include/logging/log_core.h:287:2: note: in expansion of macro '__LOG'
__LOG(_level, \
^~~~~
/home/muh/zephyrproject/zephyr/include/logging/log.h:61:24: note: in expansion of macro 'Z_LOG'
#define LOG_INF(...) Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
^~~~~
../src/main.c:183:2: note: in expansion of macro 'LOG_INF'
LOG_INF("Display sample for %s", DISPLAY_DEV_NAME);
^~~~~~~
../src/main.c:183:35: note: each undeclared identifier is reported only once for each function it appears in
LOG_INF("Display sample for %s", DISPLAY_DEV_NAME);
^~~~~~~~~~~~~~~~
/home/muh/zephyrproject/zephyr/include/logging/log_core.h:230:6: note: in definition of macro 'Z_LOG_TO_PRINTK'
##__VA_ARGS__); \
^~~~~~~~~~~
/home/muh/zephyrproject/zephyr/include/logging/log_core.h:287:2: note: in expansion of macro '__LOG'
__LOG(_level, \
^~~~~
/home/muh/zephyrproject/zephyr/include/logging/log.h:61:24: note: in expansion of macro 'Z_LOG'
#define LOG_INF(...) Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
^~~~~
../src/main.c:183:2: note: in expansion of macro 'LOG_INF'
LOG_INF("Display sample for %s", DISPLAY_DEV_NAME);
^~~~~~~
../src/main.c:234:7: error: 'PIXEL_FORMAT_BGR_565' undeclared (first use in this function); did you mean 'PIXEL_FORMAT_RGB_565'?
case PIXEL_FORMAT_BGR_565:
^~~~~~~~~~~~~~~~~~~~
PIXEL_FORMAT_RGB_565
[19/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
ninja: build stopped: subcommand failed.
ERROR: command exited with status 1: /home/muh/cmake-3.13.1-Linux-x86_64/bin/cmake --build /home/muh/zephyrproject/zephyr/samples/drivers/display/build
Muhammad.