RSS
Sort by » date activity ▼ answers views votes

180 questions

Tagged
  • x
69
views
no
votes
1
answer
Last activity 2017-12-07 12:21:49 +0200 by Martin Børs-Lind flag of Norway

How to trigger ADC from a timer interrupt, while generating PWM with the same timer and while using BLE on nRF51822?

Hi. I am a newbie in Nordic chips, quite knowledgeable in Atmel AVR, though. I'm working with an nRF51822 on a board like this https://www.waveshare.com/wiki/BLE400. I use the Mbed environment.

What I'm trying ... (more)

67
views
1
vote
1
answer
Last activity 2017-11-27 10:13:26 +0200 by David Edwin

Softdevice and interrupt lost

Hi everyone, My configuration:

  • nrf52832 microcontroller
  • Softdevice S132 V4.0.2
  • Nordic SDK 13.0
  • IDE: Eclipse

I'm working with a "Stand-alone can bus controller" connected to nrf52832 with SPI interface. The CAN controller informs nrf52 micro, via an ... (more)

81
views
1
vote
2
answers
Last activity 2017-11-26 23:23:31 +0200 by Emil Lenngren flag of Sweden

Extending RTC beyond 24 bits

I am looking to extend the RTC beyond 24 bits using the Overflow interrupt. The code in the rtc handler would look like:

static void rtc_handler(nrf_drv_rtc_int_type_t int_type)
{
    if (int_type == NRF_DRV_RTC_INT_OVERFLOW)
    {
        ticks_overflow++;
    }
}

And the code to read the extended timer ... (more)

43
views
3
votes
1
answer
Last activity 2017-11-20 15:46:11 +0100 by Torbjørn Øvrebekk

Do interrupts needs to be disabled before erasing / writing flash?

The NVMC documentation states the CPU is halted while the NVMC is writing or erasing flash. If the CPU is halted, then interrupts shouldn't need to be disabled during flash operations, correct? I'm asking because other micros will ... (more)

56
views
no
votes
1
answer
Last activity 2017-11-17 14:52:14 +0200 by Torbjørn Øvrebekk

How to achieve low interrupt latency from sleep ?

Hello, i'm using a nRF52840 on a PCA10056 and want to wake up from __WFE() with a minimum delay. When i'm using the debugger, i achieve a low latency but without the debugger, the latency is increased by ... (more)

55
views
2
votes
no
answers
Last activity 2017-11-14 17:05:06 +0200 by Sansei

Nrf51822 stops handling GPIOTE->PORT interrupts

Hi engineers, Here we are facing a critical problem in which the NRF51822 stops handling/processing the GPIOTE->PORT interrupts after some days good working. This problem is occurring randomly whereby our system will stop working completely. Then, we have ... (more)

104
views
no
votes
no
answers
Last activity 2017-11-13 16:38:56 +0200 by Kadex

How can the first interrupt be missed when BUTTON_PULL is set to NRF_GPIO_PIN_PULLDOWN?

I'm using the ble_app_multilink_central example app. In the pca10400.h I changed #define BUTTON_PULL to NRF_GPIO_PIN_PULLDOWN.

The problem is that the first pin interrupt (from low to high) is missed on all the ports. After this the interrupt works ... (more)

114
views
2
votes
1
answer
Last activity 2017-11-11 17:16:33 +0200 by endnode

Problem with Event and Interrupt in NRF52 !

Hi Forum! I have to understand NRF52 chip for my job! I used to work with STM32 before. It has "Interrupt" (e.g when I receive one byte via SPI, It generates one "SPI_Rx_Interrupt". I can implement my code in ... (more)

59
views
1
vote
1
answer
Last activity 2017-10-16 15:54:20 +0200 by Hung Bui

Hardware event handler

Hello, I need to connect an event handler (i.e. a function) to two NRF_RADIO events: -NRF_RADIO->EVENTS_ADDRESS -NRF_RADIO->EVENTS_READY

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

71
views
no
votes
1
answer
Last activity 2017-10-10 11:58:33 +0200 by endnode

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)

89
views
2
votes
2
answers
Last activity 2017-09-28 14:32:33 +0200 by jallister

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)

90
views
1
vote
2
answers
Last activity 2017-09-13 09:46:19 +0200 by Denver

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)

62
views
1
vote
1
answer
Last activity 2017-09-06 11:16:18 +0200 by David García Polo

__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)

144
views
1
vote
1
answer
Last activity 2017-09-04 15:54:56 +0200 by Jørn flag of Norway

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)

130
views
no
votes
1
answer
Last activity 2017-09-01 16:17:10 +0200 by Torbjørn Øvrebekk

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)

46
views
no
votes
no
answers
Last activity 2017-08-30 17:55:01 +0200 by gkitteridge

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)

88
views
no
votes
no
answers
Last activity 2017-08-23 13:50:23 +0100 by luoman

[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)

131
views
2
votes
2
answers
Last activity 2017-08-03 12:59:01 +0200 by Turbo J

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

72
views
no
votes
1
answer
Last activity 2017-07-27 12:45:06 +0200 by Kristin flag of Norway

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)

297
views
2
votes
2
answers
Last activity 2017-07-15 05:50:13 +0200 by JD

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)

67
views
no
votes
1
answer
Last activity 2017-07-07 14:50:54 +0100 by Jørgen Holmefjord flag of Norway

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

99
views
2
votes
2
answers
Last activity 2017-07-07 09:47:31 +0200 by Jørgen Holmefjord flag of Norway

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)

175
views
1
vote
1
answer
Last activity 2017-06-30 12:35:48 +0200 by Torbjørn Øvrebekk

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)

344
views
2
votes
1
answer
Last activity 2017-05-24 16:03:31 +0200 by Øyvind

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)

123
views
no
votes
1
answer
Last activity 2017-04-25 12:29:00 +0200 by Jordi

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)

218
views
no
votes
1
answer
Last activity 2017-04-09 08:41:07 +0200 by Insaf

Timer interrupt handler not getting called, please help

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)

75
views
1
vote
1
answer
Last activity 2017-03-31 16:11:08 +0100 by CurtisHx

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.

759
views
1
vote
2
answers
Last activity 2017-03-22 08:12:32 +0100 by mahesh

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)

284
views
no
votes
no
answers
Last activity 2017-01-27 21:16:26 +0200 by acv

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)

406
views
4
votes
2
answers
Last activity 2017-01-23 03:02:54 +0200 by Emil Lenngren flag of Sweden

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)

Statistics

  • Total users: 25660
  • Latest user: dlouver
  • Resolved questions: 11261
  • Unanswered questions: 3818
  • Total questions: 27801