forked from crownstone/bluenet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeBuild.config.default
102 lines (86 loc) · 4 KB
/
CMakeBuild.config.default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Configuration options, used by build systems and scripts.
# The name that is advertised.
# Should be 10 characters or less (we need room for compilation date after it)
BLUETOOTH_NAME="crown"
# Enable or disable different services (at times required to preserve memory)
INDOOR_SERVICE=0
GENERAL_SERVICE=1
POWER_SERVICE=0
# Enable or disable meshing functionality (1 or 0)
MESHING=0
# Verbosity of the UART
# Debug 0
# Info 1
# Warning 2
# Error 3
# Fatal 4
# None 5
SERIAL_VERBOSITY=1
# The different boards that can be used:
# PCA10001 0
# NRF6310 1
# NRF51822_DONGLE 2
# NRF51822_EVKIT 3
# RFDUINO 4
# CROWNSTONE 5
# NRF51422 6
BOARD=5
# Version of the nrf51 chip, use script/hardware_version.sh to check your version
HARDWARE_VERSION=0x001D
# SOFTDEVICE_DIR - the directory where the .hex SoftDevice can be found
SOFTDEVICE_DIR=/opt/softdevices
# This is the directory where the cross-compiler resides
COMPILER_PATH=/opt/compiler/gcc-arm-none-eabi-4_8-2014q3
# The compiler type
COMPILER_TYPE=arm-none-eabi
# The JLink utility (when using the Segger to flash the nRF)
JLINK=/usr/bin/JLinkExe
# The JLink utilty that can be used with gdb
JLINK_GDB_SERVER=/usr/bin/JLinkGDBServer
# Use SoftDevice (setting to 0 is untested)
NRF51_USE_SOFTDEVICE=1
# NRF51822_DIR - the directory with /Source and /Include subdirectories from the Nordic SDK
# SOFTDEVICE - the name of the SoftDevice (without _softdevice.hex)
# SOFTDEVICE_SERIES - the series of the SoftDevice (s110 vs s130 e.g.), used in the code
# SOFTDEVICE_DIR_API - the name of the directory where the include files resides of the Softdevice
# SOFTDEVICE_NO_SEPARATE_UICR_SECTION - starting with SoftDevice S110 v7 there is no separate UICR section
#
# For the following examples, suppose the SoftDevice takes 80kB and the application 176kB
# APPLICATION_START_ADDRESS - 80kB corresponds with 0x00014000 hex
# Check https://devzone.nordicsemi.com/question/15994/nrf51822-iram-and-irom-settings-for-v05-s130-sd/
# APPLICATION_LENGTH - 176kB corresponds with 0x2c000 hex, should be 0x40000 - 0x14000
# RAM_R1_BASE - starting point for softdevice in RAM
# RAM_APPLICATION_AMOUNT - size of softdevice in RAM
#######################################################################################################################
# For the S110 SoftDevice version (v7) and SDK version (v6)
# SoftDevice takes 88kB and application 168kB
#######################################################################################################################
NRF51822_DIR=/opt/nrf51_sdk/v6/nrf51822
NORDIC_SDK_VERSION=6
SOFTDEVICE_SERIES=110
SOFTDEVICE=s110_nrf51822_7.0.0
SOFTDEVICE_DIR_API=s110_nrf51822_7.0.0_API
SOFTDEVICE_NO_SEPARATE_UICR_SECTION=1
APPLICATION_START_ADDRESS=0x00016000
APPLICATION_LENGTH=0x2a000
RAM_R1_BASE=0x20002000
RAM_APPLICATION_AMOUNT=8K
#######################################################################################################################
# For the S130 SoftDevice version (v0.5) and the SDK version (v6)
# SoftDevice (from inspection seems to be 110kB) and application 168kB
# bonus, vim shorthand
# :echo printf("%x", 110*1024)
# checking S130 SoftDevice Specification, space for it should be 128kB
# Wrong... It was right in the beginning. It is at 0x0001c000 just after the softdevice
# The spec is also wrong, about the amount of RAM, it is 0x1800 (6kB), not 10kB
#######################################################################################################################
#NRF51822_DIR=/opt/nrf51_sdk/v6/nrf51822
#NORDIC_SDK_VERSION=6
#SOFTDEVICE_SERIES=130
#SOFTDEVICE=s130_nrf51822_0.5.0-1.alpha
#SOFTDEVICE_DIR_API=s130_nrf51822_0.5.0-1.alpha_API
#SOFTDEVICE_NO_SEPARATE_UICR_SECTION=1
#APPLICATION_START_ADDRESS=0x0001c000
#APPLICATION_LENGTH=0x24000
#RAM_R1_BASE=0x20002800
#RAM_APPLICATION_AMOUNT=0x1800