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

HIDS Bluetooth Mouse Sample

I'm currently trying to build and run the bluetooth mouse sample code on my nRF9160 DK, but I'm ecountering problems during the build process.

Shortly after hitting the build button, I get hit with an error in a settings_init.c file

it tells me that this has not been declared and won't let the build complete

I am running what I believe are the correct build options

I'm wondering if this is just a warning that is being registered as an error, but am unsure how to proceed.

I'm running windows 10

Parents
  • This error only shows up if you use the partition manager. If you choose the board nrf9160_pca10090 instead of nrf9160_pca10090ns you won't get this errorFor some reason, the defintion PM_MCUBOOT_STORAGE_ID is not generated inside <..>\ncs\nrf\samples\bluetooth\peripheral_hids_mouse\build_nrf9160_pca10090ns\spm\zephyr\include\generated\pm_config.h. I am not sure why this is, but I can look into it if you would like to.

    Best regards,

    Simon

  • Additionally, when trying to do the Keyboard sample the exact same thing happens. When built as ns it has the same error in the same file. When built as a secure app it builds and loads just fine, but still can't connect and also get err-19 in addition to LEDs 1-4 all being constantly lit up.

  • The nRF9160 does not support Bluetooth, and that is the reason you are getting this error. However, you can still use the pca10090 board and the nRF52840 chip (which supports bluetooth). This can be done by setting SW5 to nRF52, and choosing the nRF52840 board when building your project.

    I can see that the nRF9160 DK is listed under Requirements in the NCS documentation, and I think the intention is that you have to use the nRF52840 chip on the board.

    I am sorry for not telling you this earlier, as I obviously should have seen this immediately. My mistake.

    Best regards,

    Simon

Reply
  • The nRF9160 does not support Bluetooth, and that is the reason you are getting this error. However, you can still use the pca10090 board and the nRF52840 chip (which supports bluetooth). This can be done by setting SW5 to nRF52, and choosing the nRF52840 board when building your project.

    I can see that the nRF9160 DK is listed under Requirements in the NCS documentation, and I think the intention is that you have to use the nRF52840 chip on the board.

    I am sorry for not telling you this earlier, as I obviously should have seen this immediately. My mistake.

    Best regards,

    Simon

Children
Related