RSS
Sort by » date activity ▼ answers views votes

38 questions

Tagged
  • x
30
views
1
vote
1
answer
Last activity 2017-12-01 18:22:53 +0200 by Electronics111

Program only works in SES and not standalone

Hi, I'm using blinky from the SDK12 as an example here with a nordic nrf51 DK (pca10028, onboard nrf51422) which I am using as a programmer with a custom board (with a nrf51822_XXAA). I can flash, verify etc fine ... (more)

31
views
1
vote
1
answer
Last activity 2017-10-23 22:37:11 +0200 by zolotiyeruki

How to compile SDK13 examples for nrf52832

For the last few months, I've been building code and testing it on an nRF52840 PDK. Our production hardware, however, will use the nRF52832, and so I need to compile my code against a different target, and program it ... (more)

147
views
1
vote
2
answers
Last activity 2017-08-31 15:43:31 +0200 by SørenHN flag of Denmark

Hard Fault when using bluetooth mesh examples

When programming the bluetooth mesh light control demo example found in the bluetooth mesh SDK, i get this error using J-Link RTT Viewer:

0> <t:          0>, main.c,  116, ----- BLE Mesh Light Control Server Demo -----
0> <t:       1391>, main.c ...
(more)

37
views
no
votes
no
answers
Last activity 2017-08-15 12:38:49 +0100 by zqclzz

Why does the hardfault "line_num=1436 , rem.c" occur?

Hello, dear Nordic employee,

MCU: 51822QFACA1 The using SDK is : SDK 7.2.0 The using SD is : s110_nrf51822_7.3.0_softdevice

There was one device (our product) runing into the hardfault state, and just only one device got the problem ... (more)

71
views
2
votes
1
answer
Last activity 2017-08-13 01:30:34 +0100 by Mariano

NRF52 SDK12 hardfault if secure bootloader present

Hi! For a custom board, I have my app working ok. So I wanted to add the dfu secure bootloader to my project. I Had no problem to do that, both app and bootloader start ok and I could download ... (more)

70
views
no
votes
no
answers
Last activity 2017-07-08 00:17:48 +0100 by Fabien Comte flag of France

sd_softdevice_enable / hardfault [closed]

Hello,

sd_softdevice_enable give me a hardfault every time. What can I do ?

Configuration: Jlink / Ozone Confirmed on 2 Sparkfun nRF52832 boards (nRF82832 AA rev 1 / SD 4.0.4)

64
views
no
votes
1
answer
Last activity 2017-07-04 08:52:42 +0100 by RK flag of Singapore

HardFault_Handler for Segger Embedded Studio?

Hej, I stumbled upon a linker error saying

Output/serial_pca10040 nrf52832_xxaa/Obj/hardfault_handler_gcc.o: In function `HardFault_Handler_Continue':
hardfault_handler_gcc.c:(.text.HardFault_Handler+0x30): undefined reference to `__StackTop'
hardfault_handler_gcc.c:(.text.HardFault_Handler+0x34): undefined reference to `__StackLimit'

which I solved by adding ... (more)

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

138
views
no
votes
1
answer
Last activity 2017-04-20 16:12:19 +0200 by Stian flag of Norway

Using I2C with two devices on App Timer gets Hardfault

Hello,

I have two devices sharing an I2C bus. These devices are the MAX86150 and the MLX90614. DMA is being used. I2C is running at 100 KHz.

After initializing both devices, the application timer is configured to interrupt every 10 ... (more)

509
views
1
vote
2
answers
Last activity 2017-03-29 23:40:44 +0200 by arthare

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)

59
views
no
votes
2
answers
Last activity 2017-03-21 11:01:11 +0100 by Kristin flag of Norway

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)

66
views
no
votes
2
answers
Last activity 2017-02-24 03:41:18 +0100 by zuchgi flag of China

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)

54
views
no
votes
1
answer
Last activity 2017-02-23 14:28:15 +0100 by Jørgen Holmefjord flag of Norway

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)

87
views
no
votes
no
answers
Last activity 2016-11-29 20:51:43 +0200 by Jan L

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)

188
views
7
votes
1
answer
Last activity 2016-11-15 13:41:38 +0200 by Petter Myhre flag of Norway

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)

113
views
no
votes
no
answers
Last activity 2016-10-03 14:02:32 +0100 by pablo

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)

101
views
5
votes
1
answer
Last activity 2016-07-31 13:49:26 +0100 by RK flag of Singapore

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)

305
views
3
votes
1
answer
Last activity 2016-06-16 15:15:25 +0100 by Kristin flag of Norway

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

I downloaded the SoftDevice then downloaded the DFU example "dfu_dual_bank_ble_s110_pca10028"

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

286
views
4
votes
1
answer
Last activity 2016-05-13 14:34:11 +0200 by Martin Børs-Lind flag of Norway

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)

363
views
no
votes
1
answer
Last activity 2016-05-12 20:03:55 +0100 by digitalnyx

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)

234
views
no
votes
2
answers
Last activity 2016-04-14 14:07:56 +0100 by kvrbek

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)

468
views
2
votes
1
answer
Last activity 2016-03-31 15:46:01 +0100 by D. Rea

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)

103
views
no
votes
no
answers
Last activity 2016-03-31 14:17:11 +0100 by qoboty

HardFault in gpiote handler

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

356
views
1
vote
1
answer
Last activity 2016-03-17 05:41:36 +0100 by Lucas Magasweran

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)

312
views
no
votes
1
answer
Last activity 2016-03-16 15:30:09 +0100 by Kristin flag of Norway

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
votes
1
answer
Last activity 2016-03-03 12:32:06 +0200 by Fabien Comte flag of France

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)

250
views
3
votes
1
answer
Last activity 2016-01-13 23:07:17 +0100 by Wojtek flag of Poland

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)

211
views
2
votes
2
answers
Last activity 2015-10-26 11:08:44 +0100 by Martin Børs-Lind flag of Norway

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)

449
views
2
votes
no
answers
Last activity 2015-10-19 16:34:32 +0100 by Beau R.

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)

821
views
1
vote
no
answers
Last activity 2015-10-09 21:05:16 +0100 by Beau R.

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)

Statistics

  • Total users: 25624
  • Latest user: Les Mcneil
  • Resolved questions: 11225
  • Unanswered questions: 3786
  • Total questions: 27708