This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

blinking a led using programmer

Hello, I use a SparkFun programmer to flash a nRF52832, once I flash my board (with the program below), I type in my terminal : "JLinkExe -device nRF52 -speed 4000 -if SWD".

I use SDK v12.1.0, my toolchain is gcc 4_9_3.

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "bsp.h"
#include "nrf.h"
#include "system_nrf52.h"
#include "nrf_delay.h"

#define ENABLE_SWD 1

static const uint8_t leds_list[LEDS_NUMBER] = { 9, 7, LED_3, LED_4 };

int main(void)
{
    /* Configure LED-pins as outputs. */
    LEDS_CONFIGURE(LEDS_MASK);
    while (true)
    {
        for (int i = 0; i < LEDS_NUMBER; i++)
        {
            LEDS_INVERT(1 << leds_list[i]);
            nrf_delay_ms(500);
        }
    }
}
/**
 *@}
 **/

Can someone understand why the LED didn't blink in the SparkFun programmer?

Parents
  • it's a SoC that combines an ARM Cortex-M4F microprocessor, it provides access to all of the chip’s I/O pins. I use the blinky example of the sdk, and I set the led pin to the pin 7 (which corresponds to the LED in the sparkFun board.

  • I dont think so, because in the explanation given in the following link : infocenter.nordicsemi.com/index.jsp We explain that we can use one of the two connector (P19 or 20) to debug,and for the Debug out header (P19), the Interface MCU will detect the supply voltage on the mounted shield and program/debug the shield target. That's mean that there are not connected, no? otherwise, the VTG and GND Detect pins should also be connected to the external board? or other specific pins in the board?

Reply
  • I dont think so, because in the explanation given in the following link : infocenter.nordicsemi.com/index.jsp We explain that we can use one of the two connector (P19 or 20) to debug,and for the Debug out header (P19), the Interface MCU will detect the supply voltage on the mounted shield and program/debug the shield target. That's mean that there are not connected, no? otherwise, the VTG and GND Detect pins should also be connected to the external board? or other specific pins in the board?

Children
No Data
Related