Hello,
nRF Connect SDK1.8.0, Windows10 X64.
default code, test spi loopback,
how to know recv data lenght?
thanks
Best regards,
yuyou
Hello,
nRF Connect SDK1.8.0, Windows10 X64.
default code, test spi loopback,
how to know recv data lenght?
thanks
Best regards,
yuyou
Strange. Have you enabled CONFIG_SPI_SLAVE=y ?
May also want to remove CONFIG_SPI_3_NRF_RX_DELAY=1 from the boards config.
It might be best to make a new sample for testing slave behavior, without all the baggage that assumes you are using an SPI master in spi_loopback.
thanks for reply,
maybe zephyr.dts modify is invalid,
Because I'm trying to change the pins in master, reload and recompile, but it still use the old pins.
thanks
Best regards,
yuyou
You can't edit files in the build folder. You need to add/edit configs in the prj.conf file, not in the build folder.
To edit pins, you need to add an overlay file to the application, named nrf52840dk_nrf52840.overlay and add the new values there.
Hi,
thanks for reply.
i created file nrf52840dk_nrf52840.overlay as follow:
only change pin to 0x1e,reload project clean solution and rebuild, it still runing whit old pin.it means nrf52840dk_nrf52840.overlay not used.
so,change prj.conf、boards/nrf52840dk_nrf52840.conf、*.dts、*.overlay files,must run CMake,it will be used.
but this case is all about discuss :
how to know recv data lenght in master?
thanks
Best regards,