MESH DEMO


Muhammad Muh <muhammad.muh83@...>
 

Dear Sir/Madam,

Hope you will be fine and in best of health. I am a beginner and done with the Zephyr BLE Beacon example with NRF52840 Dongle. It is requested if i can be helped to run the Bluetooth Mesh Demo Sample example step by step in Zephyr i will be grateful.


Best Regards
Muhammad


From: Muhammad Muh <muhammad.muh83@...>
Sent: Saturday, August 3, 2019 3:24 PM
To: Thea Aldrich <aldrich.thea@...>
Subject: Re: WAtched your Video
 

Dear Respected Madam,


Thank you very much for your kind email. It is my honor to talk and to learn from such an extraordinary expert like you.


It is requested that I have purchased the board nrf52840 Dongle for doing the examples as given in your Zephyrs Boards Documentation.


I have succesfully checked the Dongle with the help of NRFCONNECT Application


I am doing my best to learn the Zephyr but facing many issues to run the Blinky and Mesh Example with NRF52840 Dongle. I will be grateful if you can help me in doing these examples so that i can have a start on Zephyr.


A) Talking of BLINKY Example.


I am using two different BLINKY example one is done with the help of CMAKE and the other is with WEST respectively. The web links of example are as follows:


https://docs.zephyrproject.org/1.13.0/boards/arm/nrf52840_pca10059/doc/nrf52840_pca10059.html


https://docs.zephyrproject.org/latest/samples/basic/blink_led/README.html


Problems Using CMAKE:

Command 1: cmake -GNinja -DBOARD=nrf52840_pca10059 ..

In my view going well kindly see as follows:


Command 1: muh@muhammad:~/zephyrproject/zephyr/samples/basic/blink_led/build$ cd /home/muh/zephyrproject/zephyr/samples/basic/blinky/

muh@muhammad:~/zephyrproject/zephyr/samples/basic/blinky$ mkdir build && cd build

muh@muhammad:~/zephyrproject/zephyr/samples/basic/blinky/build$ cmake -GNinja -DBOARD=nrf52840_pca10059 ..

Zephyr version: 1.14.0

-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3.4")

-- Selected BOARD nrf52840_pca10059

-- Found west: /home/muh/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")

-- Loading /home/muh/zephyrproject/zephyr/boards/arm/nrf52840_pca10059/nrf52840_pca10059.dts as base

-- Overlaying /home/muh/zephyrproject/zephyr/dts/common/common.dts

nrf52840_pca10059.dts.pre.tmp:312.23-315.5: Warning (simple_bus_reg): /soc/virtualcom: missing or empty reg/ranges property

Parsing Kconfig tree in /home/muh/zephyrproject/zephyr/Kconfig

Loading /home/muh/zephyrproject/zephyr/boards/arm/nrf52840_pca10059/nrf52840_pca10059_defconfig as base

Merging /home/muh/zephyrproject/zephyr/samples/basic/blinky/prj.conf

Configuration written to '/home/muh/zephyrproject/zephyr/samples/basic/blinky/build/zephyr/.config'


warning: UART_INTERRUPT_DRIVEN (defined at drivers/serial/Kconfig:37) was assigned the value 'y' but

got the value 'n'. You can check symbol information (including dependencies) in the 'menuconfig'

interface (see the Application Development Primer section of the manual), or in the Kconfig

reference at

http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_UART_INTERRUPT_DRIVEN.html (which is

updated regularly from the master branch). See the 'Setting configuration values' section of the

Board Porting Guide as well.


warning: the choice symbol UART_0_NRF_UARTE (defined at drivers/serial/Kconfig.nrfx:34) was selected

(set =y), but no symbol ended up as the choice selection. You can check symbol information

(including dependencies) in the 'menuconfig' interface (see the Application Development Primer

section of the manual), or in the Kconfig reference at

http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_UART_0_NRF_UARTE.html (which is

updated regularly from the master branch). See the 'Setting configuration values' section of the

Board Porting Guide as well.

-- Cache files will be written to: /home/muh/.cache/zephyr

-- The C compiler identification is GNU 8.3.0

-- The CXX compiler identification is GNU 8.3.0

-- The ASM compiler identification is GNU

-- Found assembler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

-- Performing Test toolchain_is_ok

-- Performing Test toolchain_is_ok - Success

Including module: tinycbor

-- Configuring done

-- Generating done

-- Build files have been written to: /home/muh/zephyrproject/zephyr/samples/basic/blinky/build



Command 2: ninja

In my view going well as it is completing from 1 to 107. Kindly see as follows 


Command 2: muh@muhammad:~/zephyrproject/zephyr/samples/basic/blinky/build$ ninja

[1/107] Preparing syscall dependency handling


[102/107] Linking C executable zephyr/zephyr_prebuilt.elf

Memory region Used Size Region Size %age Used

FLASH: 12876 B 1020 KB 1.23%

SRAM: 3904 B 256 KB 1.49%

IDT_LIST: 56 B 2 KB 2.73%

[107/107] Linking C executable zephyr/zephyr.elf


Command 3: ninja flash

Causing error.


Command3: muh@muhammad:~/zephyrproject/zephyr/samples/basic/blinky/build$ ninja flash

[0/1] Flashing nrf52840_pca10059

Using runner: nrfjprog

Traceback (most recent call last):

File "/home/muh/.local/bin/west", line 11, in <module>

sys.exit(main())

File "/home/muh/.local/lib/python3.6/site-packages/west/_bootstrap/main.py", line 499, in main

wrap(wrap_argv)

File "/home/muh/.local/lib/python3.6/site-packages/west/_bootstrap/main.py", line 485, in wrap

west.main.main(argv)

File "/home/muh/zephyrproject/.west/west/src/west/main.py", line 580, in main

args.handler(args, unknown)

File "/home/muh/zephyrproject/.west/west/src/west/main.py", line 332, in ext_command_handler

command.run(*west_parser.parse_known_args(argv))

File "/home/muh/zephyrproject/.west/west/src/west/commands/command.py", line 90, in run

self.do_run(args, unknown)

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/flash.py", line 32, in do_run

'ZEPHYR_BOARD_FLASH_RUNNER')

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/run_common.py", line 228, in do_run_common

runner.run(command_name)

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/runners/core.py", line 407, in run

self.do_run(command, **kwargs)

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/runners/nrfjprog.py", line 92, in do_run

board_snr = self.get_board_snr_from_user()

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/runners/nrfjprog.py", line 53, in get_board_snr_from_user

snrs = self.check_output(['nrfjprog', '--ids'])

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/runners/core.py", line 485, in check_output

return subprocess.check_output(cmd)

File "/usr/lib/python3.6/subprocess.py", line 356, in check_output

**kwargs).stdout

File "/usr/lib/python3.6/subprocess.py", line 423, in run

with Popen(*popenargs, **kwargs) as process:

File "/usr/lib/python3.6/subprocess.py", line 729, in __init__

restore_signals, start_new_session)

File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child

raise child_exception_type(errno_num, err_msg, err_filename)

FileNotFoundError: [Errno 2] No such file or directory: 'nrfjprog': 'nrfjprog'

FAILED: zephyr/cmake/flash/CMakeFiles/flash

cd /home/muh/zephyrproject/zephyr/samples/basic/blinky/build && /home/muh/cmake-3.13.1-Linux-x86_64/bin/cmake -E env /home/muh/.local/bin/west flash --skip-rebuild

ninja: build stopped: subcommand failed.



Problems Using West:


Command 1:

muh@muhammad:~/zephyrproject$ west build -b nrf52840_pca10059 zephyr/samples/basic/blinky

source directory: /home/muh/zephyrproject/zephyr/samples/basic/blinky

build directory: /home/muh/zephyrproject/build

BOARD: nrf52840_pca10059

Error: could not find CMAKE_PROJECT_NAME in Cache

ERROR: command exited with status 1: /home/muh/cmake-3.13.1-Linux-x86_64/bin/cmake --build /home/muh/zephyrproject/build

run as "west -v build -b nrf52840_pca10059 zephyr/samples/basic/blinky" for a stack trace


Command 2:


Tried west -v build -b nrf52840_pca10059 zephyr/samples/basic/blinky


muh@muhammad:~/zephyrproject$ west -v build -b nrf52840_pca10059 zephyr/samples/basic/blinky

ZEPHYR_BASE=/home/muh/zephyrproject/zephyr (origin: env)

args: Namespace(board='nrf52840_pca10059', build_dir=None, cmake=False, command='build', force=False, help=None, source_dir=None, target=None, verbose=1, version=False, zephyr_base=None) remainder: ['zephyr/samples/basic/blinky']

source_dir: zephyr/samples/basic/blinky cmake_opts: None

source directory: /home/muh/zephyrproject/zephyr/samples/basic/blinky

build directory: /home/muh/zephyrproject/build

BOARD: nrf52840_pca10059

not running cmake; build system is present

Error: could not find CMAKE_PROJECT_NAME in Cache

ERROR: command exited with status 1: /home/muh/cmake-3.13.1-Linux-x86_64/bin/cmake --build /home/muh/zephyrproject/build

Traceback (most recent call last):

File "/home/muh/zephyrproject/.west/west/src/west/main.py", line 580, in main

args.handler(args, unknown)

File "/home/muh/zephyrproject/.west/west/src/west/main.py", line 332, in ext_command_handler

command.run(*west_parser.parse_known_args(argv))

File "/home/muh/zephyrproject/.west/west/src/west/commands/command.py", line 90, in run

self.do_run(args, unknown)

File "/home/muh/zephyrproject/zephyr/scripts/west_commands/build.py", line 158, in do_run

cmake.run_build(self.build_dir, extra_args=extra_args)

File "/home/muh/zephyrproject/.west/west/src/west/cmake.py", line 40, in run_build

run_cmake(['--build', build_directory] + list(extra_args), quiet=quiet)

File "/home/muh/zephyrproject/.west/west/src/west/cmake.py", line 35, in run_cmake

subprocess.check_call(cmd, **kwargs)

File "/usr/lib/python3.6/subprocess.py", line 311, in check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/home/muh/cmake-3.13.1-Linux-x86_64/bin/cmake', '--build', '/home/muh/zephyrproject/build']' returned non-zero exit status 1.



Waiting for your kind response.


Best Regards






From: Thea Aldrich <aldrich.thea@...>
Sent: Friday, July 26, 2019 12:15:18 AM
To: Muhammad Muh <muhammad.muh83@...>
Subject: Re: WAtched your Video
 
Hi Muhammad,
No need to apologize at all! Things of that nature don't trouble me at all. :) I wanted to let you know that  I recently  changed jobs so I am no longer the paid Developer Advocate for Zephyr RTOS. I am still very much active in the community however and am very happy to see you are enjoying Zephyr. The learning curve is indeed pretty rough. If you stick with it you'll very quickly become an expert. 

I noticed your question to the mailing list was answered by Carles. Carles is a great guy and is one of the core creators of Zephyr Project. He is definitely one of the best people to stay in touch with as you learn. Always feel free to reach out to me directly if you have any questions or are unable to get a response from the community.

Best,
Thea

On Tue, Jul 23, 2019 at 7:39 PM Muhammad Muh <muhammad.muh83@...> wrote:

Dear Madam,


I saw your video on the web related to Zephyr RTOS. Sorry to address you with the 'Mr' in my last email. I did not know you before. Really happy that Developer Advocate has very nicely replied to my query. I am very thankful. I really want to be expert in Zephyr RTOS. Hope i start of well. Waiting for your kind help despite of your busy schedule.


Best Regards

Join devel@lists.zephyrproject.org to automatically receive all group messages.