# 172 questions

Tagged
• x
23
views
1
vote
1

## Hardware event handler

I know I should use the NRF_RADIO interrupt handler, but I can't. I'm using the bluetooth and then ... (more)

55
views
no
1

## Timed interrupt

Hello everyone,

I am unexperienced in coding that is why I am asking for your help and oppinions on creating timed interrupt. I am using nrf51822, s110. My goal is to send microcontroler to sleep while disabling all peripherals and ... (more)

53
views
2
2

## Adding new IRQn to vector table on NRF52/Cortex M4

Hi there,

I am currently wondering if the following is possible?

As stated by the Cortex M4 reference manual states that a system can have 200+ seperate handlers within the vector table. From reading through the NRF52832 datasheet it states ... (more)

56
views
1
vote
2

## GPIOTE interrupt not working with softdevice s130

I am using the template example for S130(works fine). I tried adding a simple Pin interrupt on the code but it didn't call the pin interrupt handler everytime I press the button. I believe I'm using some ... (more)

52
views
1
vote
1

## __isr_vector size

Hello,

I just had a look at the gcc_startup_nrf52.S file and now I wonder, what the reason might be for the huge amount of reserved interrupt slots? According to my math, there are 804 bytes reserved. If I have ... (more)

92
views
1
vote
1

## how to detect simultaneous gpio interrupt without high current consumption

nRF52832 has errata about gpiote as below.

3.29 [97] GPIOTE: High current consumption in System ON Idle mode


So I want to use PORT event for gpio interrupt, but PORT event cannot take multiple gpio interrupt.

Multiple gpio interrupt ... (more)

96
views
no
1

## Changing on_ble_evt interrupt priority

Working with: examples/ble_peripheral/ble_app_uart . I would like to change on_ble_evt priority level so that UART IRQ handler has lower priority then softdevice event dispatching routine.

So far I checked that there are following IRQ priority levels:

• UART = 6 (or ...
(more)

42
views
no
no

## Attaching Interrupt increases power to 200uA [closed]

I have a very simple test script which enables a BLE service (only the Generic Access and Attribute), advertises and waits for connection. It also sets four pins to input pins. I am using the Arduino environment and a MDBT40 ... (more)

79
views
no
no

## [nRF52832] Unable to configure InterruptIn + PullDown on P0_1

Hello !

I am currently working on a custom board on which I don't need 32.768kHz. I want to use P0_1 as an interruption pin connected to a pushbutton. The button is connected to VCC so when it's ... (more)

83
views
2
2

## NVIC check if IRQ is enabled

Hi,

as far as I see, I can enable or disable external interrupts using NVIC_EnableIRQ() and NVIC_DisableIRQ. Is there a method to check if a specified external interrupt is currently enabled or disabled?

Is this done by NVIC_GetActive()?

Thanks, Tamas

59
views
no
1

## i could not reset the gpiote pin interrupt

i am using nrf51822 s110 sdk7.2.0

1.i had initialized and configure the gpiote interrupt before mainloop for (pin no 10). 2.i had wrote the process on interrupt handler. 3.got the external interrupt successfully. 4. clear ... (more)

205
views
2
2

## Getting lots of NRF_ERROR_RESOURCES on notifications

We have an external interrupt every 4ms that collects one 24-bit sample from an analog front end via SPI. After Collecting 6 samples (18 bytes) we send a notification with the data which should then be every 4ms * 6 = 24ms ... (more)

56
views
no
1

## LPCOMP and ANADETECT with built-in temperature sensor

I an trying to wake the chip and record the temperature readings when temperature reaches a certain threshold (eg: 80 deg C), can this be achieved using built-in temperature sensor? Has anyone successfully implemented something similar?

Regards, Sid

83
views
2
2

## GPIOTE freezes on pin value change

I currently have a problem with the gpiote setup. I'm using it to detect an interrupt from mma8652 accelerometer.

here is an annotated version with the key portions of the code.

pin_event_handler()
{
NRF_LOG_INFO("\r\n PIN 26 triggered \r ...
(more)

144
views
1
vote
1

## Clock control in RTC interrupt

Hi all!

I am developing an nRF52 application that uses RTC interrupt to measure an ADC value every 100 ms. Depending on the measured value the chip shall either go back to sleep or execute an algorithm. We are in ... (more)

219
views
2
1

## Interrupt Vectors REMAP

How can I relocate or manage the transition between the bootloaders interrupt vector map and the applications interrupt vector map which will be at different addresses in FLASH. On the M3/M4, you can remap this but presumably on the ... (more)

110
views
no
1

## Hardfault when using both UART and GPIOTE, how can I solve this problem?

Hello,

I feel like this question has an answer similar to this question, but I can't seem to get it working https://devzone.nordicsemi.com/questi...

I am using the nrf51422 chip on a board I designed myself and ... (more)

191
views
no
1

I have enabled Timer 2 with 31250Hz frequency. I wanted to call an interrupt after 10ms, ie 312 ticks for the timer. But the interrupt is not getting called, I have spent some time finding the problem, but couldn't ... (more)

65
views
1
vote
1

## Does the NFC Type 4 library globally disable interrupts at any point?

Does the NFC library globally disable interrupts at any point? We're trying to track down an issue where our code occasionally misses an I2C event during NFC read/write.

749
views
1
vote
2

## Problem using UART and radio in ESB mode on nRF24LE01.

Hi

for few days I seem to got stack in using together UART and radio on nRF21LE01 in ESB mode and I suspect irq_flags = hal_nrf_get_clear_irq_flags(); to be cause of my problem.

What I want to achieve is to communicate to ... (more)

244
views
no
no

## GPIOTE simultaneous interrupts

nRF52, SDK12.1, Eclipse, gcc 5.4.1, FreeRTOS, no soft-device.

I am having a problem with GPIOTE. I have six interrupts programmed on six different pins. As long as the signals do not transition at the same time, the ... (more)

359
views
4
2

## why should I clear event in the interrupt handler

as far as I am concerned, when I use PPI or SHORTS without interrupts, I DON'T need to clear the corresponding event registers, and task will be triggered once the event is generated. But when I enable interrupt, I ... (more)

740
views
6
2

## programing and interrupts on custom PCB using nrf51822

Hey,

I am designing a custom PCB with the nrf51822. I would like to use the reference layout that Nordic provides, specifically nrf51x22_qfaa. My project involves reading an accelerometer and gyroscope via TWI and transmitting certain measurements via BLE. I ... (more)

666
views
no
no

## Disable interrupts

Hi, I want to do this cycle with GPIO without interrupting it on NRF51 with BLE softdevice:

1) PIN1 to HIGH level 2) read value of PIN2 3) PIN1 to LOW level

Repeat this 25 times (between cycles interrupts can ... (more)

49
views
no
no

## nRF24LU1 wakeup interrupt [closed]

Hi, Nordic I see two interrupts:

#define USB_WU_ISR()    void usb_wu_isr(void)   interrupt INTERRUPT_USB_WU  // USB wakeup interrupt (0x5b)
#define WU_ISR()        void wu_isr(void)       interrupt INTERRUPT_WU      // Internal wakeup interrupt (0x6b)


maybe WU_ISR() is one function USB Dongle auto resume itselft, now I ... (more)

80
views
no
1

## Call SOC Library functions with Sofdevice disabled

Hi there,

Is it possible to call SOC library functions before calling sd_softdevice_enable()?

In particular, i want to set up my interrupts with sd_nvic_SetPriority() and sd_nvic_EnableIRQ() before enabling the softdevice with sd_softdevice_enable(). This is because sd_softdevice_enable() takes quite a while ... (more)

122
views
1
vote
1

## NRF51 with interrupts

Hello developers, I am struggling badly to use interrupt in my application. I am using softdevice S130 and ble_nus, ble_bas and ble_hrm services. All I want is to trigger a timer on interrupt event by pressing a button. I have ... (more)

511
views
no
1

## GPIOTE IN_EVENT Current

Hello,

I am currently using the GPIOTE Driver (nrf_drv_gpiote) to detect external interrupts from a sensor on a custom board using the nRF51822 with the S130 v2.0.0 SoftDevice and SDK 11. I currently have the interrupts setup to ... (more)

93
views
no
1

## Need NRF8001 to advertise while Microcontroller asleep.

I'm using an NRF8001 with an ATMEL ATMEGA 328P (the microcontroller from an Arduino). I need the microcontroller to go to sleep, but still allow the BLE chip to advertise and wake the microcontroller upon connection. It seems as ... (more)

88
views
no
no

## Nrf24le1 gpio interrupt falling edge

I want to use gpio interrupt int1,falling edge. I can trigger success, but one falling edge will trigger many times. Do i config wrong? GPIO_INT.rar

#### Statistics

• Total users: 24904
• Latest user: Kristal Fielder
• Resolved questions: 10659
• Total questions: 26081

## Recent blog posts

• ### How to build continuous integration and delivery process for embedded SW development

Posted 2017-10-03 11:01:29 by Yaniv Nis
• ### Multiple channels in RTT

Posted 2017-09-29 11:51:52 by Krzysztof Zaraska
• ### 6 Things to Know about Bluetooth Beacons

Posted 2017-09-22 08:27:00 by Rose Martin
• ### Creating a Keil project for a Bluetooth Mesh example (Updated for 0.10.0)

Posted 2017-09-19 12:08:11 by Kristian Skordal
• ### Using millis() like in Arduino.

Posted 2017-09-18 11:58:04 by schef

## Recent questions

• ### can't program nrf52832ciaa

Posted 2017-10-17 18:34:31 by luckxiaoer
• ### nRF52840 and others " printf()"

Posted 2017-10-17 18:30:44 by ToasTer86
• ### Help with breakpoints on Eclipse with sdk14 please

Posted 2017-10-17 18:18:00 by Tony
• ### Maximum power consumption

Posted 2017-10-17 18:15:05 by Ruediger
• ### Advertising restart after a disconnect event

Posted 2017-10-17 18:14:18 by Yatekii