Hardware Reference
In-Depth Information
Figure 10-6. Programming the SoftDevice onto the nRF51822 using nRFGo Studio
The SoftDevice generally needs to be written only once, unless you
want to update to a different version. The user code will need to be
updated every time you make a change to your program, but this user
code usually won't affect the SoftDevice, because they are stored in
separate regions of flash.
Once the SoftDevice has been written, you can write your custom application code to
the top half of memory, using the .hex file generated previously and the same nRFGo
Studio tool, switching to the Program Application tab shown in Figure 10-7 .
At this point, your application code has been written to the nRF51822 SoC and should
start executing automatically. The application code will be able to make calls to the low-
level SoftDevice for any BLE-specific functionality, and if everything is running prop‐
erly, you should see LED0 on the PCA10001 development board blinking.
You can test the code you compiled by running an application on a BLE-enabled phone
or tablet. First, download Nordic's nRF Utility from Apple's App Store or Google Play .
After installing the app, simply select HRM from the main menu and click Connect,
which should show something similar to Figure 10-8 .
 
Search WWH ::




Custom Search