Hardware Reference
In-Depth Information
guity about the version used when building your firmware and make debugging easier
months or years down the road.
The lib directory should contain the SDK, SoftDevice, and any other proprietary files
from Nordic. You'll need to download these files from Nordic's website directly, because
licensing issues prohibit us from including them.
In order to download the SDK and an appropriate SoftDevice for the
nRF51822 from Nordic Semiconductor's website you will need to
create a MyPages account and register the product key that was printā€
ed on the packaging for your nRF51822-EK. This product key gives
you access to all of the resources available for this chipset, so be sure
to keep this product key somewhere safe, in case you need to reuse it
in the future.
After downloading the files, add them to the lib directory with the folder structure
shown in Figure 10-4 .
Figure 10-4. File structure for Nordic's SDK and SoftDevice
Once you've updated your project to include these files, you're ready to compile your
first program.
Compiling Projects
If you have set up your GNU toolchain properly, including the ARM cross-compiler
and any associated tools properly (as decribed earlier in this chapter), compiling should
be as simple as dropping down to the command line, moving into the appropriate project
folder (e.g., /projects/hrm ), and running the following command:
 
Search WWH ::




Custom Search