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

Error when Loading program

I am very new to ARM controllers.  All of my experience is with Atmel family, which I've been using for years.

I just got the nRF52 Development board and have loaded several of the example programs.  All works fine.

I wanted to set one pin (pin 5) as output just to see how it works.  I used the blinky example modified as

follows:

int main(void)
{
    /* Configure board. */
    bsp_board_init(BSP_INIT_LEDS);
 
  nrf_gpio_cfg_output(0x5);
    /* Toggle LEDs. */
    while (true)
    {
        for (int i = 0; i < LEDS_NUMBER; i++)
        {
            bsp_board_led_invert(i);
      nrf_gpio_pin_set(0x5);
            nrf_delay_ms(500);
      nrf_gpio_pin_clear(0x5);
        }
    }
}
The program builds but when I try to load I get an error that has something to do with trying to read @ 0x20000004
FLAGS AHB_AP.  It also says Internal DDL error.  I erased the prior program using nRFgo and tried to load with the same result.
What am I doing wrong?
Thank you for your help.
Parents Reply Children
No Data
Related