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

Not able to see log output in COM port for SPI.

Hello,

I am using NRF51 DK for developing an application. I tried running the default SPI example in the SDK 12.3 which uses the spi and spis example. The location of those examples are SDK ->examples -> peripheral -> spi & spis. When I run these examples in two different boards I can see the led blinking showing that the spi transfer is completed but when I connect my COM port to Putty software I am not seeing any output in the log. I want to connect nRF51822 boards using SPI but I cannot figure out if they are working or not without the log. If you can please let me know how do I make the log work for this specific example.

Thank You.

Parents
  • By default, the logger module is not enabled in the examples. You need to set the following define in sdk_config.h:

    #define NRF_LOG_ENABLED 1

    Hein said:
    Not sure about the 51, but in the 52 you can not run the SPI0 and UART0 at the same time, are they both configured for instance 0 ?

    This is not correct, UART does not share instance with other serial devices. Only SPI/SPIM/SPIS/TWI/TWIM/TWIS share base address.

  • Hello Jorgen,

    Thank you for your input. It helped me a lot. I am working on an application with 5 nRF51822 chips in one board, one of which is a transmitter and 4 of them are receivers(they receive the signal from a transmitter in a different board) which then send the received signal using SPI to the transmitter in the same board. So I saw your thread where you explained how to change the SS pin and send using SPI -SPI multiple SS pin thread  . I need to transmit received signals from four different boards to a single board, so I wanted to know if the four chips can send the received signal using SPI to the one chip simultaneously, will there be a collision or how will it work? Also, can I change the SS pin value from the slave side? Basically, I am not sure about how I proceed with this setup if you could help me that would be great.

    Thanks a lot.My setup.pptx

Reply
  • Hello Jorgen,

    Thank you for your input. It helped me a lot. I am working on an application with 5 nRF51822 chips in one board, one of which is a transmitter and 4 of them are receivers(they receive the signal from a transmitter in a different board) which then send the received signal using SPI to the transmitter in the same board. So I saw your thread where you explained how to change the SS pin and send using SPI -SPI multiple SS pin thread  . I need to transmit received signals from four different boards to a single board, so I wanted to know if the four chips can send the received signal using SPI to the one chip simultaneously, will there be a collision or how will it work? Also, can I change the SS pin value from the slave side? Basically, I am not sure about how I proceed with this setup if you could help me that would be great.

    Thanks a lot.My setup.pptx

Children
No Data
Related