nrf52840, with zephyr, running button example, can't find my board

hello Nordic

i am working with nrf52840, with zephyr (i am new to zephyr)

i have an issue with not responding pin interrupt so i try to run zephyr example to see how it works there but when trying to build with my board i get an error that the file is not found and it is looking in boards/arc instead of boards/arm, i could not find how to change this search path

any ideas will be appreciated 

best regards

Ziv

Parents
  • Hello Ziv,

    i have an issue with not responding pin interrupt so i try to run zephyr example to see how it works there but when trying to build with my board i get an error that the file is not found and it is looking in boards/arc instead of boards/arm, i could not find how to change this search path

    which Zephyr sample are you trying to build? Could you please provide me with a full build log so that I can see where the compiler stops?

    Thanks and regards,

    Markus

  • which Zephyr sample are you trying to build? Could you please provide me with a full build log so that I can see where the compiler stops?

    the basic -> button sample

    the log :

    button git:(fa70572d1d) west build -b canary_proto_rev_3 -- -DBOARD_ROOT=/home/zhershkovitch/workspace/canary_ep -DARCH=arm
    
    -- west build: generating a build system
    Including boilerplate (Zephyr base): /home/zhershkovitch/workspace/ncs/zephyr/cmake/app/boilerplate.cmake
    CMake Deprecation Warning at /home/zhershkovitch/workspace/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
      The OLD behavior for policy CMP0079 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    Call Stack (most recent call first):
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Application: /home/zhershkovitch/workspace/ncs/zephyr/samples/basic/button
    -- Zephyr version: 2.4.99 (/home/zhershkovitch/workspace/ncs/zephyr)
    -- Found Python3: /usr/bin/python3.9 (found suitable exact version "3.9.7") found components: Interpreter 
    -- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
    -- Board: canary_proto_rev_3
    No board named 'canary_proto_rev_3' found.
    
    Please choose one of the following boards:
    
    Traceback (most recent call last):
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 113, in <module>
        dump_boards(find_arch2boards(parse_args()))
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 32, in find_arch2boards
        arch2board_set = find_arch2board_set(args)
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 45, in find_arch2board_set
        for arch, boards in find_arch2board_set_in(root, arches).items():
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 78, in find_arch2board_set_in
        for maybe_board in (boards / arch).iterdir():
      File "/usr/lib/python3.9/pathlib.py", line 1160, in iterdir
        for name in self._accessor.listdir(self):
    FileNotFoundError: [Errno 2] No such file or directory: '/home/zhershkovitch/workspace/canary_ep/boards/arc'
    CMake Error at /home/zhershkovitch/workspace/ncs/zephyr/cmake/app/boilerplate.cmake:383 (message):
      Invalid BOARD; see above.
    Call Stack (most recent call first):
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python -B/home/zhershkovitch/workspace/ncs/zephyr/samples/basic/button/build -S/home/zhershkovitch/workspace/ncs/zephyr/samples/basic/button -GNinja -DBOARD=canary_proto_rev_3 -DBOARD_ROOT=/home/zhershkovitch/workspace/canary_ep -DARCH=arm
    ➜  button git:(fa70572d1d) 

Reply
  • which Zephyr sample are you trying to build? Could you please provide me with a full build log so that I can see where the compiler stops?

    the basic -> button sample

    the log :

    button git:(fa70572d1d) west build -b canary_proto_rev_3 -- -DBOARD_ROOT=/home/zhershkovitch/workspace/canary_ep -DARCH=arm
    
    -- west build: generating a build system
    Including boilerplate (Zephyr base): /home/zhershkovitch/workspace/ncs/zephyr/cmake/app/boilerplate.cmake
    CMake Deprecation Warning at /home/zhershkovitch/workspace/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
      The OLD behavior for policy CMP0079 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    Call Stack (most recent call first):
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Application: /home/zhershkovitch/workspace/ncs/zephyr/samples/basic/button
    -- Zephyr version: 2.4.99 (/home/zhershkovitch/workspace/ncs/zephyr)
    -- Found Python3: /usr/bin/python3.9 (found suitable exact version "3.9.7") found components: Interpreter 
    -- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
    -- Board: canary_proto_rev_3
    No board named 'canary_proto_rev_3' found.
    
    Please choose one of the following boards:
    
    Traceback (most recent call last):
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 113, in <module>
        dump_boards(find_arch2boards(parse_args()))
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 32, in find_arch2boards
        arch2board_set = find_arch2board_set(args)
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 45, in find_arch2board_set
        for arch, boards in find_arch2board_set_in(root, arches).items():
      File "/home/zhershkovitch/workspace/ncs/zephyr/scripts/list_boards.py", line 78, in find_arch2board_set_in
        for maybe_board in (boards / arch).iterdir():
      File "/usr/lib/python3.9/pathlib.py", line 1160, in iterdir
        for name in self._accessor.listdir(self):
    FileNotFoundError: [Errno 2] No such file or directory: '/home/zhershkovitch/workspace/canary_ep/boards/arc'
    CMake Error at /home/zhershkovitch/workspace/ncs/zephyr/cmake/app/boilerplate.cmake:383 (message):
      Invalid BOARD; see above.
    Call Stack (most recent call first):
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /home/zhershkovitch/workspace/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python -B/home/zhershkovitch/workspace/ncs/zephyr/samples/basic/button/build -S/home/zhershkovitch/workspace/ncs/zephyr/samples/basic/button -GNinja -DBOARD=canary_proto_rev_3 -DBOARD_ROOT=/home/zhershkovitch/workspace/canary_ep -DARCH=arm
    ➜  button git:(fa70572d1d) 

Children
No Data
Related