# 29 questions

Tagged
• x
368
views
1
vote
2

## nRF bootloader runs into HardFault

I'd like to run a softdevice application with OTA support on a RIGADO BMD-200 Evaluation board. I've successfully flashed the softdevice, the app, and the rigado bootloader, with rigado's program.py from the rigado bootloader-tools.

Now I ... (more)

30
views
no
2

## hardfault connection parameter update

Hi,

My NRF52832 runs into the hardfault handler when the sd_ble_gap_conn_param_update() function is called.

I copied the BLE code from the ble_app_template_pca10 project. When I run the code in that project there is no problem, but now the code is ... (more)

44
views
no
2

## Frequently clicking the button causes HARDFAULT

SDK: 13.0.0.0-1.alpha example ： ble_app_hrs_freertos

I am developing a product, referring to the “ble_app_hrs_freertos” example, when I tested my functions found a serious problem, frequent click on the button will lead to HARDFAULT, and did not find ... (more)

31
views
no
1

## Intermittent HardFault crash in timer_list_remove

I am currently using SDK 12.1.0 and experiencing intermittent HardFault crashes in timer_list_remove() with the stack indicating the origin being a SWI0_IRQHandler call.

In order to minimise race-conditions, timing-windows, need for critical sections etc. I am using the ... (more)

52
views
no
no

## Hardfault Compiler error on nRF52 ANT Broadcast Tx example

Hi, I am trying to compile the ANT Broadcast Tx Example from the latest nRF5 SDK v12.1.0 (../examples/ant/ant_broadcast/tx), but I get the following 3 error messages with an unmodified example code:

Compiling hardfault_handler_keil.c

• expected ...
(more)

115
views
7
1

## No return value for sd_ble_gatts_hvx()

Hi All,

I have a problem with the function sd_ble_gatts_hvx(). I have no return value when i call this function and i don't understand why ?

I have a function where i update a battery level value (uint8_t) and i ... (more)

81
views
no
no

## Gazell Flywheel TIMER2_IRQHandler HardFault

Problem:

We trigger HardFaults reproducibly. By manually unwinding the stack we have traced the source of the error back to the TIMER2_IRQHandler in Gazell. We can see that the TIMER2_IRQHandler reads a callback pointer that sometimes is NULL, but no ... (more)

80
views
5
1

## Using sd_ble_gatts_hvx() in timer1 interrupt service cause the hardfault

Condition: nRF52, SDK11,s132, SDS v2.0. Using the sd_ble_gatts_hvx() in timer1 interrupt service(timer1 interrupt priority is set to level 3) will result in hardfault. While, using the sd_ble_gatts_hvx() in main loop will not cause any error. Why? How ... (more)

256
views
3
1

## DFU using BLE

Hello all,

I am trying to update my firmware using BLE peripheral. I followed the instructions in this [tutorial] (http://devzone.nordicsemi.com/tutoria...)

Then I am trying to connect ... (more)

175
views
3
1

## Can ble_nus_string_send() be called from a TWI callback?

Calling ble_nus_string_send() from within a TWI callback (case NRF_DRV_TWI_EVT_DONE) is performing a reset on my PCA10028 (nRF51422). It works fine from the main loop.

Am I right in assuming that BLE operations cannot be issued from such callbacks? But on ... (more)

220
views
no
1

## AES ECB with Softdevice active

I am trying to use the ECB encryption mechanism and had it working perfectly well on the 11.0.0 alpha SDK. With the release of 11.0.0 it now hardfaults ( NRF_ECB->TASKS_STARTECB = 1) when the softdevice is active ... (more)

200
views
no
2

## nrf51422 hardfault when disabling gpiote task

Hi everybody!

Im trying to implement slave spi to bluetooth bridge.

In short, when cs line goes low, i want that one handshake line automaticaly go in busy (high) state (nBLE_RTR_PIN), and i did that througt ppi (note that SPI_nCS_INT_PIN ... (more)

309
views
2
1

## nRF52 Hard Faults on Stack Push

I'm debugging on an nRF52832 (nRF52-DK, non-preview) using the ARM GCC toolchain and GDB under Eclipse on Ubuntu 14.04LTS, set up following the devzone tutorial.

At various points, the processor jumps to the HardFault_Handler when plain-vanilla function calls ... (more)

67
views
no
no

## HardFault in gpiote handler

when I call sd_power_gpregret_set in gpiote handler function ,I got HardFault, why?

278
views
1
vote
1

## Immediate HardFault on custom nRF52832 board

I am trying to port blinky_blank (no SoftDevice) to my target and started by creating a custom_board.h header file with correct GPIO pins for the LEDs and duplicating blinky_blank_pca10040 armgcc Makefile project. The project flashes and runs just fine ... (more)

244
views
no
1

## N52832 hardfault after first branch.

I use eclipse IDE as a builder. My toolchain is arm-none-eabi 5.2.0. Compilation is for N52832 processor. I imported *.ld script files and startups from nRF sdk.

During assembly stepping in SystemInit my program goes to __Vector at ... (more)

1k
views
no
1

## sd_softdevice_enable hardfault [closed]

Hello,

sd_softdevice_enable falls in hardfault. I have no 32.768 KHz crystal but is set lfclk with NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM.

I'm running my application on a custom board with a nRF52, S132 SD 2.0.0 alpha 7, jling debug over ... (more)

223
views
3
1

## Using SPI after disable SD

Hello,

I have got a problem with use SPI. I get hard fault after call spi_master_open(), exactly when sd_nvic_ClearPendingIRQ function is call. This situation is so specific because i use SD at the begining and after that i disable it ... (more)

144
views
2
2

## Hardfault sd_ble_gatts_hvx - Custom Characteristic [closed]

I have been struggling with the custom characteristic implementation. I have followed the great tutorial on custom service that is online but there is really no doc or information on the characteristic part of the implementation.

I have tried to ... (more)

358
views
2
no

## Hardfault - nrf51 [closed]

I'm having a weird hardfault and, I can't make sense of it. Here's what I do know: nrf sdk 9.0.0; nrf51422 on a dk; I have RTC1, SPI0, and TWI1 enabled (also a uart for ... (more)

609
views
1
vote
no

## hardfault debugging

I'm am trying to figure out what is causing the hardfault in my code. That question is here: https://devzone.nordicsemi.com/questi...

However, this question is more about understanding how to pull from the stack registers that reflect ... (more)

566
views
2
1

## Hardfault - priority levels check out

I'm running into a hardfault. I perform some initialization and enter a main loop. At the end of the main loop, I put the soft device into sleep mode and wait for an interrupt. Upon interrupt, the code loops ... (more)

260
views
1
vote
2

## <time.h> clock() HARD FAULT

Trying to see how much time my code consumes, I tried the naive approach, calling clock() in the beginning and at the end and comparing the values.

But when I include clock() on my code, it just breaks. The function ... (more)

374
views
2
2

## nRF51822 GCC Eclipse HardFault in SystemInit

Hello all,

I have migrated a project that was working well (on custom hardware) in Keil to gcc/Eclipse. I followed all the instructions on this site:

https://devzone.nordicsemi.com/tutorials/7/development-with-gcc-and-eclipse/

and except for a few little ... (more)

249
views
1
vote
1

## HardFault when setting RAM rentention

Hi All,

I have this strange problem with setting the RAM rentention. This code used to work fine on my old PCB but I have made a new PCB which is almost identical to the last one. Aslo writing the ... (more)

540
views
3
2

## What could explain a HardFault when entering in critical region?

Hello,

We are developing an application which is using the app_scheduler (especially to put events etc.)

It seems that sometimes (very rarely) we detected a Hard Fault when the app_scheduler is calling the CRITICAL_REGION_ENTER() macro (into the app_scheduler.c). We ... (more)

616
views
2
1

## sd_app_evt_wait() cause HardFault_Handler

Hi,

I tried to run example: ble_app_multilink_central_s120_pca10028 but application goes to HardFault_Handler when it reaches sd_app_evt_wait() (in power_manage() function). I also tried to run other example for softdevice s110 (ble_app_hrs_s110_pca10028) but result was the same.

Generally I don't use ... (more)

214
views
1
vote
1

## keil stop hardfault

I'm running example apps from the SDK on a PCA10028. When debugging in Keil uVision, I find that I can only stop the code once. The second time I try to stop the code I always end up at ... (more)

409
views
no
1

## nRF51822 twi hard fault [closed]

Hi,

I've an HardFault, the program crash to the HardFault service routine at this row of the twi_hw_master.c:

--> NRF_PPI->CH[0].EEP = (uint32_t)&NRF_TWI1->EVENTS_BB;

This appens after the call twi_master_init();

The same code runs well in the ... (more)

#### Statistics

• Total users: 17572
• Latest user: kelprowess
• Resolved questions: 8934
• Total questions: 21002

## Recent blog posts

• ### Logging enabled by default in SDK Bluetooth examples

Posted 2017-03-29 11:27:02 by Håvard
• ### Monitor Mode Debugging with J-Link and GDB/Eclipse

Posted 2017-03-29 05:56:12 by Daniel Veilleux
• ### Getting started with Nordic's Secure DFU bootloader, a step by step guide

Posted 2017-03-20 17:13:52 by Hung Bui
• ### From Nordic UART Service to MicroPython using PolyMCU and Gattlib

Posted 2017-02-27 16:40:00 by Olivier
• ### Throughput and long range demo

Posted 2017-02-28 16:48:25 by Ole Bauck

## Recent questions

• ### Buy FX CBD Vape Oil

Posted 2017-03-31 00:27:34 by Heath Fisken
• ### DFU buttonless + stock secure bootloader

Posted 2017-03-31 00:17:55 by ypearson