Date   
Re: Build Failed for Hello_World

Carles Cufi
 

Hi there,

 

  1. export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
    export ZEPHYR_SDK_INSTALL_DIR=/home/swapna/Documents/Workspace/Zephyr_ESP

Is the SDK installed in /home/swapna/Documents/Workspace/Zephyr_ESP?

  1. export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile
    export CROSS_COMPILE=/usr/bin/arm-none-eabi-

 

You cannot build an Xtensa target with an Arm compiler.

 

Carles

 

From: devel@... <devel@...> On Behalf Of Swapna Bulbule via Lists.Zephyrproject.Org
Sent: 12 March 2020 14:36
Cc: devel@...
Subject: [Zephyr-devel] Build Failed for Hello_World

 

I have followed steps as per guid https://docs.zephyrproject.org/latest/getting_started/index.html#
Until step 6, building the application,receiving error.
OS: Ubuntu 18.04

  1. export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
    export ZEPHYR_SDK_INSTALL_DIR=/home/swapna/Documents/Workspace/Zephyr_ESP

west build -p auto -b esp32 samples/hello_world
-- west build: build configuration:
source directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world
build directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build (created)
BOARD: esp32 (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.9", minimum required is "3.6")
-- Selected BOARD esp32
-- Found west: /home/swapna/.local/bin/west (found suitable version "0.7.2", minimum required is "0.6.0")
-- Loading /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32.dts as base
Devicetree header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h'
Parsing /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32_defconfig'
Merged configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world/prj.conf'
Configuration saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
CMake Error at /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/extensions.cmake:1479 (message):
No such file or directory: LIBGCC_FILE_NAME: ''
Call Stack (most recent call first):
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/compiler/gcc/target.cmake:69 (assert_exists)
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/target_toolchain.cmake:49 (include)
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/app/boilerplate.cmake:476 (include)
CMakeLists.txt:5 (include)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/swapna/bin/cmake/cmake-3.16.4-Linux-x86_64/bin/cmake -B/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build -S/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world -GNinja -DBOARD=esp32

I have tried couple of things changing variant and tool chain.

  1. export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile
    export CROSS_COMPILE=/usr/bin/arm-none-eabi-

I have followed steps as per guid https://docs.zephyrproject.org/latest/getting_started/index.html#
Until step 6, building the application,receiving error.

swapna@18:~/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr$ west build -p auto -b esp32 samples/hello_world
-- west build: build configuration:
source directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world
build directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build (created)
BOARD: esp32 (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.9", minimum required is "3.6")
-- Selected BOARD esp32
-- Found west: /home/swapna/.local/bin/west (found suitable version "0.7.2", minimum required is "0.6.0")
-- Loading /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32.dts as base
Devicetree header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h'
Parsing /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32_defconfig'
Merged configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world/prj.conf'
Configuration saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Cache files will be written to: /home/swapna/.cache/zephyr
CMake Warning at /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/common/esp32.board.cmake:7 (message):
Setting ESP_IDF_PATH in the environment is deprecated. Use cmake
-DESP_IDF_PATH=... instead.
Call Stack (most recent call first):
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/board.cmake:3 (include)
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/app/boilerplate.cmake:506 (include)
CMakeLists.txt:5 (include)

-- Configuring done
-- Generating done
-- Build files have been written to: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build
-- west build: building application
[1/122] Preparing syscall dependency handling

[7/122] Building C object zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj
ccache /usr/bin/arm-none-eabi-gcc -DBUILD_VERSION=v2.2.0-rc3-20-gcfd0f3e18d01 -DKERNEL -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -I../kernel/include -I../arch/xtensa/include -I../include -Izephyr/include/generated -I../soc/xtensa/esp32 -I../soc/xtensa/esp32/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/esp-idf/zephyr/../components/esp32/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/esp-idf/zephyr/../components/soc/esp32/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/xtensa/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/xtensa/zephyr/soc/esp32 -isystem ../lib/libc/minimal/include -isystem /usr/lib/gcc/arm-none-eabi/6.3.1/include -isystem /usr/lib/gcc/arm-none-eabi/6.3.1/include-fixed -Os -imacros/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -imacros/home/swapna/Documents/Workspace/Zephyr_ESP/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 -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj -MF zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj -c /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/arch/xtensa/core/offsets/offsets.c
/tmp/ccTtYhaH.s: Assembler messages:
/tmp/ccTtYhaH.s:35: Error: bad expression
/tmp/ccTtYhaH.s:35: Error: junk at end of line, first unrecognized character is 8' /tmp/ccTtYhaH.s:41: Error: bad expression /tmp/ccTtYhaH.s:41: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:47: Error: bad expression
/tmp/ccTtYhaH.s:47: Error: junk at end of line, first unrecognized character is 4' /tmp/ccTtYhaH.s:53: Error: bad expression /tmp/ccTtYhaH.s:53: Error: junk at end of line, first unrecognized character is 8'
/tmp/ccTtYhaH.s:59: Error: bad expression
/tmp/ccTtYhaH.s:59: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:65: Error: bad expression /tmp/ccTtYhaH.s:65: Error: junk at end of line, first unrecognized character is 4'
/tmp/ccTtYhaH.s:71: Error: bad expression
/tmp/ccTtYhaH.s:71: Error: junk at end of line, first unrecognized character is 5' /tmp/ccTtYhaH.s:77: Error: bad expression /tmp/ccTtYhaH.s:77: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:83: Error: bad expression
/tmp/ccTtYhaH.s:83: Error: junk at end of line, first unrecognized character is 6' /tmp/ccTtYhaH.s:89: Error: bad expression /tmp/ccTtYhaH.s:89: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:95: Error: bad expression
/tmp/ccTtYhaH.s:95: Error: junk at end of line, first unrecognized character is 1' /tmp/ccTtYhaH.s:101: Error: bad expression /tmp/ccTtYhaH.s:101: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:107: Error: bad expression
/tmp/ccTtYhaH.s:107: Error: junk at end of line, first unrecognized character is 1' /tmp/ccTtYhaH.s:113: Error: bad expression /tmp/ccTtYhaH.s:113: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:119: Error: bad expression
/tmp/ccTtYhaH.s:119: Error: junk at end of line, first unrecognized character is 2' /tmp/ccTtYhaH.s:125: Error: bad expression /tmp/ccTtYhaH.s:125: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:131: Error: bad expression
/tmp/ccTtYhaH.s:131: Error: junk at end of line, first unrecognized character is 4' /tmp/ccTtYhaH.s:137: Error: bad expression /tmp/ccTtYhaH.s:137: Error: junk at end of line, first unrecognized character is 7'
/tmp/ccTtYhaH.s:143: Error: bad expression
/tmp/ccTtYhaH.s:143: Error: junk at end of line, first unrecognized character is 6' /tmp/ccTtYhaH.s:149: Error: bad expression /tmp/ccTtYhaH.s:149: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:155: Error: bad expression
/tmp/ccTtYhaH.s:155: Error: junk at end of line, first unrecognized character is 1' /tmp/ccTtYhaH.s:162: Error: bad expression /tmp/ccTtYhaH.s:162: Error: junk at end of line, first unrecognized character is 4'
/tmp/ccTtYhaH.s:168: Error: bad expression
/tmp/ccTtYhaH.s:168: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:174: Error: bad expression /tmp/ccTtYhaH.s:174: Error: junk at end of line, first unrecognized character is 8'
/tmp/ccTtYhaH.s:180: Error: bad expression
/tmp/ccTtYhaH.s:180: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:186: Error: bad expression /tmp/ccTtYhaH.s:186: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:192: Error: bad expression
/tmp/ccTtYhaH.s:192: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:198: Error: bad expression /tmp/ccTtYhaH.s:198: Error: junk at end of line, first unrecognized character is 4'
/tmp/ccTtYhaH.s:204: Error: bad expression
/tmp/ccTtYhaH.s:204: Error: junk at end of line, first unrecognized character is 8' /tmp/ccTtYhaH.s:210: Error: bad expression /tmp/ccTtYhaH.s:210: Error: junk at end of line, first unrecognized character is 9'
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/swapna/bin/cmake/cmake-3.16.4-Linux-x86_64/bin/cmake --build /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build

I am not sure which variant and toolchain

Build Failed for Hello_World

Swapna Bulbule
 

I have followed steps as per guid https://docs.zephyrproject.org/latest/getting_started/index.html#
Until step 6, building the application,receiving error.
OS: Ubuntu 18.04

  1. export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
    export ZEPHYR_SDK_INSTALL_DIR=/home/swapna/Documents/Workspace/Zephyr_ESP

west build -p auto -b esp32 samples/hello_world
-- west build: build configuration:
source directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world
build directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build (created)
BOARD: esp32 (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.9", minimum required is "3.6")
-- Selected BOARD esp32
-- Found west: /home/swapna/.local/bin/west (found suitable version "0.7.2", minimum required is "0.6.0")
-- Loading /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32.dts as base
Devicetree header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h'
Parsing /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32_defconfig'
Merged configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world/prj.conf'
Configuration saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
CMake Error at /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/extensions.cmake:1479 (message):
No such file or directory: LIBGCC_FILE_NAME: ''
Call Stack (most recent call first):
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/compiler/gcc/target.cmake:69 (assert_exists)
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/target_toolchain.cmake:49 (include)
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/app/boilerplate.cmake:476 (include)
CMakeLists.txt:5 (include)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/swapna/bin/cmake/cmake-3.16.4-Linux-x86_64/bin/cmake -B/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build -S/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world -GNinja -DBOARD=esp32

I have tried couple of things changing variant and tool chain.

  1. export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile
    export CROSS_COMPILE=/usr/bin/arm-none-eabi-

I have followed steps as per guid https://docs.zephyrproject.org/latest/getting_started/index.html#
Until step 6, building the application,receiving error.

swapna@18:~/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr$ west build -p auto -b esp32 samples/hello_world
-- west build: build configuration:
source directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world
build directory: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build (created)
BOARD: esp32 (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.9", minimum required is "3.6")
-- Selected BOARD esp32
-- Found west: /home/swapna/.local/bin/west (found suitable version "0.7.2", minimum required is "0.6.0")
-- Loading /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32.dts as base
Devicetree header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h'
Parsing /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/esp32_defconfig'
Merged configuration '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/samples/hello_world/prj.conf'
Configuration saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Cache files will be written to: /home/swapna/.cache/zephyr
CMake Warning at /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/common/esp32.board.cmake:7 (message):
Setting ESP_IDF_PATH in the environment is deprecated. Use cmake
-DESP_IDF_PATH=... instead.
Call Stack (most recent call first):
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/boards/xtensa/esp32/board.cmake:3 (include)
/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/cmake/app/boilerplate.cmake:506 (include)
CMakeLists.txt:5 (include)

-- Configuring done
-- Generating done
-- Build files have been written to: /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build
-- west build: building application
[1/122] Preparing syscall dependency handling

[7/122] Building C object zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj
ccache /usr/bin/arm-none-eabi-gcc -DBUILD_VERSION=v2.2.0-rc3-20-gcfd0f3e18d01 -DKERNEL -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -I../kernel/include -I../arch/xtensa/include -I../include -Izephyr/include/generated -I../soc/xtensa/esp32 -I../soc/xtensa/esp32/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/esp-idf/zephyr/../components/esp32/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/esp-idf/zephyr/../components/soc/esp32/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/xtensa/include -I/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/modules/hal/xtensa/zephyr/soc/esp32 -isystem ../lib/libc/minimal/include -isystem /usr/lib/gcc/arm-none-eabi/6.3.1/include -isystem /usr/lib/gcc/arm-none-eabi/6.3.1/include-fixed -Os -imacros/home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -imacros/home/swapna/Documents/Workspace/Zephyr_ESP/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 -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj -MF zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj -c /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/arch/xtensa/core/offsets/offsets.c
/tmp/ccTtYhaH.s: Assembler messages:
/tmp/ccTtYhaH.s:35: Error: bad expression
/tmp/ccTtYhaH.s:35: Error: junk at end of line, first unrecognized character is 8' /tmp/ccTtYhaH.s:41: Error: bad expression /tmp/ccTtYhaH.s:41: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:47: Error: bad expression
/tmp/ccTtYhaH.s:47: Error: junk at end of line, first unrecognized character is 4' /tmp/ccTtYhaH.s:53: Error: bad expression /tmp/ccTtYhaH.s:53: Error: junk at end of line, first unrecognized character is 8'
/tmp/ccTtYhaH.s:59: Error: bad expression
/tmp/ccTtYhaH.s:59: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:65: Error: bad expression /tmp/ccTtYhaH.s:65: Error: junk at end of line, first unrecognized character is 4'
/tmp/ccTtYhaH.s:71: Error: bad expression
/tmp/ccTtYhaH.s:71: Error: junk at end of line, first unrecognized character is 5' /tmp/ccTtYhaH.s:77: Error: bad expression /tmp/ccTtYhaH.s:77: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:83: Error: bad expression
/tmp/ccTtYhaH.s:83: Error: junk at end of line, first unrecognized character is 6' /tmp/ccTtYhaH.s:89: Error: bad expression /tmp/ccTtYhaH.s:89: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:95: Error: bad expression
/tmp/ccTtYhaH.s:95: Error: junk at end of line, first unrecognized character is 1' /tmp/ccTtYhaH.s:101: Error: bad expression /tmp/ccTtYhaH.s:101: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:107: Error: bad expression
/tmp/ccTtYhaH.s:107: Error: junk at end of line, first unrecognized character is 1' /tmp/ccTtYhaH.s:113: Error: bad expression /tmp/ccTtYhaH.s:113: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:119: Error: bad expression
/tmp/ccTtYhaH.s:119: Error: junk at end of line, first unrecognized character is 2' /tmp/ccTtYhaH.s:125: Error: bad expression /tmp/ccTtYhaH.s:125: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:131: Error: bad expression
/tmp/ccTtYhaH.s:131: Error: junk at end of line, first unrecognized character is 4' /tmp/ccTtYhaH.s:137: Error: bad expression /tmp/ccTtYhaH.s:137: Error: junk at end of line, first unrecognized character is 7'
/tmp/ccTtYhaH.s:143: Error: bad expression
/tmp/ccTtYhaH.s:143: Error: junk at end of line, first unrecognized character is 6' /tmp/ccTtYhaH.s:149: Error: bad expression /tmp/ccTtYhaH.s:149: Error: junk at end of line, first unrecognized character is 1'
/tmp/ccTtYhaH.s:155: Error: bad expression
/tmp/ccTtYhaH.s:155: Error: junk at end of line, first unrecognized character is 1' /tmp/ccTtYhaH.s:162: Error: bad expression /tmp/ccTtYhaH.s:162: Error: junk at end of line, first unrecognized character is 4'
/tmp/ccTtYhaH.s:168: Error: bad expression
/tmp/ccTtYhaH.s:168: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:174: Error: bad expression /tmp/ccTtYhaH.s:174: Error: junk at end of line, first unrecognized character is 8'
/tmp/ccTtYhaH.s:180: Error: bad expression
/tmp/ccTtYhaH.s:180: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:186: Error: bad expression /tmp/ccTtYhaH.s:186: Error: junk at end of line, first unrecognized character is 0'
/tmp/ccTtYhaH.s:192: Error: bad expression
/tmp/ccTtYhaH.s:192: Error: junk at end of line, first unrecognized character is 0' /tmp/ccTtYhaH.s:198: Error: bad expression /tmp/ccTtYhaH.s:198: Error: junk at end of line, first unrecognized character is 4'
/tmp/ccTtYhaH.s:204: Error: bad expression
/tmp/ccTtYhaH.s:204: Error: junk at end of line, first unrecognized character is 8' /tmp/ccTtYhaH.s:210: Error: bad expression /tmp/ccTtYhaH.s:210: Error: junk at end of line, first unrecognized character is 9'
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/swapna/bin/cmake/cmake-3.16.4-Linux-x86_64/bin/cmake --build /home/swapna/Documents/Workspace/Zephyr_ESP/zephyrproject/zephyr/build

I am not sure which variant and toolchain

Updated Event: Zephyr Toolchain Working Group #cal-invite

devel@lists.zephyrproject.org Calendar <devel@...>
 

Zephyr Toolchain Working Group

When:
Thursday, 5 March 2020
7:00am to 8:00am
(UTC-08:00) America/Los Angeles
Repeats: Every 2 weeks on Thursday, through Thursday, 23 July 2020

Where:
https://zoom.us/j/967549258

Organizer: Maureen Helm

Description:

Zephyr Working Group is inviting you to a scheduled Zoom meeting.

 

Topic:  Zephyr Toolchain Working Group

Time: Mar 19, 2020 07:00 AM Pacific Time (US and Canada)

        Every 2 weeks on Thu, until Jul 23, 2020, 10 occurrence(s)

        Mar 19, 2020 07:00 AM

        Apr 2, 2020 07:00 AM

        Apr 16, 2020 07:00 AM

        Apr 30, 2020 07:00 AM

        May 14, 2020 07:00 AM

        May 28, 2020 07:00 AM

        Jun 11, 2020 07:00 AM

        Jun 25, 2020 07:00 AM

        Jul 9, 2020 07:00 AM

        Jul 23, 2020 07:00 AM

Please download and import the following iCalendar (.ics) files to your calendar system.

Weekly: https://zoom.us/meeting/tJIqcu2hrD4id0z59MlGQgtjfduqRH_iTA/ics?icsToken=98tyKuCuqT4uE9aQuF39e7cqA97lbN-1i3UesPYEsRPCMidHaAXyI_NwGo12JPmB

 

Join Zoom Meeting

https://zoom.us/j/967549258

 

Meeting ID: 967 549 258

 

One tap mobile

+16699006833,,967549258# US (San Jose)

+16465588656,,967549258# US (New York)

 

Dial by your location

        +1 669 900 6833 US (San Jose)

        +1 646 558 8656 US (New York)

        855 880 1246 US Toll-free

        877 369 0926 US Toll-free

        +1 647 558 0588 Canada

        855 703 8985 Canada Toll-free

Meeting ID: 967 549 258

Find your local number: https://zoom.us/u/abfRKTHWtN

 


Live meeting minutes: https://docs.google.com/document/d/1IQKBK-GcJNZG0O9QArqYfvb6Huk5xHscN-XIGEZr-z8/edit#heading=h.x36xe8bnwr9r

Re: ILI9340 Display Example

Muhammad Muh <muhammad.muh83@...>
 

Hi Mr Jan,

Now the LCD is showing the output by following your kind guidelines.

Thank you.

Best Regards
Muhammad


From: Jan Van Winkel <jan.van_winkel@...>
Sent: Tuesday, March 10, 2020 3:33 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: Jan Van Winkel <jan.van_winkel@...>; devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

Looks like you made a typo in the build command it should be something like:
west build -b nrf52840_pca10056 samples/drivers/display -- -DSHIELD=adafruit_2_8_tft_touch_v2


Regards,
Jan

On Mon, Mar 9, 2020 at 7:33 AM Muhammad Muh <muhammad.muh83@...> wrote:
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.

Commands:
west build -b nrf52840_pca10056 . and
west build -b nrf52840_pca10056 -- -shield=adafruit_2_8_tft_touch_v2

Errors:
[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
 
Regards
Muhammad.


From: Jan Van Winkel <jan.van_winkel@...>
Sent: Saturday, March 7, 2020 5:54 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: Jan Van Winkel <jan.van_winkel@...>; devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

Could you switch to latest master and test with samples/drivers/display, for me that sample is working with the same adafruit display?
Keep in mind that in case you have a preview development kit of the nrf52840_pca10056 you will need an extra patch:

Regards,
Jan

On Fri, Mar 6, 2020 at 2:15 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear Mr Jan,

Thank you very much for your help. The problem is resolved until the program Building. Now when I west flash, it runs but I am not getting any output on the screen.  I am using the following Ada Fruit version.

Regards
Muhammad



From: Jan Van Winkel <jan.van_winkel@...>
Sent: Thursday, March 5, 2020 9:01 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

For the nrf52840_pca10056 you need to specify a display shield that supports ili9340, eg. west build -b nrf52840_pca10056 -- -DSHIELD=adafruit_2_8_tft_touch_v2

Note that ili9340 sample has been removed in the latest master as there is now a common sample that support different kind of display shields.

Regards,
Jan

On Thu, Mar 5, 2020 at 1:03 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear All,

I hope you all are doing well.

I am trying an example in
zephyrproject/zephyr/sample/display/ili9340

The example is building fine with nucleo board
west build -b nucleo_l476rg .

BUT

Please advise on the following error when building with nrf52840 west build -b nrf52840_pca10056 .

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-ze
phyr-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/display/ili9340/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/display/ili9340=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
../src/main.c: In function 'main':
../src/main.c:49:27: error: 'DT_INST_0_ILITEK_ILI9340_LABEL' undeclared (first use in this function); did you mean 'DT_INST_0_JEDEC_SPI_NOR_LABEL'?
  dev = device_get_binding(DT_INST_0_ILITEK_ILI9340_LABEL);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           DT_INST_0_JEDEC_SPI_NOR_LABEL
../src/main.c:49:27: note: each undeclared identifier is reported only once for each function it appears in
[4/106] Building C object zephyr/CMake...r/soc/arm/nordic_nrf/nrf52/power.c.obj
ninja: build stopped: subcommand failed.

Regards


Re: USB audio #nrf52840

Carles Cufi
 

Hi there,

 

A Pull Request is now up and ready for review:

 

https://github.com/zephyrproject-rtos/zephyr/pull/21526

 

Regards,

 

Carles

 

From: devel@... <devel@...> On Behalf Of marcus via Lists.Zephyrproject.Org
Sent: 29 January 2019 10:39
To: devel@...
Cc: devel@...
Subject: [Zephyr-devel] USB audio #nrf52840

 

Hi,

I am wondering about any plans regarding USB audio and isochronous endpoints.
See github issue: https://github.com/zephyrproject-rtos/zephyr/issues/12775

Upcoming Event: Zephyr Project: APIs - Tue, 03/10/2020 9:00am-10:00am, Please RSVP #cal-reminder

devel@lists.zephyrproject.org Calendar <devel@...>
 

Reminder: Zephyr Project: APIs

When: Tuesday, 10 March 2020, 9:00am to 10:00am, (GMT-07:00) America/Los Angeles

Where:https://zoom.us/j/177647878

An RSVP is requested. Click here to RSVP

Organizer: devel@...

Description: Join from PC, Mac, Linux, iOS or Android: https://zoom.us/j/177647878

Or iPhone one-tap :
    US: +16465588656,,177647878# or +16699006833,,177647878# 
Or Telephone:
    Dial(for higher quality, dial a number based on your current location): 
        US: +1 646 558 8656 or +1 669 900 6833 or +1 855 880 1246 (Toll Free) or +1 877 369 0926 (Toll Free)
    Meeting ID: 177 647 878
    International numbers available: https://zoom.us/zoomconference?m=ioAR9GK1OE5LkN1ojt-heTCl7yPcJrhY


 Live meeting minutes: https://docs.google.com/document/d/1lv-8B5QE2m4FjBcvfqAXFIgQfW5oz6306zJ7GIZIWCk/edit?usp=sharing

Re: API meeting next week: Focusing on watchdogs

Carles Cufi
 

Hi all,

Due to the switch to summer time in the US, the meeting today is at 17h CET/8AM PDT, so in 15min.

Regards,

Carles

-----Original Message-----
From: devel@... <devel@...> On
Behalf Of Cufi, Carles via Lists.Zephyrproject.Org
Sent: 10 March 2020 15:36
To: Cufi, Carles <Carles.Cufi@...>;
users@...; devel@...
Cc: devel@...
Subject: Re: [Zephyr-devel] API meeting next week: Focusing on watchdogs

Hi all,

Just a friendly reminder that today's API meeting will be dedicated to
watchdog handling in Zephyr.

Thanks,

Carles

-----Original Message-----
From: devel@... <devel@...> On
Behalf Of Cufi, Carles via Lists.Zephyrproject.Org
Sent: 05 March 2020 09:51
To: users@...; devel@...
Cc: devel@...
Subject: [Zephyr-devel] API meeting next week: Focusing on watchdogs

Hi all,

Next week (Tuesday 10th of March) we will focus our attention to
watchdog handling in Zephyr.

We recently closed #22858 with the merge of #22859, but this was a
temporary solution to what is ultimately a wider problem that requires
a discussion regarding the way Zephyr manages watchdogs in general.

A good description of the current issues with the
CONFIG_WDT_DISABLE_AT_BOOT option can be found in #22858.

During the call we will discuss the approach we want to take and
document it in #23282, which I just created today.

Original issue:
https://github.com/zephyrproject-rtos/zephyr/issues/22858
Pull request:
https://github.com/zephyrproject-rtos/zephyr/pull/22859
New tracking issue:
https://github.com/zephyrproject-rtos/zephyr/issues/23282

Meeting:
https://github.com/zephyrproject-rtos/zephyr/wiki/Zephyr-Committee-and
- Working-Group-Meetings#zephyr-api-discussion

Thanks,

Carles


Re: API meeting next week: Focusing on watchdogs

Carles Cufi
 

Hi all,

Just a friendly reminder that today's API meeting will be dedicated to watchdog handling in Zephyr.

Thanks,

Carles

-----Original Message-----
From: devel@... <devel@...> On
Behalf Of Cufi, Carles via Lists.Zephyrproject.Org
Sent: 05 March 2020 09:51
To: users@...; devel@...
Cc: devel@...
Subject: [Zephyr-devel] API meeting next week: Focusing on watchdogs

Hi all,

Next week (Tuesday 10th of March) we will focus our attention to
watchdog handling in Zephyr.

We recently closed #22858 with the merge of #22859, but this was a
temporary solution to what is ultimately a wider problem that requires a
discussion regarding the way Zephyr manages watchdogs in general.

A good description of the current issues with the
CONFIG_WDT_DISABLE_AT_BOOT option can be found in #22858.

During the call we will discuss the approach we want to take and
document it in #23282, which I just created today.

Original issue:
https://github.com/zephyrproject-rtos/zephyr/issues/22858
Pull request:
https://github.com/zephyrproject-rtos/zephyr/pull/22859
New tracking issue:
https://github.com/zephyrproject-rtos/zephyr/issues/23282

Meeting:
https://github.com/zephyrproject-rtos/zephyr/wiki/Zephyr-Committee-and-
Working-Group-Meetings#zephyr-api-discussion

Thanks,

Carles

Zephyr 2.2 released

Johan Hedberg
 

Hi,

We are excited to announce the release of Zephyr RTOS version 2.2.0!

Major enhancements with this release include (but are not limited to):

* We added initial support for 64-bit ARMv8-A architecture (Experimental).
* CANopen protocol support through 3rd party CANopenNode stack
* LoRa support was added through integration of the Semtech LoRaWAN endpoint
stack and addition of a new SX1276 LoRa modem driver.

The detailed release notes can be found here:

https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.2.0

I would like to thank the community members who contributed to this release. There were a total of 2642 commits from 205 contributors in the development of 2.2. It has taken a lot of hard work from everyone in the Zephyr community!

Starting now, the tree is open for new features targeting the 2.3 release, which is tentatively scheduled for May 29th 2020.

Thanks again,

Johan

Re: ILI9340 Display Example

Jan Van Winkel
 

Hi Muhammad,

Looks like you made a typo in the build command it should be something like:
west build -b nrf52840_pca10056 samples/drivers/display -- -DSHIELD=adafruit_2_8_tft_touch_v2


Regards,
Jan

On Mon, Mar 9, 2020 at 7:33 AM Muhammad Muh <muhammad.muh83@...> wrote:
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.

Commands:
west build -b nrf52840_pca10056 . and
west build -b nrf52840_pca10056 -- -shield=adafruit_2_8_tft_touch_v2

Errors:
[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
 
Regards
Muhammad.


From: Jan Van Winkel <jan.van_winkel@...>
Sent: Saturday, March 7, 2020 5:54 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: Jan Van Winkel <jan.van_winkel@...>; devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

Could you switch to latest master and test with samples/drivers/display, for me that sample is working with the same adafruit display?
Keep in mind that in case you have a preview development kit of the nrf52840_pca10056 you will need an extra patch:

Regards,
Jan

On Fri, Mar 6, 2020 at 2:15 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear Mr Jan,

Thank you very much for your help. The problem is resolved until the program Building. Now when I west flash, it runs but I am not getting any output on the screen.  I am using the following Ada Fruit version.

Regards
Muhammad



From: Jan Van Winkel <jan.van_winkel@...>
Sent: Thursday, March 5, 2020 9:01 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

For the nrf52840_pca10056 you need to specify a display shield that supports ili9340, eg. west build -b nrf52840_pca10056 -- -DSHIELD=adafruit_2_8_tft_touch_v2

Note that ili9340 sample has been removed in the latest master as there is now a common sample that support different kind of display shields.

Regards,
Jan

On Thu, Mar 5, 2020 at 1:03 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear All,

I hope you all are doing well.

I am trying an example in
zephyrproject/zephyr/sample/display/ili9340

The example is building fine with nucleo board
west build -b nucleo_l476rg .

BUT

Please advise on the following error when building with nrf52840 west build -b nrf52840_pca10056 .

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-ze
phyr-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/display/ili9340/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/display/ili9340=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
../src/main.c: In function 'main':
../src/main.c:49:27: error: 'DT_INST_0_ILITEK_ILI9340_LABEL' undeclared (first use in this function); did you mean 'DT_INST_0_JEDEC_SPI_NOR_LABEL'?
  dev = device_get_binding(DT_INST_0_ILITEK_ILI9340_LABEL);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           DT_INST_0_JEDEC_SPI_NOR_LABEL
../src/main.c:49:27: note: each undeclared identifier is reported only once for each function it appears in
[4/106] Building C object zephyr/CMake...r/soc/arm/nordic_nrf/nrf52/power.c.obj
ninja: build stopped: subcommand failed.

Regards


Re: ILI9340 Display Example

Muhammad Muh <muhammad.muh83@...>
 

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.

Commands:
west build -b nrf52840_pca10056 . and
west build -b nrf52840_pca10056 -- -shield=adafruit_2_8_tft_touch_v2

Errors:
[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
 
Regards
Muhammad.


From: Jan Van Winkel <jan.van_winkel@...>
Sent: Saturday, March 7, 2020 5:54 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: Jan Van Winkel <jan.van_winkel@...>; devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

Could you switch to latest master and test with samples/drivers/display, for me that sample is working with the same adafruit display?
Keep in mind that in case you have a preview development kit of the nrf52840_pca10056 you will need an extra patch:

Regards,
Jan

On Fri, Mar 6, 2020 at 2:15 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear Mr Jan,

Thank you very much for your help. The problem is resolved until the program Building. Now when I west flash, it runs but I am not getting any output on the screen.  I am using the following Ada Fruit version.

Regards
Muhammad



From: Jan Van Winkel <jan.van_winkel@...>
Sent: Thursday, March 5, 2020 9:01 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

For the nrf52840_pca10056 you need to specify a display shield that supports ili9340, eg. west build -b nrf52840_pca10056 -- -DSHIELD=adafruit_2_8_tft_touch_v2

Note that ili9340 sample has been removed in the latest master as there is now a common sample that support different kind of display shields.

Regards,
Jan

On Thu, Mar 5, 2020 at 1:03 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear All,

I hope you all are doing well.

I am trying an example in
zephyrproject/zephyr/sample/display/ili9340

The example is building fine with nucleo board
west build -b nucleo_l476rg .

BUT

Please advise on the following error when building with nrf52840 west build -b nrf52840_pca10056 .

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-ze
phyr-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/display/ili9340/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/display/ili9340=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
../src/main.c: In function 'main':
../src/main.c:49:27: error: 'DT_INST_0_ILITEK_ILI9340_LABEL' undeclared (first use in this function); did you mean 'DT_INST_0_JEDEC_SPI_NOR_LABEL'?
  dev = device_get_binding(DT_INST_0_ILITEK_ILI9340_LABEL);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           DT_INST_0_JEDEC_SPI_NOR_LABEL
../src/main.c:49:27: note: each undeclared identifier is reported only once for each function it appears in
[4/106] Building C object zephyr/CMake...r/soc/arm/nordic_nrf/nrf52/power.c.obj
ninja: build stopped: subcommand failed.

Regards


Re: Updating a board file in zephyr for all releases

Carles Cufi
 

Hi Jamie,

 

It is unlikely that we will release 2.0.x or 2.1.x releases in the short term, so my suggestion is that you send one PR to the 1.14 branch and another one to master.

 

Regards,

 

Carles

 

From: devel@... <devel@...> On Behalf Of lairdjm via Lists.Zephyrproject.Org
Sent: 09 March 2020 10:17
To: devel@...
Cc: devel@...
Subject: [Zephyr-devel] Updating a board file in zephyr for all releases

 

Hi,

I noticed an issue in a board file at the weekend whereby it doesn’t reboot the module after flashing it, it’s a quick fix and I can submit a PR but wanted to know how to deal with applying it for all versions of zephyr. Since there’s the 1.14 branch, 2.0 branch, 2.1 branch and master – do I submit one PR per branch? Or just one for e.g. 1.14 and it gets propagated through?
Thanks,
Jamie

Updating a board file in zephyr for all releases

lairdjm
 

Hi,

I noticed an issue in a board file at the weekend whereby it doesn’t reboot the module after flashing it, it’s a quick fix and I can submit a PR but wanted to know how to deal with applying it for all versions of zephyr. Since there’s the 1.14 branch, 2.0 branch, 2.1 branch and master – do I submit one PR per branch? Or just one for e.g. 1.14 and it gets propagated through?
Thanks,
Jamie

Re: ILI9340 Display Example

Jan Van Winkel
 

Hi Muhammad,

Could you switch to latest master and test with samples/drivers/display, for me that sample is working with the same adafruit display?
Keep in mind that in case you have a preview development kit of the nrf52840_pca10056 you will need an extra patch:

Regards,
Jan

On Fri, Mar 6, 2020 at 2:15 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear Mr Jan,

Thank you very much for your help. The problem is resolved until the program Building. Now when I west flash, it runs but I am not getting any output on the screen.  I am using the following Ada Fruit version.

Regards
Muhammad



From: Jan Van Winkel <jan.van_winkel@...>
Sent: Thursday, March 5, 2020 9:01 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

For the nrf52840_pca10056 you need to specify a display shield that supports ili9340, eg. west build -b nrf52840_pca10056 -- -DSHIELD=adafruit_2_8_tft_touch_v2

Note that ili9340 sample has been removed in the latest master as there is now a common sample that support different kind of display shields.

Regards,
Jan

On Thu, Mar 5, 2020 at 1:03 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear All,

I hope you all are doing well.

I am trying an example in
zephyrproject/zephyr/sample/display/ili9340

The example is building fine with nucleo board
west build -b nucleo_l476rg .

BUT

Please advise on the following error when building with nrf52840 west build -b nrf52840_pca10056 .

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-ze
phyr-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/display/ili9340/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/display/ili9340=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
../src/main.c: In function 'main':
../src/main.c:49:27: error: 'DT_INST_0_ILITEK_ILI9340_LABEL' undeclared (first use in this function); did you mean 'DT_INST_0_JEDEC_SPI_NOR_LABEL'?
  dev = device_get_binding(DT_INST_0_ILITEK_ILI9340_LABEL);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           DT_INST_0_JEDEC_SPI_NOR_LABEL
../src/main.c:49:27: note: each undeclared identifier is reported only once for each function it appears in
[4/106] Building C object zephyr/CMake...r/soc/arm/nordic_nrf/nrf52/power.c.obj
ninja: build stopped: subcommand failed.

Regards


Re: ILI9340 Display Example

Muhammad Muh <muhammad.muh83@...>
 

Dear Mr Jan,

Thank you very much for your help. The problem is resolved until the program Building. Now when I west flash, it runs but I am not getting any output on the screen.  I am using the following Ada Fruit version.

Regards
Muhammad



From: Jan Van Winkel <jan.van_winkel@...>
Sent: Thursday, March 5, 2020 9:01 PM
To: Muhammad Muh <muhammad.muh83@...>
Cc: devel@... <devel@...>
Subject: Re: [Zephyr-devel] ILI9340 Display Example
 
Hi Muhammad,

For the nrf52840_pca10056 you need to specify a display shield that supports ili9340, eg. west build -b nrf52840_pca10056 -- -DSHIELD=adafruit_2_8_tft_touch_v2

Note that ili9340 sample has been removed in the latest master as there is now a common sample that support different kind of display shields.

Regards,
Jan

On Thu, Mar 5, 2020 at 1:03 PM Muhammad Muh <muhammad.muh83@...> wrote:
Dear All,

I hope you all are doing well.

I am trying an example in
zephyrproject/zephyr/sample/display/ili9340

The example is building fine with nucleo board
west build -b nucleo_l476rg .

BUT

Please advise on the following error when building with nrf52840 west build -b nrf52840_pca10056 .

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-ze
phyr-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/display/ili9340/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/display/ili9340=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
../src/main.c: In function 'main':
../src/main.c:49:27: error: 'DT_INST_0_ILITEK_ILI9340_LABEL' undeclared (first use in this function); did you mean 'DT_INST_0_JEDEC_SPI_NOR_LABEL'?
  dev = device_get_binding(DT_INST_0_ILITEK_ILI9340_LABEL);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           DT_INST_0_JEDEC_SPI_NOR_LABEL
../src/main.c:49:27: note: each undeclared identifier is reported only once for each function it appears in
[4/106] Building C object zephyr/CMake...r/soc/arm/nordic_nrf/nrf52/power.c.obj
ninja: build stopped: subcommand failed.

Regards


Re: Initial build errors

Thomas Törnblom
 

Thanks Carles,

That was indeed the issue.

---
thomasto@thomasto-VirtualBox:~/zephyrproject/zephyr$ cat `which west` | grep '#!'
#!/usr/bin/python3
---
and python3 was symlinked to python3.6 while "python" was using python3.7.

Built just fine now.

Cheers,
Thomas

Den 2020-03-06 kl. 13:56, skrev Cufi, Carles:

Hi Thomas,

 

Could it be that your /usr/bin/python is not the same python you used to install west? i.e. do you have multiple python installations on your system?

 

$ cat `which west` | grep '#!'

 

In my case this yields:

#!/usr/bin/python3

 

which matches my:

 

Found PythonInterp: /usr/bin/python3

 

Carles

 

From: devel@... <devel@...> On Behalf Of Thomas Törnblom via Lists.Zephyrproject.Org
Sent: 06 March 2020 13:39
To: devel@...
Cc: devel@...
Subject: [Zephyr-devel] Initial build errors

 

I'm just starting up my IAR porting effort again and thought I would just build a simple out of the box project with the standard tools, but I'm immediately running into issues.

I'm on Ubuntu 18.04.4 LTS and have followed https://docs.zephyrproject.org/latest/getting_started/index.html
---
thomasto@thomasto-VirtualBox:~/zephyrproject/zephyr$ west build -p auto -b stm32f746g_disco samples/basic/blinky
-- west build: build configuration:
       source directory: /home/thomasto/zephyrproject/zephyr/samples/basic/blinky
       build directory: /home/thomasto/zephyrproject/zephyr/build (created)
       BOARD: stm32f746g_disco (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python (found suitable version "3.7.5", minimum required is "3.6")
-- Selected BOARD stm32f746g_disco
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
CMake Error at /home/thomasto/zephyrproject/zephyr/cmake/host-tools.cmake:26 (message):
  Unable to import west.version from '/usr/bin/python'
Call Stack (most recent call first):
  /home/thomasto/zephyrproject/zephyr/cmake/app/boilerplate.cmake:443 (include)
  CMakeLists.txt:4 (include)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -B/home/thomasto/zephyrproject/zephyr/build -S/home/thomasto/zephyrproject/zephyr/samples/basic/blinky -GNinja -DBOARD=stm32f746g_disco
---

Looks like I'm missing some step.

Thomas

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@... Website: www.iar.com
Twitter:
www.twitter.com/iarsystems


--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail: thomas.tornblom@... Website: www.iar.com
Twitter: www.twitter.com/iarsystems

Re: Initial build errors

Carles Cufi
 

Hi Thomas,

 

Could it be that your /usr/bin/python is not the same python you used to install west? i.e. do you have multiple python installations on your system?

 

$ cat `which west` | grep '#!'

 

In my case this yields:

#!/usr/bin/python3

 

which matches my:

 

Found PythonInterp: /usr/bin/python3

 

Carles

 

From: devel@... <devel@...> On Behalf Of Thomas Törnblom via Lists.Zephyrproject.Org
Sent: 06 March 2020 13:39
To: devel@...
Cc: devel@...
Subject: [Zephyr-devel] Initial build errors

 

I'm just starting up my IAR porting effort again and thought I would just build a simple out of the box project with the standard tools, but I'm immediately running into issues.

I'm on Ubuntu 18.04.4 LTS and have followed https://docs.zephyrproject.org/latest/getting_started/index.html
---
thomasto@thomasto-VirtualBox:~/zephyrproject/zephyr$ west build -p auto -b stm32f746g_disco samples/basic/blinky
-- west build: build configuration:
       source directory: /home/thomasto/zephyrproject/zephyr/samples/basic/blinky
       build directory: /home/thomasto/zephyrproject/zephyr/build (created)
       BOARD: stm32f746g_disco (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python (found suitable version "3.7.5", minimum required is "3.6")
-- Selected BOARD stm32f746g_disco
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
CMake Error at /home/thomasto/zephyrproject/zephyr/cmake/host-tools.cmake:26 (message):
  Unable to import west.version from '/usr/bin/python'
Call Stack (most recent call first):
  /home/thomasto/zephyrproject/zephyr/cmake/app/boilerplate.cmake:443 (include)
  CMakeLists.txt:4 (include)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -B/home/thomasto/zephyrproject/zephyr/build -S/home/thomasto/zephyrproject/zephyr/samples/basic/blinky -GNinja -DBOARD=stm32f746g_disco
---

Looks like I'm missing some step.

Thomas

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail:
thomas.tornblom@... Website: www.iar.com
Twitter:
www.twitter.com/iarsystems

Initial build errors

Thomas Törnblom
 

I'm just starting up my IAR porting effort again and thought I would just build a simple out of the box project with the standard tools, but I'm immediately running into issues.

I'm on Ubuntu 18.04.4 LTS and have followed https://docs.zephyrproject.org/latest/getting_started/index.html
---
thomasto@thomasto-VirtualBox:~/zephyrproject/zephyr$ west build -p auto -b stm32f746g_disco samples/basic/blinky
-- west build: build configuration:
       source directory: /home/thomasto/zephyrproject/zephyr/samples/basic/blinky
       build directory: /home/thomasto/zephyrproject/zephyr/build (created)
       BOARD: stm32f746g_disco (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /usr/bin/python (found suitable version "3.7.5", minimum required is "3.6")
-- Selected BOARD stm32f746g_disco
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'west'
CMake Error at /home/thomasto/zephyrproject/zephyr/cmake/host-tools.cmake:26 (message):
  Unable to import west.version from '/usr/bin/python'
Call Stack (most recent call first):
  /home/thomasto/zephyrproject/zephyr/cmake/app/boilerplate.cmake:443 (include)
  CMakeLists.txt:4 (include)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -B/home/thomasto/zephyrproject/zephyr/build -S/home/thomasto/zephyrproject/zephyr/samples/basic/blinky -GNinja -DBOARD=stm32f746g_disco
---

Looks like I'm missing some step.

Thomas

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail: thomas.tornblom@... Website: www.iar.com
Twitter: www.twitter.com/iarsystems

Re: hci interface stopped working after few hours #ble #hci #nrf52480 #uart

Mayank
 

Hi Vinayak,

Thank you for the support.
I have created the GH issue for the same https://github.com/zephyrproject-rtos/zephyr/issues/23319

Thanks,
Mayank

Re: hci interface stopped working after few hours #ble #hci #nrf52480 #uart

Carles Cufi
 

Hi  Mayank,

 

When you create the GitHub issue please be specific about the exact layout of the setup you have.

It is not fully clear to me if you are connecting the nrf52840_pca10056 to the i.MX6UL via the PCA10056’s USB connector (i.e. using the PCA’s on-board debugger) or directly via lines to the UART from the i.MX’s pins to the nRF52840’s pins without any circuitry.

 

Thanks,

 

Carles

 

From: devel@... <devel@...> On Behalf Of Mayank via Lists.Zephyrproject.Org
Sent: 06 March 2020 11:24
To: devel@...
Cc: devel@...
Subject: Re: [Zephyr-devel] hci interface stopped working after few hours #ble #hci #nrf52480 #uart

 

Hi All,

Here i'm facing the issue even after using the full UART (Tx, Rx, RTS, CTS).
These 4 pins are connected & configured from both (i.MX6UL & nrf52840_pca10056).

Note : nrf52840 chip is flashed with HCI_UART sample app of zephyr. In that i have configured 4 pins and make HWFC enable from nrf5.conf file.

Ans still i'm not facing this issue continuously. Lets say i'm keeping beacon scanning on for 4-5 hours then its working fine. It crashes when i keep it running for 2-3 days.

Thanks,
Mayank