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

Custom board NRF52832 blinking LED using NRF52-DK P20

Hi all, 

I have a custom board with LED on PIN 11 of nRF52832, and I am using SWD P20 configuration to program my board through nrf52 DK PCA10040. 
Apparently, nRFgo Studio find my custom board, so I want to blink the LED on my board using the blinky example. 

But when I upload the code to my board, nothing happens.

Here is the output of SES:

Here, what appear on nRFgo after loading the project: 

And before loading the program was like this:



Do i need to create a custom_board.h? If so, why when I debug the example on SES, in boards.h the pca10040.h is still chosen instead of  custom_board.h?

What am I missing?

Thanks!

Alanarf 

Parents
  • Hi

    Please try powering the board using the VDD from the DK when you program it. It will provide 3.0V, not 5V, so you should be good in that regard. I think the interface MCU needs to detect the supply voltage of the board in order to program and debug the chip on the external board. 

    If you're still struggling, please upload the full schematics and layout of your board so I can take a look to see if everything looks right HW-wise.

    Best regards,

    Simon

  • Hi Simonr, 

    so, the problem was that my LED was inverted polarity.

    But what is important about this ticket and the answers you gave me;

    1. When using DK board (i am using pca10040) for SWD, the DK board will always be defined as the board 

    pca10040.h is likely chosen because you're using the chip on the DK which checks the BOARD_PCA10040) define in boards.h and uses the pca10040.h header file instead of your custom_board.h.

         So any changes, if needed, should be done in the pca10040.h.


    2. The connection pinout
         This is the connection that i used, powering my board externally:

    3. My custom design considered external LF clock oscillators, so i didn't need to modify the sdk_config.h

    Thats it, thanks a lot Simonr!

    Alanarf

Reply
  • Hi Simonr, 

    so, the problem was that my LED was inverted polarity.

    But what is important about this ticket and the answers you gave me;

    1. When using DK board (i am using pca10040) for SWD, the DK board will always be defined as the board 

    pca10040.h is likely chosen because you're using the chip on the DK which checks the BOARD_PCA10040) define in boards.h and uses the pca10040.h header file instead of your custom_board.h.

         So any changes, if needed, should be done in the pca10040.h.


    2. The connection pinout
         This is the connection that i used, powering my board externally:

    3. My custom design considered external LF clock oscillators, so i didn't need to modify the sdk_config.h

    Thats it, thanks a lot Simonr!

    Alanarf

Children
No Data
Related