This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Example Blinky is running with HardFault

Hi

I'm trying to build  blinky example (from SDK17.0.2)  to run it on nRF52833DK.

The board is running correctly if I download the hex comes with SDK but failed if download with compiled hex

I use segger to build it and no error is shown

Building ‘blinky_pca10056’ from solution ‘blinky_pca10056’ in configuration ‘Debug’
1> Assembling ‘thumb_crt0.s’
2> Compiling ‘nrf_log_frontend.c’
3> Compiling ‘nrf_log_str_formatter.c’
4> Compiling ‘boards.c’
1> Compiling ‘app_error.c’
2> Compiling ‘app_error_handler_gcc.c’
3> Compiling ‘app_error_weak.c’
1> Compiling ‘app_util_platform.c’
4> Compiling ‘nrf_assert.c’
2> Compiling ‘nrf_atomic.c’
1> Compiling ‘nrf_balloc.c’
3> Compiling ‘nrf_fprintf.c’
4> Compiling ‘nrf_fprintf_format.c’
2> Compiling ‘nrf_memobj.c’
1> Compiling ‘nrf_ringbuf.c’
3> Compiling ‘nrf_strerror.c’
4> Compiling ‘nrfx_atomic.c’
2> Compiling ‘main.c’
3> Assembling ‘ses_startup_nrf52840.s’
1> Assembling ‘ses_startup_nrf_common.s’
3> Compiling ‘system_nrf52840.c’
1> Generating linker script ‘blinky_pca10056.ld’
1> Linking blinky_pca10056.elf
Build complete

I also tried to change the definition to BOARD_PCA10100 but have no difference.

I guess something wrong in my segger configuration but have no idea about this

thank you

Related