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
  • Hello Working Joe,

    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.

    This stands out as a possible culprit, since none of the required python packages were installed due to a missing permission. Please take a look at this stackoverflow discussion on the matter.

    Once you have installed the required python packages then you may attempt it again, but I would think that you might also have to go back in the installation guide to ensure that the installed packages are provided to the dependent files.

    Please let me know if this does not resolve the issue!

    Best regards,
    Karl

  • 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

Reply
  • 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

Children
No Data
Related