ANNA-B112 - System integration manual
UBX-18009821 - R09
Software
Page 28 of 66
C1-Public
Figure 12:
PinNames.h
example code for EVK-ANNA-B112 (continued)
Build software
In the Arm Mbed CLI, compile software by using the name of the object created in the
targets.json
file as a parameter to the board flag. For the EVK-ANNA-B112 example, use the build command:
mbed compile –t GCC_ARM –m UBLOX_EVK_ANNA_B112
2.2.5
Wirepas Mesh
ANNA-B112 can also be used together with the Wirepas Mesh software stack. This allows
ANNA-B112 to be used in a true, large-scale, mesh environment.
Wirepas Mesh is third party software licensed from Wirepas.
For more information about Wirepas Mesh software, contact your local u-blox support team.
2.2.6
Saving Bluetooth MAC address and other production data
ANNA-B112-0XB comes with a Bluetooth MAC address programmed. See also section 2.3.2.2. This
address is used by the customer application – if needed.
ANNA-B112-70B module comes with an empty flash.
The MAC address is programmed in the CUSTOMER[0] and CUSTOMER[1] user information
configuration registers of the of the nRF52832 chip. The address can be read and written using either
Segger J-Link utilities or the Nordic
nrfjprog
utility.
$ nrfjprog.exe --memrd 0x10001080 --n 8
The memory area can be saved and, if the flash is erased, later written back using the
savebin
and
loadbin
utilities in the Segger J-link tool suite.
UICR (user information configuration registers) memory also holds the serial number and other
information that can be useful to save. If you want to save and restore the whole memory area, you
use the commands:
$ nrfjprog.exe --readuicr uicr.hex
...
$ nrfjprog.exe --program uicr.hex
☞
Note that the user information configuration registers hold the boot loader start address, which
can confuse the boot process during open CPU development. In this instances, the MAC address
must be written separately.
For additional information and instructions on saving and using the public Bluetooth device address,
see reference [14].
typedef
enum
{
PullNone = 0,
PullDown = 1,
PullUp = 3,
PullDefault = PullUp
} PinMode;
#ifdef
__cplusplus
}
#endif
#endif