Getting Error while connecting nRF9160DK module to nRF7002DK module with spi and use it for wifi locationing

Dear Nordic Team,

I want to connect my nRF9160DK board to my nRF7002DK board and get a wi-fi location. I've followed samples/cellular/nrf_cloud_multi_service as sample and I made wiring as follows

Board nRF9160-DK(P3 & P4) nRF7002-DK (P24)
SPI CLK P0.13 P0.17
SPI CS P0.10 P0.18
SPI MOSI P0.11 P0.13
SPI MISO P0.12 P0.14
HOST-IRQ  P0.07 P0.23
IOVDD-CTR  P0.00 P0.31
BUCKEN P0.01 P0.12

I soldered SB25 and SB20 on the nRF7002 board.



The problem is, whenever I'm trying to build samples/cellular/nrf_cloud_multi_service sample with using overlay-nrf7002ek-wifi-scan-only.conf as Extra Kconfig fragments and -DSHIELD="nrf7002ek" as Extra Cmake arguments.

After flashing the sample to the nrf9160DK board, I'm getting the error below:

*** Booting nRF Connect SDK 4040aa0bf581 ***
[00:00:00.257,720] <inf> main: nRF Cloud multi-service sample has started, version: 1.0.0, protocol: MQTT
[00:00:00.257,751] <inf> cloud_connection: Enabling connectivity...
[00:00:00.260,284] <inf> wifi_nrf_bus: SPIM spi@b000: freq = 8 MHz
[00:00:00.260,314] <inf> wifi_nrf_bus: SPIM spi@b000: latency = 0
[00:00:00.260,864] <err> wifi_nrf_bus: Error: RPU comms test: sig failed: expected 0x42000020, got 0xffffffff

[00:00:00.260,925] <err> wifi_nrf: zep_shim_bus_qspi_dev_add: RPU enable failed with error -1
[00:00:00.260,986] <err> wifi_nrf: nrf_wifi_bus_qspi_dev_add: nrf_wifi_osal_bus_qspi_dev_add failed
[00:00:00.261,077] <err> wifi_nrf: nrf_wifi_bal_dev_add: Bus dev_add failed
[00:00:00.261,169] <err> wifi_nrf: nrf_wifi_hal_dev_add: nrf_wifi_bal_dev_add failed
[00:00:00.261,322] <err> wifi_nrf: nrf_wifi_fmac_dev_add: nrf_wifi_hal_dev_add failed
[00:00:00.261,383] <err> wifi_nrf: nrf_wifi_fmac_dev_add_zep: nrf_wifi_fmac_dev_add failed
[00:00:00.261,413] <err> wifi_nrf: nrf_wifi_if_start_zep: nrf_wifi_fmac_dev_add_zep failed
[00:00:00.537,200] <inf> cloud_connection: Setting up nRF Cloud library...
[00:00:00.539,093] <inf> cloud_connection: Waiting for network ready...
+CEREG: 2,"1644","00DB1564",9
+CSCON: 1
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
+CEREG: 5,"1644","00DB1564",9,,,"00010000","11100000"
%XTIME: "21","42118151436521","00"
+CSCON: 0

Then progress stops completely. The error changes when I disconnect any of the cables, so I thought the problem might be the configuration on the devicetree. and here how it looks like:


I tried to assign SPI WAKE to P0.07, the HOST-IRQ pin, but this time it started to give this error serially: ASSERTION FAIL @ WEST_TOPDIR/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c:486

I would be very grateful if you can help me solve this error, if there is any extra information that you think may be useful, I will be happy to share it.

Actually what I want to do is to get the wifi location in a simple way and monitor it on nrf cloud with REST protocol. Then I want to add A-GNSS and experience an effective indoor and outdoor location tracking example. I would be glad to hear your extra advice for that too.

Best wishes!

  • Hi,

    Yes, its correct. I followed onboarding device without nRF Cloud provisioning service because I have nRF9160dk.

    First I flashed the sample multi service, then I followed the onboarding device wirhout nRF Cloud provisioning service steps. So, what should I do now or where I'm making mistake? Do I need to delete the device from nRF Cloud each time when I upload new firmware? I would be grateful if you could help me understand the logic of this. Since I have just started using your products Im probably missing something thanks for your patience.

    Also, what else can I do to solve the problem between nRF7002dk and nRF9160dk because I think we have a hardware/firmware problem there. Because as soon as I connect 4 data wires for SPI(CLK, CS, MISO, MOSI), nRF7002dk starts to give error.

    Best regards,
    Semih

  • Hi Semih,

    SemihAydin said:
    Do I need to delete the device from nRF Cloud each time when I upload new firmware?

    This is not needed.

    Can you show your build command for building nrf_cloud_multi_service sample?
    Which NCS version do you use?

    SemihAydin said:
    Also, what else can I do to solve the problem between nRF7002dk and nRF9160dk because I think we have a hardware/firmware problem there. Because as soon as I connect 4 data wires for SPI(CLK, CS, MISO, MOSI), nRF7002dk starts to give error.

    I recommend to focus on cloud connectivity first. We can look into this problem afterwards.

    Best regards,
    Dejan

  • Hi Dejan,

    I'm currently using NCS v2.8.0 , I was using v2.6.2 before then I thought maybe the issue could fix with updating NCS to the latest version.

    I'm using the command below while Im using NCS as v2.8.0

    west build -p -b nrf9160dk/nrf9160/ns

    Since I changed the NCS to the v2.8.0, the multi service sample always using sysbuild even I tried to change from the edit build configuration tool.



    I wonder if it would help if I reinstalled the NCS.

    Best regards,
    Semih

  • Hi Semih,

    Which operating system do you use?

    SemihAydin said:
    I also changed the SDK versiton to the v2.8.0 and it was working without problems with asset tracker v2

    I understand that asset_tracker_v2 worked for you but provided log showed error: -111. Is it correct that you used asset_tracker_v2 in NCS v2.8.0 without problems?
    Did you have any problems when running asset_tracker_v2 in NCS v2.6.2?

    If you suspect that something might be wrong with your NCS installation, you could try to reinstall NCS. If you decide to try that, you can use Quick Start Guide to install modem firmware and the application of your choice. Quick Start Guide is available in nRF Connect for Desktop.

    Best regards,
    Dejan

  • Hello again,

    Im so sorry for the delay I was moving to another country and I just had a chance to open my computer.

    Suprisingly, when I connected my devıce to the same computer I realise that the nrf cloud connection has done this time, I did not do anything, it just connected itself with the same settings. My impression is maybe I was not have good enough network connection in my apartment then when I tried in the outher country/place it starts to working.

    About the connection between nrf7002dk and nrf9160dk, what should I do and which points I need to check?

    Best regards,
    Semih

Related