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

nRF52840 SPI+UART concurrently

I am trying to use SPI master + UART concurrently on the nRF52840 dongle. I am aware that the GPIO pins on the dongle can be used for SPI or UART. However, when trying to combine the SPI and UART examples from SDK v16, both UART and SPI fail to work. I have checked my sdk_config.h file, and have played around with changing the RX,TX pins for UART as well as tried to change the SCK, MISO, MOSI, SS pins for SPI, but to no avail.

Can anyone please help me out, or point me in the right direction when it comes to making SPI and UART work concurrently?

Parents Reply
  • Hey Jared,

    On both the SPI and UART lines, all I see is random noise. I was using a logic analyser to analyse the UART and SPI signals, and I got a framing error for UART, and the data transmitted over SPI was random.

    I was able to build the project after copying over the UART example's sdk_config.h into the SPI example's sdk_config.h. Moreover, I had to add some include directories and files.

    Please let me know how I can get them to work concurrently.

    Thanks,

    Urvaksh

Children
Related