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

Setting up in Segger

Hi,

 

Been starting to program the thingy91 and faced some issues. This is the second attempt after failing on the PC and now using the MAC.

 

Managed to follow the steps highlighted in the “getting started assistance”.

The only problem faced was whilst running: “pip3 install -r zephyr/scripts/requirements.txt” command.

 

Trace:

………….

4.0->-r zephyr/scripts/requirements-run-test.txt (line 9)) (2.20)

Installing collected packages: sphinxcontrib-svg2pdfconverter, pyserial, psutil, future, pylink-square, appdirs, milksnake, cmsis-pack-manager, pyusb, hidapi, prettytable, sortedcontainers, intervaltree, pyocd, tabulate, anytree, Click, arrow, sh, gitlint, junit2html, Pillow

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/LICENSE'

Consider using the `--user` option or check the permissions.

 

 

Continued with the rest of the steps.

 

In Segger the Options for nRF Connect:

 

Additional CMAKE options: -D WEST=~/Library/Python/3.7/bin/west

Directories (Toolchain): /Users/workingjoe/Documents/opt/gnuarmemb

Zephyr base: /Users/workingjoe/Documents/opt/src/ncs/zephyr

CMAKE executable: /usr/local/bin/cmake

DTC executable: /usr/local/bin/dtc

Ninja executable: /usr/local/bin/ninja

Python executable: /usr/local/bin/python3

 

When I open the nRF SDK project:

CMakeList.txt: /Users/workingjoe/Documents/opt/src/ncs/nrf/applications/connectivity_bridge/CMakeLists.txt

Board Directory: /Users/workingjoe/Documents/opt/src/ncs/nrf/boards/arm/thingy91_nrf9160

Board Name: thingy91_nrf9160

Build directory: /Users/workingjoe/Documents/opt/src/ncs/nrf/applications/connectivity_bridge/build_thingy91_nrf9160

 

However when I open the project, I get the error:

Including boilerplate (Zephyr base): /Users/josephtey/Documents/opt/src/ncs/zephyr/cmake/app/boilerplate.cmake

thingy91_nrf9160.dts.pre.tmp:95.42-107.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000)

thingy91_nrf9160.dts.pre.tmp:344.19-350.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000)

 

……

 

warning: USB_DEVICE_VID (defined at subsys/usb/Kconfig:21) was assigned the value '0x1915' but got

the value ''. Check these unsatisfied dependencies: USB_DEVICE_STACK (=n)……

 

Any suggestions or help will be most appreciated.

 

Thanks,

 

Working Joe

Parents Reply Children
  • Hello again Working Joe,

    I dont suppose you have to use windows - as long as you have writing permission in those directories.
    The reason for why these directories are protected is because they are system wide, but if you providing the "--user" option ( like the prompt suggests) then you will install them just for your user, which you normaly have the privilage to do.

    So, you may try it again with the --user option, or you may proceed in windows, both of which should allow you to install the required dependencies..

    Best regards,
    Karl

Related