How do you program the SWDIO and SWDCLK of the nRF52832 DK?

I currently have a nRF52832 DK connected to an external board with a BC832 module connected to the nRF52832 DK through a P19 connector. The voltage I have running and connections I have are correct but I have questions on the software side of things. I was wondering if there are any examples that use this P19 connector and program the SWDIO and SWDCLK. If not, is there a certain process to program the SWDIO and SWDCLK?

Any advice on this regard helps.

Thank You

Parents Reply Children
  • A program that works on a specific board, is not guaranteed to work in other configurations. You can have different settings, like not having an external 32k source, as well as use different GPIOs.

     

    To answer your question directly: No, it is not guaranteed that it will then run on another module. However, it is likely that only small changes are needed.

    Kind regards,

    Håkon

  • After going through my code, one part of change I can see occurring is at the SAADC channel configuration. I currently have it for AIN3 but that is because I inputted a generated signal. The BC832 I am using is ideally supposed to obtain an input from another chip. If this is the case then what should this input be set to or what would I need to code to make sure the BC832 obtained this value?

    Currently nothing is being sent from this P19 port as I checked the signals from P19. The only signal I was able to measure was a 60Hz signal and this was the same frequency for most pins which I assume is the standard signal sent. How do I make sure the SWDIO and SWCLK are sending the correct commands to the BC832?

  • Hi,

     

    duendiad said:
    Currently nothing is being sent from this P19 port as I checked the signals from P19.

    It sounds like you have not powered your external device as per the user guide, ie. that it is not powered with 3.0V.

    Or, that you are not triggering during programming.

    Note that the SWD interface is only active when you program or enter debug mode.

    duendiad said:
    Currently nothing is being sent from this P19 port as I checked the signals from P19. The only signal I was able to measure was a 60Hz signal and this was the same frequency for most pins which I assume is the standard signal sent. How do I make sure the SWDIO and SWCLK are sending the correct commands to the BC832?

    This is highly likely noise from your mains.

     

    Kind regards,

    Håkon

Related