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

IRQ Execution in nRF51

Hello

am using Seggar Embedded Studio for ARM V3.4 and nRF_SDK 12.3.0.

I am using nRF51 DK

I am trying to understand interrupts and interrupt handlers.

The interrupt request for Watchdog timer (i.e. void WDT_IRQHandler(void)) is not getting executed. The control is not going to WDT_IRQHandler.

I did the following attempts to verify if the control was going to WDT_IRQHandler()

1>I tried to switch on the LED

2>I tried to switch off the LED

3>Only a printf() statement inside WDT_IRQHandler() (in debug mode)

The above attempts did not work.

I have defined the following Preprocessor Definitions:-

NO_VTOR_CONFIG

BLE_STACK_SUPPORT_REQD

NRF51422

BOARD_PCA10028

SWI_DISABLE0

NRF51

I have attached main.c file and sdk_config.h files. Please let me know how can I achieve it. 

.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
/* This example shows functionality of the Watchdog. The watchdog will reset the IC every 3 seconds if
* it is not reloaded by pressing Button 1. LED 2 will blink during startup, which indicates that the
* watchdog has restarted the IC.
*/
#include <stdbool.h>
#include "nrf.h"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SDK_CONFIG_H
#define SDK_CONFIG_H
// <<< Use Configuration Wizard in Context Menu >>>\n
#ifdef USE_APP_CONFIG
#include "app_config.h"
#endif
// <h> nRF_Drivers
//==========================================================
// <e> CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver
//==========================================================
#ifndef CLOCK_ENABLED
#define CLOCK_ENABLED 1
#endif
#if CLOCK_ENABLED
// <o> CLOCK_CONFIG_XTAL_FREQ - HF XTAL Frequency
// <0=> Default (64 MHz)
// <255=> Default (16 MHz)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0