Cannot use nrf70-wifi-ble-image-transfer-demo in nRF7002 DK

Hi

I am using nrf70-wifi-ble-image-transfer-demo in the nRF7002 DK.

I change nothing on the code form the sample, after patching I have succesfully build the code and then flash to the borad.

However, after flashing, there is nothing happending on the nRF7002 DK,even no printing printk("Starting %s with CPU frequency: %d MHz\n", CONFIG_BOARD, SystemCoreClock / MHZ(1));

I checked RTT there is nothing, and the serial terminal will only shows:

I try to debug but when I enter the dubug it can not stop by the main function.

Could you please help me on this, thank you so much!

  • Hi

    I just added the overlay, I still cannot use the code

    I thought I could use "west build -b nrf7002dk_nrf5340_cpuapp" to use the UDP mode, so I didn't include -DEXTRA_CONF_FILE=overlay_tcp_socket.conf

    I think it's the problem from nRF7002DK, so I then use an nRF5340 DK the printing is:

    After I flash again, the nRF5340 has the same printing problem before. I can not get the printing form nRF7002 DK and nRF5340 DK now.

    Could youl please give me some advice?

  • Hi,

    Today I have added the log to be

    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=3
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=y
    CONFIG_LOG_PRINTK=y
    

    Finally, I can see something from RTT, however, UART is still unavailable, it shows the same problems before.

    I notice the SPI from nRF7002 DK's CS(12), CLK(15) and MOSI (13) shows the correct pattern, however, the code reporting 

    00> [00:00:00.454,437] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:00.660,095] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:00.865,753] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:00.871,307] <err> mega_camera: failed to write 0x40 to 0x87
    00> [00:00:02.071,533] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.277,191] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.482,849] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.488,403] <err> mega_camera: failed to read 0x44 register
    00> [00:00:02.690,612] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.896,270] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:03.101,928] <err> spi_nrfx_spim: Timeout waiting for transfer complete

    On the other hand, when I using the nRF5340 DK, the arducam can funtion correctly, the logic analyzer shows: 

    I think nRF7002 DK should have same SPI compared to nRF5340 DK, what is the problems here? Thank you so much!

  • Hi,

    Today I have added the log to be

    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=3
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=y
    CONFIG_LOG_PRINTK=y
    

    Finally, I can see something from RTT, however, UART is still unavailable, it shows the same problems before.

    I notice the SPI from nRF7002 DK's CS(12), CLK(15) and MOSI (13) shows the correct pattern, however, the code reporting 

    00> [00:00:00.454,437] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:00.660,095] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:00.865,753] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:00.871,307] <err> mega_camera: failed to write 0x40 to 0x87
    00> [00:00:02.071,533] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.277,191] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.482,849] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.488,403] <err> mega_camera: failed to read 0x44 register
    00> [00:00:02.690,612] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:02.896,270] <err> spi_nrfx_spim: Timeout waiting for transfer complete
    00> [00:00:03.101,928] <err> spi_nrfx_spim: Timeout waiting for transfer complete

    On the other hand, when I using the nRF5340 DK, the arducam can funtion correctly, the logic analyzer shows: 

    I think nRF7002 DK should have same SPI compared to nRF5340 DK, what is the problems here? Thank you so much!

  • Hi

    So, what GPIOs exactly are you using for SPI here? By default the SPI pins P0.08-P0.11 on the nRF7002 DK are connected to the external flash memory. In order to connect get these GPIOs to the appointed headers (P6 and P24) you need to short the following solder bridges on the back side of the nRF7002 DK: SB11, SB12, SB13 and SB14. This is explained in the nRF7002DK user guide.

    Best regards,

    Simon

  • I am using the same GPIO shows in overlay, which is P1.12-P1.15

Related