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

ble_app_hrs example crashes on startup

Hello, I am trying to get the PCA10001 evaluation board going with BLE, and am trying the ble_app_hrs example from the SDK as a start. I am developing on Mac OS with Eclipse and GCC, and have been able to run apps without the SoftDevice with no problems.

I have now loaded the BLE SoftDevice s110_nrf51822_5.2.0_softdevice.hex following the instructions at www.funwithelectronics.com/ and www.segger2.com/index.php. (I tried the 6.0.0-1.alpha first and could not get that to work at all, but that is another story.)

I then tried to run the ble_app_hrs example, but it crashes partway through startup while trying to start timers, with the following stacktrace in GDB (via Eclipse):


ble_app_hrs [GDB Hardware Debugging]	
	ble_hrs_gcc_s110_xxaa.out	
		Thread [1] <main> (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)	
			0xfffffffe	
			<signal handler called>() at 0xfffffff1	
			0x11488	
			<signal handler called>() at 0xfffffff9	
			NVIC_SetPendingIRQ() at core_cm0.h:558 0x1a8dc	
			timer_list_handler_sched() at app_timer.c:324 0x1af92	
			timer_start_op_schedule() at app_timer.c:786 0x1b6dc	
			app_timer_start() at app_timer.c:1,026 0x1baac	
			application_timers_start() at main.c:517 0x14d7c	
			main() at main.c:765 0x15284	

My guess was that the timer code might be conflicting with some resources reserved for the SoftDevice, but it does not make sense that sample code should have this problem. Also, strangely, if I then stop it and restart, it seems to start up successfully, everything works fine as far as I can tell, and I can connect to it from a test app on my iPhone.

What is going on here?

Parents Reply Children
No Data
Related