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
  • Yes, I was aiming at the crystals, but they seem to be okay indeed. Thank you for the update.

    Have you configured the blinky example to use P0.11 instead of the LEDs configured in pca10040.h (P0.17-P0.20)? 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.

    Can you show me how your board custom board is connected to the NRF52DK debugger? Please use the picture below as reference when connecting your custom board to a DK's debugger.

    Best regards,

    Simon

Reply
  • Yes, I was aiming at the crystals, but they seem to be okay indeed. Thank you for the update.

    Have you configured the blinky example to use P0.11 instead of the LEDs configured in pca10040.h (P0.17-P0.20)? 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.

    Can you show me how your board custom board is connected to the NRF52DK debugger? Please use the picture below as reference when connecting your custom board to a DK's debugger.

    Best regards,

    Simon

Children
  • Hi Simonr,


    Have you configured the blinky example to use P0.11 instead of the LEDs configured in pca10040.h (P0.17-P0.20)?

    I believe you are referring to these lines of pca10040.h right? 

    // LEDs definitions for PCA10040
    #define LEDS_NUMBER 4

    #define LED_START 17
    #define LED_1 17
    #define LED_2 18
    #define LED_3 11
    #define LED_4 20
    #define LED_STOP 20

    I changed LED_1 to 11, nothing happened on my board. 

    pca10040.h is likely chosen because you're using the chip on the DK

    Yeah, it makes sense hehe. Slight smile

    Can you show me how your board custom board is connected to the NRF52DK debugger?

    I am using this configuration, except that i am not shorting VDD and VTG, I am just using VTG. Couse, i am using external supply for my board, and i read that shorting it will make the DK power my board, but with 5V, and i need 3.3V.

    Thanks again! 

  • #define LED_3 11

    Actually i changed LED_3 as you can see, but again, nothing happened =/

Related