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

Doubts about programming

Hello.
I'm having problems to programme the nRF52832.
I'm just connecting the VCC (+3,3V), GND and SWDIO and SWDCLK.
Is it ncessary to connect any other devices like capacitors or reset pins in the circuit?
My problem is with programming process... I'm not beeing able to receive a "success" from the programming process.

I'm using the devkit nRF52-DK as programmer.
So I connecting the VDD (3V) pin (of P1 connector) to VTG (of P20 connector).
I connecting the GND pin (of P1 connector) to GND detect (of P20 connector).
And connecting VDD, GND (of P1 connector) to my board application. And connectiong SWDIO and SWDCLK (of connector P1) to my board application too.

This process occour very well with other boards that I bought few weeks ago (that are full assempbled but now, I'm tryng to do it in my application and it don't occour.
I'm not sure if is necessary to fill (solder) the PCB with all components to able the programming... because I believe that is necessary just the nRF and power supply.


Thank you.

Parents
  • Hi

    After looking at your layout, can you tell me whether the resistors R28 and R29 are mounted or not? Why are the SWCLK and SWDIO pins connected to the 3V3 net via these resistors? When programming these pins should only be connected to the SWD pins on the debugger and not have a voltage on them. The external chip must be powered itself, but not the SWD pins.

    Best regards,

    Simon

Reply
  • Hi

    After looking at your layout, can you tell me whether the resistors R28 and R29 are mounted or not? Why are the SWCLK and SWDIO pins connected to the 3V3 net via these resistors? When programming these pins should only be connected to the SWD pins on the debugger and not have a voltage on them. The external chip must be powered itself, but not the SWD pins.

    Best regards,

    Simon

Children
  • Hi Simonr.
    Thank you so much for your help.
    These resistors (R28 and R29) are not mounted. We put them in the circuit just to imagining (preventing) if these would be necessary pull ups... But after manufacture the PCB we confirm that wasn't necessary.
    But we realised what was the problem yesterday and fix it. All the PCB had a problem in the conection from some pads (in top layer) and midlayer (intermitente conection). So we manufactor another PCB and it worked very well.
    Thank you very much for your help. With you w could filter and aliminate problems till find the real problem.

    Now I wish to ask you another question...
    Is it possible to create a simple "HelloWorld" code in MBED and program the Nordic with J-LINK?
    I'm asking you it because I've created a code to blink a led but it doesn't blink the led.
    I've created a new program in MBED using Nordic nRF52-DK with template "(mbed OS 5)Blink LED HelloWorld" as you can see in the images bellow.
    And I'm trying to blink the a led connected to pin P0.28 in my PCB. But it doens't works. I've already confirmed that led circuit works.
    In the Nordic Dev Kit (nRF52-DK) this program works very well (using the pins P0.17 ~ P0.20)... But in the PCB it doesn't works... So I believe that probably MBED just Works with Dev Kit.
    Is it correct?

    Thank you very much again.
    Anderson





Related