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!

Parents
  • Hi

    Did you follow the Firmware building and Wi-Fi Connection build steps from the Readme file here? Can you confirm you added the  -- -DEXTRA_CONF_FILE=overlay_tcp_socket.conf

    as an extra devicetree overlay here? It doesn't seem like that from your build config window.

    Best regards,

    Simon

  • 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!

Reply
  • 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!

Children
No Data
Related