Hi,
I'm on OSX, and I'm having problems where the first service calls I make on my own device fails but work fine on the second generation Nordic development board.
I am pretty sure I'm compiling my code against the headers matching the softdevice (i.e. the ones that came in the ZIP with the softdevice) but I have problems in the first softdevice calls.
My device only has a 16mhz clock, so I've set to NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM, but In the process of trying to figure out what's going on I noticed that verifybin fails which seems like a bad sign? My hypothesis is that I'm not able to correctly flash the softdevice for some reason.
Do these commands look OK for flashing the s110 firmware to a nRF51822?
$ JLinkExe -device nrf51822 -if swd -speed 4000
SEGGER J-Link Commander V4.94i ('?' for help)
Compiled Dec 8 2014 19:04:27
Info: Device "NRF51822_XXAA" selected.
DLL version V4.94i, compiled Dec 8 2014 19:04:20
Firmware: J-Link V9 compiled Nov 28 2014 09:34:59
Hardware: V9.00
S/N: 269302235
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
VTarget = 3.287V
Info: Found SWD-DP with ID 0x0BB11477
Info: Found Cortex-M0 r0p0, Little endian.
Info: FPUnit: 4 code (BP) slots and 0 literal slots
Cortex-M0 identified.
Target interface speed: 4000 kHz
J-Link>w4 4001e504 2
Writing 00000002 -> 4001E504
J-Link>w4 4001e50c 1
Writing 00000001 -> 4001E50C
J-Link>sleep 100
J-Link>loadbin ../../s110_nrf51822_7.1.0/s110_nrf51822_7.1.0_softdevice.hex, 0
Downloading file [../../s110_nrf51822_7.1.0/s110_nrf51822_7.1.0_softdevice.hex]...Info: J-Link: Flash download: Flash programming performed for 2 ranges (84992 bytes)
Info: J-Link: Flash download: Total time needed: 0.663s (Prepare: 0.048s, Compare: 0.016s, Erase: 0.000s, Program: 0.589s, Verify: 0.006s, Restore: 0.002s)
O.K.
J-Link>verifybin ../../s110_nrf51822_7.1.0/s110_nrf51822_7.1.0_softdevice.hex, 0
Loading binary file ../../s110_nrf51822_7.1.0/s110_nrf51822_7.1.0_softdevice.hex
Reading 237504 bytes data from target memory @ 0x00000000.
Verify failed @ address 0x00000000.
Expected 3A read C0J-Link>