The DA14531MOD-00F01002 is a Bluetooth module from Renesas Electronics Corporation, designed for a variety of IoT applications. Accessing its unique MAC address, also referred to as the Bluetooth Device (BD) address, is crucial for ensuring proper device identification and communication.
Below is an explanation from Renesas on how to read the BD address stored in the module’s One-Time Programmable (OTP) memory.
The BD address is written in the OTP configuration script at address “0x7F87FD4”.
However, direct access to this memory is not possible unless the OTP controller is enabled first. There are two main methods for reading the BD address: over UART and over JTAG (SWD).
1. Reading via UART :
- Use pin
P0_5
as the single-wire UART pin for communication. - This method requires a setup involving firmware downloads and external executables (Smart Snippets Toolbox + SDK)
2. Reading via JTAG (SWD) :
- Use pin
P0_2
(SWCLK): Serial Wire Clock andP0_10
(SWDIO): Serial Wire Data Input/Output - This method requires simple register accesses or firmware download + executables (Smart Snippets Toolbox + SDK)
- Connect the JTAG interface and Execute the J-Link script to enable the OTP controller and read the BD address.
The choice of method depends on the interfaces available in your ICT setup. JTAG is often preferred for its simplicity and speed, as it eliminates the need for firmware.
If available, a J-Link script can be used (any JTAG/GDB server interface can be used; adapt it to your ICT solution).
The image below demonstrates an example of successfully reading the BD address using the J-Link script.
BD address is written in LittleEndian so in the example it is 48:23:35:48:73:43 (occupies 2 32-bit words in memory, the unused bytes are 0xFF)
Note: If JTAG and above method is not available/feasible, let us know and we can provide instructions adapted to the specific setup.
read_BD_addr.jlinkscript (224 Bytes)
Applicable Part Numbers
1695-DA14531MOD-00F01002TR-ND
1695-DA14531MOD-00F01002CT-ND
1695-DA14531MOD-00F01002DKR-ND
DA14531MOD-00F01002