I was trying to compile the example code(nRF51 SDK8.0) for ANT and flash to my nRF51DK(pca10028) board, but the example code was not working on my board. I tried compiling and flashing multiple example codes, including ANT_HRM, ANT_BICYCLE_PWR, ANT_BICYCLE_COMB_SPD_CAD, and ANT_BROADCAST, and none of them were functional. I am using a Samsung Galaxy Note4(SM-N910H) phone with ANT+ Plugin Sampler app for sniffing.
Following(devzone.nordicsemi.com/.../), I have previously set up gcc in OSX and have successfully compiled example code for BLE and flashed on my nRF51DK(pca10028) board. The example code for BLE was working fine!
The SDK and Softdevice I was using is as follow:
for ANT: nRF51_SDK_8.0 s210_nRF51422_4.0.1
for BLE: nRF51_SDK_8.0 s110_nRF_8.0.0
The process that I use for flashing are as follow:
SVL8s-MBP:_build ctang32$ JLinkExe -device nrf51422_xxac -if swd -speed 4000 SEGGER J-Link Commander V4.96l ('?' for help) Compiled Feb 25 2015 10:24:59 Info: Device "NRF51422_XXAC" selected. DLL version V4.96l, compiled Feb 25 2015 10:24:52 Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Nov 28 2014 10:32:04 Hardware: V1.00 S/N: 681092570 VTarget = 3.300V 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: 1000 kHz
J-Link>loadbin s210_nrf51422_4.0.1_softdevice.hex 0 Halting CPU for downloading file. Downloading file [s210_nrf51422_4.0.1_softdevice.hex]...Info: J-Link: Flash download: Flash programming performed for 1 range (46080 bytes) Info: J-Link: Flash download: Total time needed: 1.849s (Prepare: 0.087s, Compare: 0.023s, Erase: 0.958s, Program: 0.769s, Verify: 0.003s, Restore: 0.006s) O.K.
J-Link>loadbin nrf51422_xxac.hex 0xD000 Downloading file [nrf51422_xxac.hex]...Info: J-Link: Flash download: Flash programming performed for 1 range (10240 bytes) Info: J-Link: Flash download: Total time needed: 0.560s (Prepare: 0.118s, Compare: 0.002s, Erase: 0.214s, Program: 0.180s, Verify: 0.000s, Restore: 0.043s) O.K.
J-Link>r Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
J-Link>g
J-Link>exit
I am pretty stuck now, and would definitely appreciate any advice!