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

nRF52 BLE app hangs on ble_stack_init()

I am experiencing an issue where the program hangs on one board, but not another.  I am able to program the Evaluation board (EV BT832AF) ok and run everything, but when I program a production board  (BT832AF) The program hangs.  (I am able to program and step through the code, so I'm pretty sure all the connections are good on both boards) I am programming them the exact same way, with the exact same files.  Just using VDD, GND, SWDIO and SWCLK wires connected to an nRF52-DK development board.    Are there any differences between the production BT832AF and the BT832AF included on the Development board that could cause this?

Here's a bit more detail on where it's hanging:   There's no error code being generated, it just goes into an infinite loop inside the ble_stack_init() function.  More specifically, right after the call "SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));"
Some research has lead me to believe that it's an issue with the NO_VTOR_CONFIG missing from preprocessor definitions, as the behavior is exactly what I'm expecting.  see this question on forum: https://devzone.nordicsemi.com/f/nordic-q-a/14360/ble_app_template-always-end-at-svc_handler/54827#54827      But I've added that, rebuilt and still have the issue.   
Any guidance would be much appreciated!

Versions & Hardware being used

nRF52 SDK  nRF5_SDK_15.2.0_9412b96

Project being used from SDK:  nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_uart\pca10040e\s112\ses

Segger Studio Release 4.12  Build 2018112601.37855

Windows Environment

Boards, Production Board ( BT832AF ) and Evaluation board (EV BT832AF).  being programmed through the nRF52 DK.

Programming output

Preparing target for download
Executing script TargetInterface.resetAndStop()
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘s112_nrf52_6.1.0_softdevice.hex’ to J-Link
Programming 2.3 KB of addresses 00000000 — 00000967
Programming 94.8 KB of addresses 00001000 — 00018b93
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Download successful
Downloading ‘ble_app_uart_pca10040e_s112.elf’ to J-Link
Programming 26.5 KB of addresses 00019000 — 0001fa2f
Programming 0.0 KB of addresses 0001fa30 — 0001fa87
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Download successful

Parents Reply Children
Related