NRF_DESKTOP prj_keyboard.conf configuration not compiling with nrf52840 Dongle

Hi There

I am getting the following error when porting my code to the PCA10059, using the nrf_desktop prj_keyboard.conf configuration.

if someone can assist why it cant find " No such file or directory: b0_CONF_FILE: ''

It compiles fine with when the 52840DK is selected

thank you in advance 

-- Found partition manager static configuration: C:/Users/Lenovo/OneDrive/02_12/cosoft/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static.yml
Partition 'b0_container' is not included in the dynamic resolving since it is statically defined.
Partition 'b0' is not included in the dynamic resolving since it is statically defined.
Partition 'provision' is not included in the dynamic resolving since it is statically defined.
Partition 's0' is not included in the dynamic resolving since it is statically defined.
Partition 's0_image' is not included in the dynamic resolving since it is statically defined.
Partition 's1' is not included in the dynamic resolving since it is statically defined.
Partition 's1_image' is not included in the dynamic resolving since it is statically defined.
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
Dropping partition 's0_pad' since its size is 0.
Dropping partition 's1_pad' since its size is 0.
CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:2183 (message):
  No such file or directory: b0_CONF_FILE: ''
Call Stack (most recent call first):
  CMakeLists.txt:60 (assert_exists)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Lenovo/OneDrive/02_12/cosoft/nrf_desktop/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Lenovo/OneDrive/02_12/cosoft/nrf_desktop/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' '-DWEST_PYTHON=C:\ncs\toolchains\31f4403e35\opt\bin\python.exe' '-Bc:\Users\Lenovo\OneDrive\02_12\cosoft\nrf_desktop\build' -GNinja -DBOARD=nrf52840dongle_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=c:/Users/Lenovo/OneDrive/02_12/cosoft/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_keyboard.conf -DDTC_OVERLAY_FILE:STRING=c:/Users/Lenovo/OneDrive/02_12/cosoft/nrf_desktop/configuration/nrf52840dk_nrf52840/app.overlay '-Sc:\Users\Lenovo\OneDrive\02_12\cosoft\nrf_desktop'

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

  • Hi,

     

    The nrf52840dongle_nrf52840 board is not setup to have keyboard functionality, but rather function only as a usb receiver, which means it does not have all the external setup (matrix, leds, etc) compared to nrf52840dk_nrf52840.

     

    I am able to reproduce this error:

    melt said:
    No such file or directory: b0_CONF_FILE: ''

    And it can be resolved by manually adding b0_CONF_FILE:

     

    However, you will run into more issues, due to mismatch in the board setup on nrf52840dk_nrf52840 vs. nrf52840dongle_nrf52840.

    It might be easier if you add usb to the nrf52840dk_nrf52840 target instead.

     

    Kind regards,

    Håkon

  • It might be easier if you add usb to the nrf52840dk_nrf52840 target instead.

    The DK has USB functionality that why I loaded the "working" DK build and code on a dongle and both USB and BLE HID works. But cant choose my GPIO accordingly.

    If I am to take the dongle schematics and change the GPIO to match the pins im using in the DK code, would that work? Im trying to avoid manufacturing my own PCB but if I have to I will.

  • I can confirm that loading the DK build of the keyboard.conf works on the dongle. Just remap the GPIOs. I ended up using the GPIOs at the bottom of the dongle. 

Related