This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Connect SDK Tutorial

I am using  nRF Connect SDK Tutorial - Part 1 | NCS v1.4.0.

I am using MacOS and nRF Connect SDK v1.6.1.

a. The JlinkExe executes but JLinkRTTClientExe doesn't show any message

b. the command $west build -b nrf5340dk_nrf5340_cpuapp_ns produces:

usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...

west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

I don't know why west doesn't recognize its install directory, even though I have the following env variables set correctly

>echo $ZEPHYR_TOOLCHAIN_VARIANT  

gnuarmemb

>echo $GNUARMEMB_TOOLCHAIN_PATH  

/opt/nordic/ncs/v1.6.1/toolchain

I used $west init but compiler generates error message.

Does this tutorial actually work?

Parents
  • Thank you! Yes, west works after setting the correct path. I finished part 1 on MacOS, nrfConnect 1.6.1 and nrf5340DK. Here are the problems, if you with to update the tutorial.

    1. Path to west is not set
    2. Cannot see the output of printk() neither in SEGGER debugger nor using JLinkEXE+JLinkRTTClientExe
    3. If the HCI RPMsg is not flashed main.c gets stuck at err = bt_enable(NULL); I’d expect it to return error.

      I'd recommend readers to go through the Set the environment variables section, regardless of how they installed the nrfConnect. 
Reply
  • Thank you! Yes, west works after setting the correct path. I finished part 1 on MacOS, nrfConnect 1.6.1 and nrf5340DK. Here are the problems, if you with to update the tutorial.

    1. Path to west is not set
    2. Cannot see the output of printk() neither in SEGGER debugger nor using JLinkEXE+JLinkRTTClientExe
    3. If the HCI RPMsg is not flashed main.c gets stuck at err = bt_enable(NULL); I’d expect it to return error.

      I'd recommend readers to go through the Set the environment variables section, regardless of how they installed the nrfConnect. 
Children
No Data
Related