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

NRF52840 Thread CLI overlay-usb.conf

I am using the nRF 52840 development kit to explore Thread.  I am using the 'open nRF Connect SDK' command to get the project.  I would like to use the 'overlay-usb.conf' option so that I can access the cli via the USB connection using the 'serial' app on the mac.

I am running on  mac M1, Big Sur.

Segger 5.50c.

configure is as shown below.

the creation fails with:

I clearly don't understand how to configure the overlay.

Help?

ward harriman

Parents
  • The project appears to build correctly and run... at least when I start the program there are no errors.

    After pressing "OK" my screen:

  • Hi, 

    The output message indicates there is no overlay-usb.conf under the cli folder. You can download it from https://github.com/nrfconnect/sdk-nrf/blob/master/samples/openthread/cli/overlay-usb.conf and build again. It should fix the issue.  

    Amanda H.

  • I now receive the following output:

    Building ?modules/nrf/lib/multithreading_lock/lib..__nrf__lib__multithreading_lock.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrf/subsys/mpsl/lib..__nrf__subsys__mpsl.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrf/drivers/mpsl/clock_control/lib..__nrf__drivers__mpsl__clock_control.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrf/drivers/mpsl/flash_sync/lib..__nrf__drivers__mpsl__flash_sync.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a? from solution ?build? in configuration ?Common?
    Building ?modules/hal_nordic/nrf_802154/libnrf-802154-platform.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrfxlib/nrf_802154/nrf_802154/driver/libnrf-802154-driver.a? from solution ?build? in configuration ?Common?
    Building ?modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a? from solution ?build? in configuration ?Common?
    Building ?modules/segger/libmodules__segger.a? from solution ?build? in configuration ?Common?
    Building ?modules/nrfxlib/nrfxlib/nrf_security/src/zephyr/libmbedtls_zephyr.a? from solution ?build? in configuration ?Common?
    Building ?zephyr/kernel/libkernel.a? from solution ?build? in configuration ?Common?
    Building ?zephyr/zephyr_prebuilt.elf? from solution ?build? in configuration ?Common?
    1> Linking ?zephyr_prebuilt.elf?
    1> /opt/nordic/ncs/v1.6.0/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a(prep_c.c.obj): in function `z_arm_prep_c':
    1> /opt/nordic/ncs/v1.6.0/zephyr/arch/arm/core/aarch32/prep_c.c:189: undefined reference to `_vector_start'
    1> /opt/nordic/ncs/v1.6.0/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a(arm_core_mpu.c.obj):/opt/nordic/ncs/v1.6.0/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:63: undefined reference to `_ramfunc_ram_start'
    1> /opt/nordic/ncs/v1.6.0/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a(arm_core_mpu.c.obj):(.rodata.static_regions+0x4): undefined reference to `_ramfunc_ram_size'
    1> /opt/nordic/ncs/v1.6.0/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: zephyr/kernel/libkernel.a(xip.c.obj): in function `__memcpy_ichk':
    1> /opt/nordic/ncs/v1.6.0/toolchain/arm-none-eabi/include/ssp/string.h:83: undefined reference to `_ramfunc_ram_size'
    1> /opt/nordic/ncs/v1.6.0/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /opt/nordic/ncs/v1.6.0/toolchain/arm-none-eabi/include/ssp/string.h:83: undefined reference to `_ramfunc_rom_start'
    1> /opt/nordic/ncs/v1.6.0/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /opt/nordic/ncs/v1.6.0/toolchain/arm-none-eabi/include/ssp/string.h:83: undefined reference to `_ramfunc_ram_start'
    1> collect2: error: ld returned 1 exit status
    Build failed
  • Hi, 

    Are you building the same sample?

    Try to shorten the build path like to rename "build_nrf52840dk_nrf52840" to "build". 

    -Amanda

  • I seem to be having an inordinate number of problems getting anything to work.  Perhaps I have corrupted the installation of the tools.  I am working on a MAC M1, Big Sur.  How can I remove all traces of the Nordic tool suite so that I can do a fresh install?  It can’t be just a matter of deleting the app, there are footprints of the tools elsewhere.....

  • Hi, 

    I think you can just remove NCS and redownload again. You can remove and install it again by the Toolchain Manager or update tools and repositories manually.

    -Amanda H.

Reply Children
No Data
Related