On OSX with Rowley Associates CrossWorks what are the steps needed to compile and run a simple BLE UART sample code for Nordic nRF51 DK to an iPhone.
I found iOS and Android code here and am comfortable with that part: https://www.nordicsemi.com/Products/nRFready-Demo-APPS
But I am not sure how to get the toolchain setup and running on the nRF51 board. I've seen some directions for SDK 6.x but can't find anything for SDK 7.x.
This is how I got it to work:
Setup "nRF51 SDK"
unzip "nRF51_SDK_8.0.0_5fc2c3a_packs/nRF_SoftDevice_S110/NordicSemiconductor.nRF_SoftDevice_S110.8.0.0.pack"
Load "$nRF51_SDK_8.0.0_5fc2c3a/components/softdevice/s110/hex/s110_softdevice.hex" on nRF51 with RKNRFGO.app
In CrossWorks File->Import Project and select "$nRF51_SDK_8.0.0_5fc2c3a/examples/ble_peripheral/ble_app_uart"
5.in "Select Template" select "nRF51_EXE - ..."template list
Remove "retarget.c" from project (it is easiest if you build now so you get the error)
Select Project Item-> "Project 'nrf51422_xxac_s110'" in project explorer
In "Properties Window" scroll down to "Linker Options" and set "Section Placement Macros" to:
FLASH_START=0x18000
RAM_START=0x20002000
Also make sure Properties Window->Target Loader Options->Can Erase All is set to "No"
9.5 Select Target -> Connect -> SEGGER J-LINK
Now apps can connect to the nRF51 DK board
Get the mobile app source code here.
See this post for more details.