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

Sending data to NRF52 over PCA10040/SWO

Hello,

I have the following setup:

  • a computer connected to a PCA10040 over USB
  • a PCA10040 connected to a NRF52832 over SWO (SWD IO, SWD CLK, SWO, RESET).

I would like to send data from the computer to the NRF52832 using this setup (ie. nothing over BLE).

What is the best solution? I am a bit confused between JTag, JLink, RTT, SWO... If needed the PCA10040 can be replaced with something else but I cannot change the four pins on the NRF52832 side.

Thank you for your guidance,

Parents
  • Hi,

    You have a custom board and the only pins you have access to is (if it is a QFN packager) pin 21, pin 24, pin 25 and pin 26 ?



    Then you can use serial communication like UART on pin 21 and 24, they are general purpose IO.

    Regards,
    Jonathan

  • Thank you very much for your answer.

    It seems the information I gave above is incorrect.

    The pins we use are VDD [A7], SWDIO [G1], SWDCLK [F1] and ground (on BGA), and they're connected to the PCA10040.

    Is something doable with this setup only? (since flashing and getting RTT logs is possible, I assumed sending data also was, and it seems JLinkRTTViewer can send data). That would be very convenient for our product.

    If not, to be sure, are you suggesting we should add pins 21/H2 and 24/H1 to have a UART connection?

Reply
  • Thank you very much for your answer.

    It seems the information I gave above is incorrect.

    The pins we use are VDD [A7], SWDIO [G1], SWDCLK [F1] and ground (on BGA), and they're connected to the PCA10040.

    Is something doable with this setup only? (since flashing and getting RTT logs is possible, I assumed sending data also was, and it seems JLinkRTTViewer can send data). That would be very convenient for our product.

    If not, to be sure, are you suggesting we should add pins 21/H2 and 24/H1 to have a UART connection?

Children
Related