25. Radio IP

25.1 Overview

This chapter describes the Radio IP embedded in the STM32WB09xE product.

The Radio controller MR_BLE manages the Bluetooth® LE protocol with HW add-on to support some new Bluetooth specification features, and controls the RF analog module.

25.1.1 Architecture overview of the Radio controller MR_BLE IP

As shown in Figure 195: Radio controller MR_BLE architecture overview, the Radio controller MR_BLE IP contains:

The radio controller MR_BLE IP supports 2 system clock frequencies: 16 MHz and 32 MHz.

Figure 195. Radio controller MR_BLE architecture overview

Architecture overview of the MR_BLE radio controller. The diagram shows the internal components and their interconnections. The MR_BLE block contains the RF2G4 (Analog) section, the Radio controller (with Radio FSM, RRM, Wakeup, and Bluetooth LE link layer), and the AHB interconnect. The RF2G4 section includes PLL Cal, Synth (PLL) IF, and AGC. The Radio controller section includes Radio registers, MUX, Semaphore, Virtual port, and Wakeup. The Bluetooth LE link layer includes Sequencer, Timers, Channel inc & remap, Antenna Switching, AES, Receive, and Transmit. The AHB interconnect connects to the AHB2APB block and the SoC Bus matrix. Interrupts are shown as pink lines, APB interfaces as purple, and AHB interfaces as blue. The diagram also shows the RF data path (green), antenna switching control (orange), and channel hopping control (brown).

Legend:

DT58151V1

Architecture overview of the MR_BLE radio controller. The diagram shows the internal components and their interconnections. The MR_BLE block contains the RF2G4 (Analog) section, the Radio controller (with Radio FSM, RRM, Wakeup, and Bluetooth LE link layer), and the AHB interconnect. The RF2G4 section includes PLL Cal, Synth (PLL) IF, and AGC. The Radio controller section includes Radio registers, MUX, Semaphore, Virtual port, and Wakeup. The Bluetooth LE link layer includes Sequencer, Timers, Channel inc & remap, Antenna Switching, AES, Receive, and Transmit. The AHB interconnect connects to the AHB2APB block and the SoC Bus matrix. Interrupts are shown as pink lines, APB interfaces as purple, and AHB interfaces as blue. The diagram also shows the RF data path (green), antenna switching control (orange), and channel hopping control (brown).

25.1.2 Global scenario for Bluetooth LE protocol usage

The Bluetooth LE link layer always needs a trigger event to start a sequence. This trigger event has three possible timer sources (Wakeup timer, Timer1 or Timer2).

Basically, a Bluetooth sequence follows the steps described below:

  1. 1. The CPU needs to prepare in RAM (through different tables) all information needed for the coming transfer:
    • – for radio programming (channel number, reception or transmission, calibration feature, etc.)
    • – for packet to transmit or receive (contents, ADV or data, encryption, etc.)
    • – for interrupt mask selection,
    • – to prepare the trigger event to schedule the next sequence.
  2. 2. Then the CPU has to program the chosen timer (except if already done through the table for timer2 inside the previous sequence).
  3. 3. Once the Bluetooth LE link layer receives the trigger event from the programmed timer, it gets all information in the RAM table and launches the requested transfer.
  4. 4. At the end of the sequence (and not before), the Bluetooth LE link layer writes back in RAM tables some information, updates the status/error flags and generates an interrupt towards the CPU according to the interrupt mask programming.
  5. 5. The CPU has to treat the RAM table updated information (including packet payload after a reception) to decide what is the next wanted sequence. Then a cycle restarts from step 1.

Note: The RAM tables are located in a retention area. So the data are kept even during low power modes that switch off the digital 1.2 V power domain. This allows the Bluetooth LE link layer starting a transmission/reception while the CPU is not yet available as rebooting from a wakeup reset.

25.1.3 Miscellaneous features: RF activity monitoring

On-going TX sequence information (to control an external Power Amplifier (PA))

The radio controller MR_BLE is able to control an external Power Amplifier (located on the board to increase the Tx power) through a signal provided to the SoC to be connected directly on an external GPIO or to be managed with additional logical mechanism. The external PA can be useful to extend the TX power.

The external Power Amplifier components have quite a long latency to establish and consume a lot of current (several mA) which could lead to unlock the Radio controller MR_BLE PLL. For this reason, the control signal is anticipated as soon as the system knows it starts a TX sequence and stops as soon as possible (at the same time of the internal PA).

The Radio controller MR_BLE outputs a signal to the SoC, which is high as soon as a TX sequence is requested to the radio FSM up to the return to ACTIVE2 or less state. To be more precise, the information is provided as soon as the radio FSM is starting to treat a TX request (leaving ACTIVE2 state for EN_LDO state) and goes down as soon as the system

switches off the internal PA (e.g. leaving TX state at the end of the transmission or during EN_PA in case of PLL lock fail).

The information is available in two different ways in the STM32WB09xE:

On-going RX sequence information (to control an external Low Noise Amplifier (LNA))

The Radio controller MR_BLE is able to control an external Low Noise Amplifier (located on the board) through a signal provided to the SoC to be connected directly on an external GPIO or to be managed with additional logical mechanism.

The Radio controller MR_BLE outputs a signal to the SoC, which is high as soon as a RX sequence is requested to the radio FSM up to the return to ACTIVE2 or less state.

The information is available in two different ways in the STM32WB09xE:

RF activity information

An additional signal is available on device pin to inform either a RX or a TX sequence is active. This pin called RADIO_RF_ACTIVITY is a logical OR between the RADIO_TX_SEQUENCE and RADIO_RX_SEQUENCE mentioned in the two previous sub-chapters.

25.1.4 Radio controller MR_BLE IP evolution

Bluetooth LE standard 5.2 additional support

An upgrade has been done in this version of the Radio controller MR_BLE IP to allow HW adaptive behavior on encrypted packets versus the Physical Channel PDU type. Indeed, the encryption algorithm is supposed to use different masks on the header depending on the PDU type.

This upgrade impacts the StatMach word 0 with the addition of the PhysChanPDUType[1:0] bit field to help the AES block to adapt the header mask for on-the-fly encryption as follows:

00 = ACL: header mask = 0xE3 (bits 2, 3, 4 stuck at 0)

01 = CIS: header mask = 0xA3 (bits 2, 3, 4, 6 stuck at 0)

10 = BIS: header mask = 0xC3 (bits 2, 3, 4, 5 stuck at 0)

11 = RFU: header mask = 0xFF (no mask)

This means the HW encryption mode can be used on Radio controller MR_BLE for isochronous channels while only SW implementation is possible on previous versions.

LDO_TRANSFO bypass mode management versus TX power

To reach the TX power at +8dB, the LDO_TRANSFO needs to be bypassed to supply the Power Amplifier directly with the SMPS output voltage (programmed at 1.9 V). This bypass mode must be activated only during the TX (impact RX performances).

Up to now, the enable/disable action of this bypass mode has to be done by SW which is constraining in term of real time management especially during short TX/RX switch like T_IFS and T_MSS window.

A HW dynamic management of the LDO_TRANSFO bypass mode enable/disable has been added in the Radio controller MR_BLE IP:


Warning: this modification implies the SW developed for previous version of the radio is no more compatible to achieve a TX power at +8dB and an upgrade is mandatory.


25.2 Interfacing with the Radio controller MR_BLE IP

The Radio controller MR_BLE IP interfaces with several blocks in the system:

25.2.1 Interrupt lines to the CPU

The Radio controller MR_BLEIP provides several interruption lines to the CPU, issued by different sub-blocks:

Table 122. Radio controller MR_BLE interruptions summary
Line number on SoC NVICInterrupt nameDescription
18BLE_TXRX (int_BLE_irq1)Indicate a Bluetooth sequence occurred
19BLE_AES (int_BLE_irq2)Indicate an AES LE privacy or manual operation ended
21RADIO_CTRL (int_mr_syst)Indicate the Slow clock measurement result is ready
22MR_BLE (irq_rrm + irq_radio_fsm)Combine information related to RRM-UDRA operations and radio FSM analog feedbacks (PLL lock and calibration)
23CPU_WKUP (irq_wakeup_cpu)Indicate a CPU wakeup timer match
24BLE_WKUP (irq_wakeup_ble)Indicate a Wakeup timer trigger occurred on Radio controller MR_BLE sequencer.

IP_BLE interrupt lines

irq_BLE_int1 (also called BLE_TXRX):

irq_BLE_int2 (also called BLE_AES):

See Section 25.9.3: IP_BLE interrupts for details on interrupt sources.

Wakeup block interrupt lines

irq_wakeup_ble (also called BLE_WKUP):

irq_wakeup_cpu:

See Section 25.13: Wakeup block for more details.

RRM interrupt line

This interrupt line is dedicated to the RRM block. It is triggered on Semaphore and UDRA sub-block activities.

See Section 25.6.3: Radio FSM interrupts for more details.

Radio controller interrupt lines

irq_rf_fsm:

irq_mr_syst:

See Section 25.7: Radio controller for more details.

25.2.2 Interface with the RAM embedded in the SoC

The Radio controller MR_BLE IP is an AHB master on the bus matrix as the CPU or a DMA.

Two of its internal blocks access to the RAM of the system:

Both internal blocks may need to access to the RAM in parallel. An arbiter is located inside the Radio controller MR_BLE.

25.2.3 Interface with the power, clock and reset controllers

The Radio controller MR_BLE IP receives several clocks from the SoC:

The fast clocks (system, 16 MHz and 32 MHz) must be accurate when the radio is used (for the transmission/reception).

The Radio controller MR_BLE IP communicates with the power controller of the system to indicate when the Radio controller MR_BLE IP is OK to go to low power modes and when it requests a wakeup.

The Radio controller MR_BLE IP says it is ready to sleep when:

The Radio controller MR_BLE IP also proposes an embedded always-on timer that may generate a programmed wakeup for the CPU.

25.3 Radio resource manager (RRM)

The radio resource manager (RRM) is a hardware block managing the radio access to one unique controller at a time.

25.3.1 Overview

The radio resource manager (RRM) is the block that manages the requests performed by the Bluetooth LE link layer of the IP_BLE and the CPU to access the radio resources. The requests pass through a semaphore and only one of the two can take control of the radio at a time. The arbitration behaves as follows:

The two controllers can request access to the radio resources through a dedicated port:

The Bluetooth LE link layer does not have access to the radio resources until it requests a token to the RRM and the RRM grants it. For the CPU, only RRM commands require to get a token, the direct APB access to the radio registers is always possible. The token is requested by software for the CPU while it is done by hardware for the Bluetooth LE link layer each time a timer trig event starts a sequence. Nevertheless, the firmware can release the token granted by the Bluetooth LE link layer writing inside the CMDREG APB register. Once the requester has the token, its port is granted, and it can access the radio resources.

Figure 196. RRM overview

Block diagram of the Radio Resource Manager (RRM) showing its internal components and external interfaces.

The diagram illustrates the RRM architecture. On the left, external blocks include Radio FSM, RF2G4, and Radio registers. The RRM block contains a Semaphore, an arbiter, a UDRA, and a Virtual port (CPU). The arbiter is connected to the Semaphore and the UDRA. The UDRA has an AHB IF and an APB IF. The Virtual port (CPU) also has an APB IF. The RRM connects to the IP_BLE and the SoC Bus matrix. The SoC Bus matrix is connected to RAM, which contains GlobalStatMach, @port1-Command1, and port1-Command1. A color legend is provided: Blue for AHB transfer, Purple for APB transfer, Green for token request/granting, Dark orange for data path, Brown for UDRA command, and Pink for interrupt. The diagram also shows an interrupt signal labeled irq_RRM.

Block diagram of the Radio Resource Manager (RRM) showing its internal components and external interfaces.

25.3.2 Semaphore

The semaphore grants the access to the radio resources control to the radio controller or to the CPU depending on the demand.

An arbitration system is in place to manage conflicts when a token request is raised simultaneously by the IP_BLE and the CPU. In this case, the arbiter:

The CPU is a virtual port and must provide the token request through an APB register bit field (see Section 25.4: RRM registers). The Bluetooth LE link layer uses hard wired signals to communicate with the RRM and the request is managed directly by the Bluetooth LE link layer each time a timer trig event starts a Bluetooth LE sequence.

As soon as the IP_BLE port is granted, the radio FSM block is informed by the Semaphore that the radio is about to be used. The goal is to switch off the analog as much as possible when not used and switch it on only when needed (for power consumption)

Some interruptions are linked to the Semaphore block in the RRM:

See Section 25.4: RRM registers for more details.

25.3.3 UDRA

The Unified Direct Register Access block allows the software preparing some commands in a command link list located in the retention RAM. Those commands execute read from and write into the radio registers.

Some interruptions are linked to the UDRA block in the RRM:

See Section 25.4: RRM registers for more details.

The main goal of this block is to allow the Bluetooth LE link layer to reinitialize the radio registers after a low power mode sequence to start a RF communication while the CPU is still booting and not yet available to manage.

Note: The read command embeds some limitations. However, the radio registers can be read directly through APB by the CPU so the read command of the UDRA is useless.

The mapping in RAM for those commands is the following:

An overview of this indirect mapping is represented in Figure 197.

Figure 197. UDRA command list mapping in RAM (example)

Figure 197. UDRA command list mapping in RAM (example)

The diagram illustrates UDRA command list mapping in RAM. On the left is the main RAM memory block, starting at Start RAM and ending at End RAM. It contains GlobalStatMach, RadioConfig pointing to @ GlobalStatMach.RadioConfigPtr, followed by pointers to command lists: @ {port0 Command list 0}, @ {port0 Command list 1}, @ {port0 Command list 2}, @ {port1 Command list 0}, @ {port1 Command list 1}, and @ {port1 Command list 3}. An annotation notes that all @ command are aligned. Arrows map these pointers to actual command sequences on the right, which consist of CMD0, CMD1, CMD2, CMD3, and CMD NULL blocks for each respective port command list.

Figure 197. UDRA command list mapping in RAM (example)

The RadioConfigPtr value is loaded by the RRM-UDRA automatically when the Radio controller MR_BLE IP reset is released.

If the software did not initialize this RAM address supposed to point on the command_start_list address before this first automatic load, a “reload pointer” command is available by writing 1 in UDRA_CTRL0[0] APB register (this bit is auto-cleared immediately).

Note: The RadioConfigPtr pointer value loaded and used by the RRM-UDRA block can be read in the UDRA_RADIO_CFG_PTR APB register.

For the Radio controller MR_BLE IP, the port mapping has been defined as follow:

This leads to the command list given in Figure 123:

Table 123. Command start list details

Address in RAMMeaningComments
@RadioConfigPtr(value) + 0x00port0→command0 base addressCommand requested by the Bluetooth LE link layer on wakeup timer trigger event if RadioComListEna bit = 1 in on-going StatMach.
@RadioConfigPtr(value) + 0x04port0→command1 base addressCommand requested by the Bluetooth LE link layer on Timer1 trigger event if RadioComListEna bit = 1 in on-going StatMach
@RadioConfigPtr(value) + 0x08port0→command2 base addressCommand requested by the Bluetooth LE link layer on Timer2 trigger event if RadioComListEna bit = 1 in on-going StatMach
@RadioConfigPtr(value) + 0x0Cport1→command0 base addressVP_CPU: if the software needs to use a RRM-UDRA command to access to the radio register instead of a direct access through APB.
@RadioConfigPtr(value) + 0x10port1→command1 base addressVP_CPU: if the software needs to use a second RRM-UDRA command to access to the radio register instead of a direct access through APB
@RadioConfigPtr(value) + 0x14port1→command2 base addressVP_CPU: if the software needs to use a third RRM-UDRA command to access to the radio register instead of a direct access through APB
@RadioConfigPtr(value) + 0x18port1→command3 base addressVP_CPU: if the software needs to use a fourth RRM-UDRA command to access to the radio register instead of a direct access through APB

UDRA command format in RAM

The write and read commands format is described in Table 124.

Note that only one radio register address is entered for a write or a read. Then, if the number of data to write/read is more than one, the address is incremented automatically by 1.

Table 124. UDRA command format in RAM

Byte numberAddress in RAMByte valueDescription
1command_base_addr0x--bit7: 0=write / 1=read
bit[6:0] = number of data to write or to read.
n = number of data for the example in this table.
2command_base_addr+18-bit addressAddress of a Radio register following the 8-bit address mapping (see Section 25.5: Radio registers)
3command_base_addr+21st dataIf write command: write first 8-bit data to be written.
If read command: location where the first 8-bit read data is available.
4command_base_addr+32nd dataOptional (depends on number of data to write/read).
If write command: write second 8-bit data to be written.
If read command: location where the second 8-bit read data is available.
...
n+2command_base_addr+(n+1)nth dataOptional (depends on number of data to write/read).
If write command: write nth 8-bit data to be written.
If read command: location where the nth 8-bit read data is available.
n+3command_base_addr+n+20x--Optional: possible to chain other commands.
bit7: 0=write / 1=read
bit[6:0] = number of data to write or to read.
n+4command_base_addr+n+38-bit addressAddress of a Radio register following the 8-bit address mapping (see Section 25.5: Radio registers)
n+5command_base_addr+n+41st dataIf write command: write first 8-bit data to be written.
If read command: location where the first 8-bit read data is available.
...
lastcommand_base_addr+last-10x00 / 0x80MANDATORY.
The null command (command with null length) must be added at the end of the command list. This is needed by the state machines of the UDRA to be informed they reach the end of the list.

Note: If any error information is put in the RAM command list (bad command number, lack of null command, and so on), the RRM-UDRA does not return to an IDLE state and cannot accept new command until a reset is done on the full Radio controller MR_BLE IP.

Basic example: Write AAC0_DIG_ENG=0x12 and AAC1_DIG_ENG=0x34 (grouped registers) through port1.command0:

@port1.command0_addr = 0x02;          Write 2 data
@port1.command0_addr+1 = 0x AAC0_DIG_ENG_ADDR;
@port1.command0_addr+2 = 0x12;          1st data to write in AAC0_DIG_ENG
@port1.command0_addr+3 = 0x34;          2nd data to write in AAC1_DIG_ENG
@port1.command0_addr+4 = 0x00;          null command

At the end of command execution, the 2 radio registers have been modified with new value.

25.3.4 Direct register access

The Direct Register access block allows the software accessing the radio registers directly through an APB access.

To do a direct read or write access to the radio registers, the software just has to read/write them through APB at address mapping described in section Section 25.5: Radio registers.

Note: The radio registers are 8-bit only so the APB registers bit field[31:8] part is padded with 0. A 8-bit address mapping column is provided to be used in RRM UDRA command list as address of the radio register in this specific case.

An internal arbiter manages the case of concurrent accesses on radio registers by both UDRA (executing a command) and Direct Register Access block (on a CPU read/write APB request). The arbitration is round-robin.

Important recommendation:

The software must not write some radio registers through direct APB access if they are also modified through commands in RAM (through UDRA block). In this case, there is a risk of multi drivers in parallel and to lose coherency (no way to know which requester wrote the last).

25.4 RRM registers

The RRM registers are accessible through the APB interface.

All non-listed addresses must be considered as RESERVED.

The RRM_BLOCKBaseAddress keyword used for all the register base address information corresponds to the RRM registers base address in the SoC when integrating the IP.

RRM_BLOCKBaseAddress is 0x6000_1400 in the STM32WB09xE product.

Table 125. RRM register list

OffsetRegister NameRegister TitleReset
0x0010UDRA_CTRL0UDRA_CTRL0 register0x0000 0000
0x0014UDRA_IRQ_ENABLEUDRA_IRQ_ENABLE register0x0000 0000
0x0018UDRA_IRQ_STATUSUDRA_IRQ_STATUS register0x0000 0000
0x001CUDRA_RADIO_CFG_PTRUDRA_RADIO_CFG_PTR register0x0000 0000
0x0020SEMA_IRQ_ENABLESEMA_IRQ_ENABLE register0x0000 0000
0x0024SEMA_IRQ_STATUSSEMA_IRQ_STATUS register0x0000 0000
0x0028BLE_IRQ_ENABLEBLE_IRQ_ENABLE register0x0000 0000
0x002CBLE_IRQ_STATUSBLE_IRQ_STATUS register0x0000 0000
0x0060VP_CPU_CMD_BUSVP_CPU_CMD_BUS register0x0000 0000
0x0064VP_CPU_SEMA_BUSVP_CPU_SEMA_BUS register0x0000 0000
0x0068VP_CPU_IRQ_ENABLEVP_CPU_IRQ_ENABLE register0x0000 0000
0x006CVP_CPU_IRQ_STATUSVP_CPU_IRQ_STATUS register0x0000 0000

25.4.1 UDRA_CTRL0 register (UDRA_CTRL0)

Address offset: 0x0010

Reset value: 0x0000 0000 (0xFFFF FFFF)

UDRA control register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RELOAD_RDCFGPTR
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 RELOAD_RDCFGPTR: reload the radio configuration pointer from RAM.
This bit is auto cleared by hardware.

ST logo
ST logo

25.4.2 UDRA_IRQ_ENABLE register (UDRA_IRQ_ENABLE)

Address offset: 0x0014

Reset value: 0x0000 0000 (0xFFFF FFFF)

UDRA Interrupt mask register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRADIO_CFG_PTR_RELOADED
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 CMD_END: UDRA interrupt enable (command end)

Bit 1 CMD_START: UDRA interrupt enable (command start)

Bit 0 RADIO_CFG_PTR_RELOADED: UDRA interrupt enable (reload radio config pointer)

ST logo
ST logo

25.4.3 UDRA_IRQ_STATUS register (UDRA_IRQ_STATUS)

Address offset: 0x0018

Reset value: 0x0000 0000 (0xFFFF FFFF)

DEUDRA Interrupt status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRADIO_CFG_PTR_RELOADED
rc_w1rc_w1rc_w1

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 CMD_END: On read, returns the UDRA command end interrupt status

Write '1' to clear IRQ status bit.

Note: this flag is located at global UDRA level and is raised only at the beginning of the command list execution (not raised again at start of all sub-commands chained in the command number under execution before the NULL command)

Bit 1 CMD_START: On read, returns the UDRA command start interrupt status.

Write '1' to clear IRQ status bit.

Bit 0 RADIO_CFG_PTR_RELOADED: On read, returns the UDRA reload radio configuration pointer interrupt status.

Write '1' to clear IRQ status bit.

25.4.4 UDRA_RADIO_CFG_PTR register (UDRA_RADIO_CFG_PTR)

Address offset: 0x001C

Reset value: 0x0000 0000 (0xFFFF FFFF)

UDRA radio configuration pointer register

31302928272625242322212019181716
RADIO_CONFIG_ADDRESS[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
RADIO_CONFIG_ADDRESS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 RADIO_CONFIG_ADDRESS[31:0]: UDRA radio configuration address.

This field contains the value contained by RadioConfigPtr bit field in GlobalStatMach RAM table when the MR_BLE51 IP exits the reset state.

This field is updated after a reload configuration pointer command.

25.4.5 SEMA_IRQ_ENABLE register (SEMA_IRQ_ENABLE)

Address offset: 0x0020

Reset value: 0x0000 0000 (0xFFFF FFFF)

Semaphore Interrupt mask register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCKLOCK
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 UNLOCK: semaphore unlocked (=no port selected) interrupt enable

Bit 0 LOCK: semaphore locked (= one port granted) interrupt enable

25.4.6 SEMA_IRQ_STATUS register (SEMA_IRQ_STATUS)

Address offset: 0x0024

Reset value: 0x0000 0000 (0xFFFF FFFF)

Semaphore Interrupt status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCKLOCK
rc_w1rc_w1

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 UNLOCK: On read, returns the semaphore unlocked interrupt status.

Note: this flag reacts only on Bluetooth LE link layer token release but not on VP_CPU token release (which is useless as the SW is responsible to the action by clearing the take_req bit.
Write '1' to clear this IRQ status bit.

Bit 0 LOCK: On read, returns the semaphore locked interrupt status.

Write '1' to clear this IRQ status bit.

25.4.7 BLE_IRQ_ENABLE register (BLE_IRQ_ENABLE)

Address offset: 0x0028

Reset value: 0x0000 0000 (0xFFFF FFFF)

IP_BLE IT mask register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_CMD_ENDPORT_CMD_STARTRes.PORT_RELEASEPORT_GRANT
rwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 PORT_CMD_END: IP_BLE Port command end interrup enable

Bit 3 PORT_CMD_START: IP_BLE Port command start interrup enable

Bit 2 Reserved, must be kept at reset value.

Bit 1 PORT_RELEASE: IP_BLE Port release interrupt enable

Bit 0 PORT_GRANT: IP_BLE Port grant interrupt enable

ST logo
ST logo

25.4.8 BLE_IRQ_STATUS register (BLE_IRQ_STATUS)

Address offset: 0x002C

Reset value: 0x0000 0000 (0xFFFF FFFF)

IP_BLE IT status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRes.PORT_RELEASEPORT_GRANT
rc_w1rc_w1rc_w1rc_w1

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 CMD_END: IP_BLE hardware port command end interrupt status.

When read:

Note: this flag is raised only when the UDRA reaches the NULL command (not as CMD_START)

Write '1' to clear this IRQ status bit.

Bit 3 CMD_START: IP_BLE hardware port command start interrupt status.

When read:

Note: this flag is raised at the beginning of any chained sub-command inside the command number under execution (so can be raised several times if more than one command before the NULL command)

Write '1' to clear this IRQ status bit.

Bit 2 Reserved, must be kept at reset value.

Bit 1 PORT_RELEASE: IP_BLE hardware port released interrupt status.

When read:

Write '1' to clear this IRQ status bit.

Bit 0 PORT_GRANT: IP_BLE hardware port granted interrupt status.
0: the IP_BLE port request to semaphore is not granted.
1: the Bluetooth LE link layer request to take the semaphore is granted: the Radio registers access and the Radio TX and the Radio RX data path are selected for that controller. The port stays granted as long as it requests the token.
Write '1' to clear this IRQ status bit.

Note: The Bluetooth LE link layer receives that information directly by hardware wires and manages the sequence through them. The interrupt mechanism is there in case the CPU needs to monitor the activity between the Bluetooth LE link layer and the RRM block.

25.4.9 VP_CPU_CMD_BUS register (VP_CPU_CMD_BUS)

Address offset: 0x0060
Reset value: 0x0000 0000 (0xFFFF FFFF)
CPU Virtual Port Command bus register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMMAND_REQCOMMAND[2:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.
Bit 3 COMMAND_REQ: CPU Virtual port command request.
0: the RRM command request is released
1: request a command to the RRM-UDRA block.
This bit is cleared by HW once the command is ended.
Bits 2:0 COMMAND[2:0]: command number

25.4.10 VP_CPU_SEMA_BUS register (VP_CPU_SEMA_BUS)

Address offset: 0x0064

Reset value: 0x0000 0000 (0xFFFF FFFF)

CPU Virtual Port semaphore bus register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TAKE_REQTAKE_PRIO[2:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 TAKE_REQ: Semaphore token request.

Bits 2:0 TAKE_PRIO[2:0]: semaphore priority: priority value (between 0 and 7) of the take request.
The higher the value, the higher priority is the request.

ST logo
ST logo

25.4.11 VP_CPU_IRQ_ENABLE register (VP_CPU_IRQ_ENABLE)

Address offset: 0x0068

Reset value: 0x0000 0000 (0xFFFF FFFF)

CPU Virtual Port Interrupt mask register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_CMD_ENDPORT_CMD_STARTRes.PORT_RELEASEPORT_GRANT
rwrwrwrw
ST logo
ST logo

25.4.12 VP_CPU_IRQ_STATUS register (VP_CPU_IRQ_STATUS)

Address offset: 0x006C

Reset value: 0x0000 0000 (0xFFFF FFFF)

CPU Virtual Port Interrupt status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRes.PORT_RELEASEPORT_GRANT
rc_w1rc_w1rc_w1rc_w1

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 CMD_END: CPU virtual port command end interrupt status.

When read:

0: no command requested by the CPU virtual port (port1) is completed.

1: a command requested by the CPU virtual port (port1) is completed.

Note: this flag is raised only when the UDRA reaches the NULL command (not as CMD_START)

Write '1' to clear this IRQ status bit.

Bit 3 CMD_START: CPU virtual port command start interrupt status.

When read:

0: The command requested by the CPU virtual port (port1) is not started.

1: The command requested by the CPU virtual port (port1) is started

Note: this flag is raised at the beginning of any chained command inside the command number under execution (so can be raised several times if more than one command before the NULL command)

Write '1' to clear this IRQ status

Bit 2 Reserved, must be kept at reset value.

Bit 1 PORT_RELEASE: virtual port released interrupt status.

0: The CPU virtual port has not been released (due to TAKE_REQ=1'b1)

1: The CPU virtual port has been released by the semaphore due to TAKE_REQ=1'b0 (requested by CPU virtual port).

Write '1' to clear this IRQ status bit.

Bit 0 PORT_GRANT: CPU virtual port granted interrupt status.

0: The CPU virtual port token request is not granted.

1: The CPU virtual port token request is granted by the semaphore:

- the Radio registers access through UDRA command is possible for that port (direct APB access is not concerned, always accessible),

- prevents the Bluetooth LE link layer to have access to the Radio TX and the Radio RX data path.

Write '1' to clear this IRQ status bit.

25.5 Radio registers

The Radio registers are 8-bit registers mainly used to control the RF2G4 analog IP and the Radio FSM. They also allow taking control for validation/test purposes.

They can be accessed through two different mappings:

Caution: The Radio registers are used to control the analog and few modulator/demodulator features. They are not supposed to be modified directly by the user. The potential modifications are provided by STMicroelectronics in the SDK boot code.

The RF_REG_BLOCKBaseAddress keyword used for all the register base address information corresponds to the Radio registers base address decided by the SoC when integrating the IP.

RF_REG_BLOCKBaseAddress is 0x6000_1500 in the STM32WB09xE product.

Table 126. RADIO register list

Address offsetRegister NameRegister TitleReset
8-bitAPB
0x000x0000AA0_DIG_USRAA0_DIG_USR register0x0000 00D6
0x010x0004AA1_DIG_USRAA1_DIG_USR register0x0000 00BE
0x020x0008AA2_DIG_USRAA2_DIG_USR register0x0000 0089
0x030x000CAA3_DIG_USRAA3_DIG_USR register0x0000 008E
0x040x0010DEM_MOD_DIG_USRDEM_MOD_DIG_USR register0x0000 0026
0x050x0014RADIO_FSM_USRRADIO_FSM_USR register0x0000 0004
0x060x0018PHYCTRL_DIG_USRPHYCTRL_DIG_USR register0x0000 0000
0x120x0048AFC1_DIG_ENGAFC1_DIG_ENG register0x0000 0044
0x150x0054CR0_DIG_ENGCR0_DIG_ENG register0x0000 0044
0x1A0x0068CR0_LRCR0_LR register0x0000 0066
0x1B0x006CVIT_CONF_DIG_ENGVIT_CONF_DIG_ENG register0x0000 0000
0x210x0084LR_PD_THR_DIG_ENGLR_PD_THR_DIG_ENG register0x0000 0050
0x220x0088LR_RSSI_THR_DIG_ENGLR_RSSI_THR_DIG_ENG register0x0000 001B
0x230x008CLR_AAC_THR_DIG_ENGLR_AAC_THR_DIG_ENG register0x0000 0038
0x2A0x00A8SYNTHCAL0_DIG_ENGSYNTHCAL0_DIG_ENG register0x0000 0000
0x3C0x00F0DTB5_DIG_ENGDTB5_DIG_ENG register0x0000 0000
0x520x0148RXADC_ANA_USRRXADC_ANA_USR register0x0000 001B
0x550x0154LDO_ANA_ENGLDO_ANA_ENG register0x0000 0000

Table 126. RADIO register list (continued)

Address offsetRegister NameRegister TitleReset
8-bitAPB
0x5D0x0174CBIAS0_ANA_ENGCBIAS0_ANA_ENG register0x0000 0088
0x5E0x0178CBIAS1_ANA_ENGCBIAS1_ANA_ENG register0x0000 0000
0x600x0180SYNTHCAL0_DIG_OUTSYNTHCAL0_DIG_OUT register0x0000 0000
0x610x0184SYNTHCAL1_DIG_OUTSYNTHCAL1_DIG_OUT register0x0000 0001
0x620x0188SYNTHCAL2_DIG_OUTSYNTHCAL2_DIG_OUT register0x0000 0040
0x630x018CSYNTHCAL3_DIG_OUTSYNTHCAL3_DIG_OUT register0x0000 0000
0x640x0190SYNTHCAL4_DIG_OUTSYNTHCAL4_DIG_OUT register0x0000 0018
0x650x0194SYNTHCAL5_DIG_OUTSYNTHCAL5_DIG_OUT register0x0000 0007
0x660x0198FSM_STATUS_DIG_OUTFSM_STATUS_DIG_OUT register0x0000 0000
0x690x01A4RSSI0_DIG_OUTRSSI0_DIG_OUT register0x0000 0008
0x6A0x01A8RSSI1_DIG_OUTRSSI1_DIG_OUT register0x0000 0008
0x6B0x01ACAGC_DIG_OUTAGC_DIG_OUT register0x0000 0000
0x6C0x01B0DEMOD_DIG_OUTDEMOD_DIG_OUT register0x0000 0000
0x6F0x01BCAGC2_ANA_TSTAGC2_ANA_TST register0x0000 0000
0x700x01C0AGC0_DIG_ENGAGC0_DIG_ENG register0x0000 004A
0x710x01C4AGC1_DIG_ENGAGC1_DIG_ENG register0x0000 0084
0x7A0x01E8AGC10_DIG_ENGAGC10_DIG_ENG register0x0000 0000
0x7B0x01ECAGC11_DIG_ENGAGC11_DIG_ENG register0x0000 0010
0x7C0x01F0AGC12_DIG_ENGAGC12_DIG_ENG register0x0000 0020
0x7D0x01F4AGC13_DIG_ENGAGC13_DIG_ENG register0x0000 0030
0x7E0x01F8AGC14_DIG_ENGAGC14_DIG_ENG register0x0000 0038
0x7F0x01FCAGC15_DIG_ENGAGC15_DIG_ENG register0x0000 0039
0x800x0200AGC16_DIG_ENGAGC16_DIG_ENG register0x0000 003A
0x810x0204AGC17_DIG_ENGAGC17_DIG_ENG register0x0000 003B
0x820x0208AGC18_DIG_ENGAGC18_DIG_ENG register0x0000 003C
0x830x020CAGC19_DIG_ENGAGC19_DIG_ENG register0x0000 003D
0x890x0224RXADC_HW_TRIM_OUTRXADC_HW_TRIM_OUT register0x0000 001B
0x8A0x0228CBIAS0_HW_TRIM_OUTCBIAS0_HW_TRIM_OUT register0x0000 0088
0x8C0x0230AGC_HW_TRIM_OUTAGC_HW_TRIM_OUT register0x0000 0006
0x900x0240ANTSW0_DIG_USRANTSW0_DIG_USR register0x0000 001C
0x910x0244ANTSW1_DIG_USRANTSW1_DIG_USR register0x0000 000B
0x920x0248ANTSW2_DIG_USRANTSW2_DIG_USR register0x0000 0029
0x930x024CANTSW3_DIG_USRANTSW3_DIG_USR register0x0000 0023

25.5.1 AA0_DIG_USR register (AA0_DIG_USR)

Address offset: 0x0000

Reset value: 0x0000 00D6 (0xFFFF FFFF)

access address register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AA_7_0[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 AA_7_0[7:0]: Least significant byte of the Bluetooth LE Access Address code

This register is (over)written by the sequencer during 2nd INIT step with the StatMach.accaddr[7:0] bit field.

25.5.2 AA1_DIG_USR register (AA1_DIG_USR)

Address offset: 0x0004

Reset value: 0x0000 00BE (0xFFFF FFFF)

access address register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AA_15_8[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 AA_15_8[7:0]: Next byte of the Bluetooth LE Access Address code.

This register is (over)written by the sequencer during the 2nd INIT step with the StatMach.accaddr[15:8] bit field.

25.5.3 AA2_DIG_USR register (AA2_DIG_USR)

Address offset: 0x0008

Reset value: 0x0000 0089 (0xFFFF FFFF)

access address register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AA_23_16[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 AA_23_16[7:0]: Next byte of the Bluetooth LE Access Address code

This register is (over)written by the sequencer during 2nd INIT step with the StatMach.accaddr[23:16] bit field.

25.5.4 AA3_DIG_USR register (AA3_DIG_USR)

Address offset: 0x000C

Reset value: 0x0000 008E (0xFFFF FFFF)

access address register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AA_31_24[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 AA_31_24[7:0]: Most significant byte of the Bluetooth LE Access Address code.

This register is (over)written by the sequencer during 2nd INIT step with the StatMach.accaddr[31:24] bit field.

25.5.5 DEM_MOD_DIG_USR register (DEM_MOD_DIG_USR)

Address offset: 0x0010

Reset value: 0x0000 0026 (0xFFFF FFFF)

MOD DEM DIG USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CHANNEL_NUM[6:0]Res.
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:1 CHANNEL_NUM[6:0]: Index for internal lock up table in which the synthesizer setup is contained.

Formula for programmed frequency is: 2402+(CHANNEL\_NUM × 2)

Default value (0x13=19) corresponds to the Bluetooth LE RF channel 19: 2402+(19 × 2) = 2440 MHz.

This bit field is (over) written by the sequencer during the 1st INIT. The value copied here is the output of the channel Incr and Hoping hardware block.

Note: This bit field is used to generate the physical frequency on the antenna.

Bit 0 Reserved, must be kept at reset value.

25.5.6 RADIO_FSM_USR register (RADIO_FSM_USR)

Address offset: 0x0014

Reset value: 0x0000 0004 (0xFFFF FFFF)

RADIO_FSM_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PA_POWER[4:0]EN_CALIB_SYNTHEN_CALIB_CBPRes.
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:3 PA_POWER[4:0]: PA Power coefficient.

This bit is (over) written by the sequencer with the StatMach.PAPower bit field during the 1st INIT step.

Bit 2 EN_CALIB_SYNTH: SYNTH calibration enable bit.

This bit is (over) written by the sequencer with the TxRxPack.CalReq bit during the 1st INIT step.

Bit 1 EN_CALIB_CBP: CBP calibration enable bit.

This bit is (over) written by the sequencer with the TxRxPack.CalReq bit during the 1st INIT step.

Note: Both EN_CALIB_xx must be set or reset together (mixed configuration not recommended)

Bit 0 Reserved, must be kept at reset value.

25.5.7      PHYCTRL_DIG_USR register (PHYCTRL_DIG_USR)

Address offset: 0x0018

Reset value: 0x0000 0000 (0xFFFF FFFF)

PHYCTRL_DIG_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RXTXPHY[2:0]
rwrwrw

Bits 31:3    Reserved, must be kept at reset value.

Bits 2:0    RXTXPHY[2:0]: RXTXPHY selection.

ST logo
ST logo

25.5.8 AFC1_DIG_ENG register (AFC1_DIG_ENG)

Address offset: 0x0048

Reset value: 0x0000 0044 (0xFFFF FFFF)

AFC1_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AFC_DELAY_BEFORE[3:0]AFC_DELAY_AFTER[3:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 AFC_DELAY_BEFORE[3:0]: Set the decay factor of the AFC loop before Access Address detection

Bits 3:0 AFC_DELAY_AFTER[3:0]: Set the decay factor of the AFC loop after Access Address detection

25.5.9 CR0_DIG_ENG register (CR0_DIG_ENG)

Address offset: 0x0054

Reset value: 0x0000 0044 (0xFFFF FFFF)

CR0_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CR_GAIN_BEFORE[3:0]CR_GAIN_AFTER[3:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CR_GAIN_BEFORE[3:0]: Set the gain of the clock recovery loop before Access Address detection to the value
2^(-CR_GAIN_BEFORE)

Bits 3:0 CR_GAIN_AFTER[3:0]: Set the gain of the clock recovery loop before Access Address detection to the value
2^(-CR_GAIN_AFTER)

ST logo
ST logo

25.5.10 CR0_LR register (CR0_LR)

Address offset: 0x0068

Reset value: 0x0000 0066 (0xFFFF FFFF)

CR0_LR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CR_LR_GAIN_BEFORE[3:0]CR_LR_GAIN_AFTER[3:0]
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 CR_LR_GAIN_BEFORE[3:0]: Set the gain of the clock recovery loop before Access Address detection to the value \(2^{-(\text{CR\_LR\_GAIN\_BEFORE})}\) when the coded PHY is in use

Bits 3:0 CR_LR_GAIN_AFTER[3:0]: Set the gain of the clock recovery loop after Access Address detection to the value \(2^{-(\text{CR\_LR\_GAIN\_AFTER})}\) when the coded PHY is in use

ST logo
ST logo

25.5.11 VIT_CONF_DIG_ENG register (VIT_CONF_DIG_ENG)

Address offset: 0x006C

Reset value: 0x0000 0000 (0xFFFF FFFF)

VIT_CONF_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SPARE[5:0]Res.VIT_EN
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:2 SPARE[5:0]: spare

Bit 1 Reserved, must be kept at reset value.

Bit 0 VIT_EN: Viterbi enable

0: Viterbi is disabled

1: Viterbi is enabled

ST logo
ST logo

25.5.12 LR_PD_THR_DIG_ENG register (LR_PD_THR_DIG_ENG)

Address offset: 0x0084

Reset value: 0x0000 0050 (0xFFFF FFFF)

LR_PD_THR_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.LR_PD_THR[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 LR_PD_THR[7:0]: preamble detect threshold value

25.5.13 LR_RSSI_THR_DIG_ENG register (LR_RSSI_THR_DIG_ENG)

Address offset: 0x0088

Reset value: 0x0000 001B (0xFFFF FFFF)

LR_RSSI_THR_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.LR_RSSI_THR[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 LR_RSSI_THR[7:0]: RSSI or peak threshold value

25.5.14 LR_AAC_THR_DIG_ENG register (LR_AAC_THR_DIG_ENG)

Address offset: 0x008C

Reset value: 0x0000 0038 (0xFFFF FFFF)

LR_AAC_THR_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.LR_AAC_THR[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 LR_AAC_THR[7:0] : address coded correlation threshold

25.5.15 SYNTHCAL0_DIG_ENG register (SYNTHCAL0_DIG_ENG)

Address offset: 0x00A8

Reset value: 0x0000 0000 (0xFFFF FFFF)

SYNTHCAL0_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SYNTH_IF_FREQ_CAL[1:0]Res.Res.SYNTHCAL_DEBUG_BUS_SEL[3:0]
rwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:6 SYNTH_IF_FREQ_CAL[1:0]: Define the frequency applied on the PLL during calibration phase

Bits 5:4 Reserved, must be kept at reset value.

Bits 3:0 SYNTHCAL_DEBUG_BUS_SEL[3:0]: for Debug purpose

Program 0xC to get the PLL calibration reason in SYNTHCAL3_DIG_OUT

25.5.16 DTB5_DIG_ENG register (DTB5_DIG_ENG)

Address offset: 0x00F0

Reset value: 0x0000 0000 (0xFFFF FFFF)

DTB5_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_SELECTED_0PORT_SELECTED_ENINITIALIZERX_ACTIVETX_ACTIVERXTX_START_SEL
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

ST logo
ST logo

25.5.17 RXADC_ANA_USR register (RXADC_ANA_USR)

Address offset: 0x0148

Reset value: 0x0000 001B (0xFFFF FFFF)

RXADC_ANA_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RXADC_DELAYTRIM_Q_TST_SELRXADC_DELAYTRIM_I_TST_SELRFD_RXADC_DELAYTRIM_Q[2:0]RFD_RXADC_DELAYTRIM_I[2:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 RXADC_DELAYTRIM_Q_TST_SEL: Enable the SW overload on RXADX delay trimming

Bit 6 RXADC_DELAYTRIM_I_TST_SEL: Enable the SW overload on RXADX delay trimming

Bits 5:3 RFD_RXADC_DELAYTRIM_Q[2:0]: ADC loop delay control bits for Q channel to apply when SW overload is enabled

Bits 2:0 RFD_RXADC_DELAYTRIM_I[2:0]: ADC loop delay control bits for I channel to apply when SW overload is enabled

25.5.18 LDO_ANA_ENG register (LDO_ANA_ENG)

Address offset: 0x0154

Reset value: 0x0000 0000 (0xFFFF FFFF)

LDO_ANA_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFD_RF_REG_BYPASS
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 RFD_RF_REG_BYPASS: RF_REG Bypass mode.
0: Bypass mode disabled,
1: RF_REG in bypass mode

ST logo
ST logo

25.5.19 CBIAS0_ANA_ENG register (CBIAS0_ANA_ENG)

Address offset: 0x0174

Reset value: 0x0000 0088 (0xFFFF FFFF)

CBIAS0_ANA_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RFD_CBIAS_IPTAT_TRIM[3:0]RFD_CBIAS_IBIAS_TRIM[3:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 RFD_CBIAS_IPTAT_TRIM[3:0] : overloaded value for cbias current trimming (when CBIAS0_TRIM_TST_SEL = 1)Bits 3:0 RFD_CBIAS_IBIAS_TRIM[3:0] : overloaded value for cbias current trimming (when CBIAS0_TRIM_TST_SEL = 1)

25.5.20 CBIAS1_ANA_ENG register (CBIAS1_ANA_ENG)

Address offset: 0x0178

Reset value: 0x0000 0000 (0xFFFF FFFF)

CBIAS1_ANA_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CBIAS0_TRIM_TST_SELRes.Res.Res.Res.Res.Res.Res.
L
rw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 CBIAS0_TRIM_TST_SEL: When set, RFD_CBIAS_(IPTAT/IBIAS)_TRIM are used instead of HW trimmings

Bits 6:0 Reserved, must be kept at reset value.

ST logo
ST logo

25.5.21 SYNTHCAL0_DIG_OUT register (SYNTHCAL0_DIG_OUT)

Address offset: 0x0180

Reset value: 0x0000 0000 (0xFFFF FFFF)

SYNTHCAL0_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALAMP_OUT_6_0[6:0]
rrrrrrr

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:0 VCO_CALAMP_OUT_6_0[6:0]: VCO CALAMP value.

25.5.22 SYNTHCAL1_DIG_OUT register (SYNTHCAL1_DIG_OUT)

Address offset: 0x0184

Reset value: 0x0000 0001 (0xFFFF FFFF)

SYNTHCAL1_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALAMP_OUT_10_7[3:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 VCO_CALAMP_OUT_10_7[3:0]: VCO CALAMP value

25.5.23    SYNTHCAL2_DIG_OUT register (SYNTHCAL2_DIG_OUT)

Address offset: 0x0188
Reset value: 0x0000 0040 (0xFFFF FFFF)
SYNTHCAL2_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALFREQ_OUT[6:0]
rrrrrrr

Bits 31:7    Reserved, must be kept at reset value.
Bits 6:0    VCO_CALFREQ_OUT[6:0]: VCO CALFREQ value

25.5.24    SYNTHCAL3_DIG_OUT register (SYNTHCAL3_DIG_OUT)

Address offset: 0x018C
Reset value: 0x0000 0000 (0xFFFF FFFF)
SYNTHCAL3_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SYNTHCAL_DEBUG_BUS[7:0]
rrrrrrrr

Bits 31:8    Reserved, must be kept at reset value.
Bits 7:0    SYNTHCAL_DEBUG_BUS[7:0]: Calibration debug bus.
Provide PLL calibration error details when SYNTHCAL0_DIG_ENG = 0xC:
- bit[7:4]: 0000
- bit3: CAL_ERROR
- bit2: CALAMP_ERROR
- bit1: CALFREQ_ERROR
- bit0: CALKVCO_ERROR

ST logo
ST logo

25.5.25 SYNTHCAL4_DIG_OUT register (SYNTHCAL4_DIG_OUT)

Address offset: 0x0190

Reset value: 0x0000 0018 (0xFFFF FFFF)

SYNTHCAL4_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MOD_REF_DAC_WORD_OUT[5:0]
rrrrrr

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:0 MOD_REF_DAC_WORD_OUT[5:0]: Calibration word

25.5.26 SYNTHCAL5_DIG_OUT register (SYNTHCAL5_DIG_OUT)

Address offset: 0x0194

Reset value: 0x0000 0007 (0xFFFF FFFF)

SYNTHCAL5_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CBP_CALIB_WORD[3:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:0 CBP_CALIB_WORD[3:0]: CBP Calibration word

25.5.27 FSM_STATUS_DIG_OUT register (FSM_STATUS_DIG_OUT)

Address offset: 0x0198
Reset value: 0x0000 0000 (0xFFFF FFFF)
FSM_STATUS_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SYNTH_CAL_ERRORRes.Res.STATUS[4:0]
rrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 SYNTH_CAL_ERROR: PLL calibration error

Bits 6:5 Reserved, must be kept at reset value.

ST logo
ST logo

25.5.28 RSSI0_DIG_OUT register (RSSI0_DIG_OUT)

Address offset: 0x01A4

Reset value: 0x0000 0008 (0xFFFF FFFF)

RSSI0_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RSSI_MEAS_OUT_7_0[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 RSSI_MEAS_OUT_7_0[7:0]: Measure of the received signal strength.

25.5.29 RSSI1_DIG_OUT register (RSSI1_DIG_OUT)

Address offset: 0x01A8

Reset value: 0x0000 0008 (0xFFFF FFFF)

RSSI1_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.RSSI_MEAS_OUT_15_8[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 RSSI_MEAS_OUT_15_8[7:0]: Measure of the received signal strength.

25.5.30 AGC_DIG_OUT register (AGC_DIG_OUT)

Address offset: 0x01AC
Reset value: 0x0000 0000 (0xFFFF FFFF)
AGC_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_ATT_OUT[3:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 AGC_ATT_OUT[3:0]: AGC attenuation value

25.5.31 DEMOD_DIG_OUT register (DEMOD_DIG_OUT)

Address offset: 0x01B0
Reset value: 0x0000 0000 (0xFFFF FFFF)
DEMOD_DIG_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_ENDPD_FOUNDAAC_FOUNDCI_FIELD[1:0]
rrrrr

Bits 31:5 Reserved, must be kept at reset value.
Bit 4 RX_END: rx_end
Bit 3 PD_FOUND: pd_found
Bit 2 AAC_FOUND: aac_found
Bits 1:0 CI_FIELD[1:0]: CI field

ST logo
ST logo

25.5.32 AGC2_ANA_TST register (AGC2_ANA_TST)

Address offset: 0x01BC

Reset value: 0x0000 0000 (0xFFFF FFFF)

AGC2_ANA_TST register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_ANTENNAE_USR_TRIM[2:0]AGC2_ANA_TST_SEL
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:1 AGC_ANTENNAE_USR_TRIM[2:0]: the AGC antenna trimming value ( when AGC2_ANA_TST_SEL = 1)

Bit 0 AGC2_ANA_TST_SEL: Selection.

0: default value is 0 (normal mode): the AGC antenna trimming value comes from the SoC integrating the MR_BLE IP

1: forced by this register (test mode): the AGC antenna trim value comes from the AGC2_ANA_TST[3:1] bit field value.

25.5.33 AGC0_DIG_ENG register (AGC0_DIG_ENG)

Address offset: 0x01C0
Reset value: 0x0000 004A (0xFFFF FFFF)
AGC0_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_ENABLEAGC_THR_HIGH[5:0]
rwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.
Bit 6 AGC_ENABLE: Enable AGC
Bits 5:0 AGC_THR_HIGH[5:0]: High AGC threshold

ST logo
ST logo

25.5.34 AGC1_DIG_ENG register (AGC1_DIG_ENG)

Address offset: 0x01C4

Reset value: 0x0000 0084 (0xFFFF FFFF)

AGC1_DIG_ENG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.AGC_LOCK_SYNCAGC_AUTOLOCKAGC_THR_LOW_6[5:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 AGC_LOCK_SYNC : AGC locks when Access Address is detected (recommended)Bit 6 AGC_AUTOLOCK : AGC locks when level is steady between high threshold and lock thresholdBits 5:0 AGC_THR_LOW_6[5:0] : Low threshold for 6 dB steps

25.5.35 AGC10_DIG_ENG register (AGC10_DIG_ENG)

Address offset: 0x01E8

Reset value: 0x0000 0000 (0xFFFF FFFF)

Mapping for AGC step 0

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_0[1:0]ATT_LNA_0ATT_IF_0[2:0]
rwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_0[1:0]: attenuation at antenna level level for the AGC step 0

Bit 3 ATT_LNA_0: Attenuation at LNA Level for the AGC step 0.

Bits 2:0 ATT_IF_0[2:0]: attenuation at IF level for the AGC step 0

ST logo
ST logo

25.5.36 AGC11_DIG_ENG register (AGC11_DIG_ENG)

Address offset: 0x01EC

Reset value: 0x0000 0010 (0xFFFF FFFF)

Mapping for AGC step 1

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_1[1:0]ATT_LNA_1ATT_IF_1[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_1[1:0]: attenuation at antenna level level for the AGC step 1

Bit 3 ATT_LNA_1: Attenuation at LNA Level for the AGC step 1

Bits 2:0 ATT_IF_1[2:0]: attenuation at IF level for the AGC step 1

25.5.37 AGC12_DIG_ENG register (AGC12_DIG_ENG)

Address offset: 0x01F0

Reset value: 0x0000 0020 (0x000F FFFF FFFF)

Mapping for AGC step 2

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_2[1:0]ATT_LNA_2ATT_IF_2[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_2[1:0]: attenuation at antenna level for the AGC step 2

Bit 3 ATT_LNA_2: Attenuation at LNA Level for the AGC step 2

Bits 2:0 ATT_IF_2[2:0]: attenuation at IF level for the AGC step 2

25.5.38 AGC13_DIG_ENG register (AGC13_DIG_ENG)

Address offset: 0x01F4

Reset value: 0x0000 0030 (0xFFFF FFFF)

Mapping for AGC step 3

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_3[1:0]ATT_LNA_3ATT_IF_3[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_3[1:0]: attenuation at antenna level for the AGC step 3

Bit 3 ATT_LNA_3: Attenuation at LNA Level for the AGC step 3

Bits 2:0 ATT_IF_3[2:0]: attenuation at IF level for the AGC step 3

25.5.39 AGC14_DIG_ENG register (AGC14_DIG_ENG)

Address offset: 0x01F8

Reset value: 0x0000 0038 (0xFFFF FFFF)

Mapping for AGC step 4

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_4[1:0]ATT_LNA_4ATT_IF_4[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_4[1:0]: attenuation at antenna level for the AGC step 4

Bit 3 ATT_LNA_4: attenuation at LNA level for the AGC step 4

Bits 2:0 ATT_IF_4[2:0]: attenuation at IF level for the AGC step 4

25.5.40 AGC15_DIG_ENG register (AGC15_DIG_ENG)

Address offset: 0x01FC

Reset value: 0x0000 0039 (0xFFFF FFFF)

Mapping for AGC step 5

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_5[1:0]ATT_LNA_5ATT_IF_5[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_5[1:0]: attenuation at antenna level for the AGC step 5

Bit 3 ATT_LNA_5: Attenuation at LNA Level for the AGC step 5

Bits 2:0 ATT_IF_5[2:0]: attenuation at IF level for the AGC step 5

ST logo
ST logo

25.5.41 AGC16_DIG_ENG register (AGC16_DIG_ENG)

Address offset: 0x0200

Reset value: 0x0000 003A (0xFFFF FFFF)

Mapping for AGC step 6

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_6[1:0]ATT_LNA_6ATT_IF_6[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_6[1:0]: attenuation at antenna level for the AGC step 6

Bit 3 ATT_LNA_6: Attenuation at LNA Level for the AGC step 6

Bits 2:0 ATT_IF_6[2:0]: attenuation at IF level for the AGC step 6

25.5.42 AGC17_DIG_ENG register (AGC17_DIG_ENG)

Address offset: 0x0204

Reset value: 0x0000 003B (0xFFFF FFFF)

Mapping for AGC step 7

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_7[1:0]ATT_LNA_7ATT_IF_7[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_7[1:0]: attenuation at antenna level for the AGC step 7

Bit 3 ATT_LNA_7: Attenuation at LNA Level for the AGC step 7

Bits 2:0 ATT_IF_7[2:0]: attenuation at IF level for the AGC step 7

25.5.43 AGC18_DIG_ENG register (AGC18_DIG_ENG)

Address offset: 0x0208

Reset value: 0x0000 003C (0xFFFF FFFF)

Mapping for AGC step 8

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_8[1:0]ATT_LNA_8ATT_IF_8[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_8[1:0]: attenuation at antenna level for the AGC step 8

Bit 3 ATT_LNA_8: Attenuation at LNA Level for the AGC step 8

Bits 2:0 ATT_IF_8[2:0]: attenuation at IF level for the AGC step 8

25.5.44 AGC19_DIG_ENG register (AGC19_DIG_ENG)

Address offset: 0x020C

Reset value: 0x0000 003D (0xFFFF FFFF)

Mapping for AGC step 9

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_9[1:0]ATT_LNA_9ATT_IF_9[2:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 ATT_ANT_9[1:0]: attenuation at antenna level for the AGC step 9

Bit 3 ATT_LNA_9: Attenuation at LNA Level for the AGC step 9

Bits 2:0 ATT_IF_9[2:0]: attenuation at IF level for the AGC step 9

25.5.45 RXADC_HW_TRIM_OUT register (RXADC_HW_TRIM_OUT)

Address offset: 0x0224

Reset value: 0x0000 001B (0xFFFF FFFF)

RXADC_HW_TRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_RXADC_DELAYTRIM_Q[2:0]HW_RXADC_DELAYTRIM_I[2:0]
rrrrrr

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:3 HW_RXADC_DELAYTRIM_Q[2:0] : control bits of the RX ADC loop delay for Q channel (provided by the HW trimming, automatically loaded on POR).Bits 2:0 HW_RXADC_DELAYTRIM_I[2:0] : control bits of the RX ADC loop delay for I channel (provided by the HW trimming, automatically loaded on POR).

25.5.46 CBIAS0_HW_TRIM_OUT register (CBIAS0_HW_TRIM_OUT)

Address offset: 0x0228

Reset value: 0x0000 0088 (0xFFFF FFFF)

CBIAS0_HW_TRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HW_CBIAS_IPTAT_TRIM[3:0]HW_CBIAS_IBIAS_TRIM[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 HW_CBIAS_IPTAT_TRIM[3:0] : CBIAS current (provided by the HW trimming, automatically loaded on POR).Bits 3:0 HW_CBIAS_IBIAS_TRIM[3:0] : CBIAS current (provided by the HW trimming, automatically loaded on POR).

25.5.47 AGC_HW_TRIM_OUT register (AGC_HW_TRIM_OUT)

Address offset: 0x0230

Reset value: 0x0000 0006 (0xFFFF FFFF)

AGC_HW_TRIM_OUT register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_AGC_ANTENNAE_TRIM[2:0]Res.
rrr

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:1 HW_AGC_ANTENNAE_TRIM[2:0]: AGC trim value (provided by the HW trimming, automatically loaded on POR).

Note: this value depends on the RF BOM on the board. Value provided by engineering is based on a dedicated BOM and must be overloaded by SW if the customer selects/defines another BOM.

Bit 0 Reserved, must be kept at reset value.

ST logo
ST logo

25.5.48 ANTSW0_DIG_USR register (ANTSW0_DIG_USR)

Address offset: 0x0240

Reset value: 0x0000 001C (0xFFFF FFFF)

ANTSW0_DIG_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_TIME_TO_SAMPLE[6:0]
rwrwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:0 RX_TIME_TO_SAMPLE[6:0]: specifies the exact timing of the first I/Q sampling in the reference period.

Time unit is 250 ns.

Note: the value of this register is an offset to apply to a hard-coded 4.5 µs delay. The global delay (4.5 µs + programmable offset) is started from an internal trigger occurring before the Guard period on the air. The RX_TIME_TO_SAMPLE and RX_TIME_TO_SWITCH share the same internal trigger.

25.5.49 ANTSW1_DIG_USR register (ANTSW1_DIG_USR)

Address offset: 0x0244

Reset value: 0x0000 000B (0xFFFF FFFF)

ANTSW1_DIG_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_TIME_TO_SWITCH[5:0]
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:0 RX_TIME_TO_SWITCH[5:0]: specifies the exact timing of the antenna switching at receiver level (in AoA).

Time unit is 250 ns.

Note: the timing defined in this register is a delay from an internal trigger occurring before the Guard period on the air. The RX_TIME_TO_SAMPLE and RX_TIME_TO_SWITCH share the same internal trigger.

25.5.50 ANTSW2_DIG_USR register (ANTSW2_DIG_USR)

Address offset: 0x0248

Reset value: 0x0000 0029 (0xFFFF FFFF)

ANTSW2_DIG_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.TX_TIME_TO_SWITCH[6:0]
rwrwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:0 TX_TIME_TO_SWITCH[6:0]: specifies the exact timing of the antenna switching during transmission at LE_1M baud rate (in AoD).

Time unit is 125 ns.

Note: the timing defined in this register is a delay from an internal trigger occurring before the Guard period on the air (when transmit block starts sending the CTE to the modulator).

25.5.51 ANTSW3_DIG_USR register (ANTSW3_DIG_USR)

Address offset: 0x024C

Reset value: 0x0000 0023 (0xFFFF FFFF)

ANTSW3_DIG_USR register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.TX_TIME_TO_SWITCH_2M[6:0]
rwrwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:0 TX_TIME_TO_SWITCH_2M[6:0]: specifies the exact timing of the antenna switching during transmission at LE_2M baud rate (in AoD).

Time unit is 125 ns.

Note: the timing defined in this register is a delay from an internal trigger occurring before the Guard period on the air (when transmit block starts sending the CTE to the modulator).

The modulator latency differs between 1 M b/s and 2 Mb/s baud rate so 2 different delays need to be managed..

25.5.52 Trimming information

The Radio controller MR_BLE IP loads automatically HW trimming information located in the Flash memory of the SoC.

The trimmed information is:

Those trimming values are automatically loaded by the HW on reset and low power mode exit.

The loaded values are readable in dedicated radio registers (xx_HW_TRIM_OUT).

The AGC user trimming can be impacted by the BOM on the user board and may need to be overloaded. The SW can overload / replace the HW value

The AGC trimming consists in 1 information:

The HW values are reloaded on any reset and low power mode exit.

The SW values must be re-written after any reset or low power mode.

25.6 Radio FSM

The Radio FSM manages the analog radio block startup and stop sequences depending on requesting RF transfer.

25.6.1 Radio FSM sequence

This paragraph lists the main steps in Radio FSM sequence.

Figure 198: Radio FSM overview provides an overview of the Radio FSM states sequence.

Some transitions are triggered by hardware signals, but others are managed through timeout. The paragraph <XREF> lists the different timeouts.

Figure 198. Radio FSM overview

State machine diagram for Radio FSM overview showing states: IDLE, ACTIVE1, ENA_RF_REG, ENA_CURR, ACTIVE2, ENA_TRANSFO_LDO, SYNTH_SETUP, CALIB11, LOCKRXTX, EN_RX, RX, EN_PA, TX, PA_DWN_ANA. Transitions are labeled with events like 'Initialize = BLE port token request', 'port_selected_en (granted) & SoC clock accurate', 'RFREG_timeout (25us)', 'ena_curr_timeout (20us)', 'TX request active', 'RX request active', 'pll calib requested', 'end of pll calib', 'RX req active & exit_lockrxtx', 'TX req active & exit_lockrxtx', 'PA ready', '~TX req active', 'pll unlock'.
graph TD; IDLE((IDLE)) -- "Initialize = BLE port token request" --> ACTIVE1((ACTIVE1)); IDLE -- "~initialize" --> IDLE; ACTIVE1 -- "port_selected_en (granted) & SoC clock accurate" --> ENA_RF_REG((ENA_RF_REG)); ENA_RF_REG -- "RFREG_timeout (25us)" --> ENA_CURR((ENA_CURR)); ENA_CURR -- "ena_curr_timeout (20us)" --> ACTIVE2((ACTIVE2)); ACTIVE1 -- "~initialize | ~port_selected_en | ~SoC clock accurate" --> IDLE; ACTIVE2 -- "TX request active" --> ENA_TRANSFO_LDO((ENA_TRANSFO_LDO)); ACTIVE2 -- "RX request active" --> SYNTH_SETUP((SYNTH_SETUP)); ENA_TRANSFO_LDO -- "transfo_ldo_timeout (0us)" --> SYNTH_SETUP; SYNTH_SETUP -- "pll calib requested" --> CALIB11((CALIB11)); CALIB11 -- "end of pll calib" --> LOCKRXTX((LOCKRXTX)); SYNTH_SETUP -- "No pll calib requested" --> LOCKRXTX; LOCKRXTX -- "RX req active & exit_lockrxtx" --> EN_RX((EN_RX)); LOCKRXTX -- "TX req active & exit_lockrxtx" --> EN_PA((EN_PA)); EN_RX -- "en_rx_timeout (10us)" --> RX((RX)); RX -- "~RX req active" --> IDLE; EN_PA -- "PA ready" --> TX((TX)); TX -- "~TX req active" --> PA_DWN_ANA((PA_DWN_ANA)); PA_DWN_ANA -- "pll unlock" --> IDLE; TX -- "pll unlock" --> IDLE; IDLE -- "padresetn" --> IDLE;
State machine diagram for Radio FSM overview showing states: IDLE, ACTIVE1, ENA_RF_REG, ENA_CURR, ACTIVE2, ENA_TRANSFO_LDO, SYNTH_SETUP, CALIB11, LOCKRXTX, EN_RX, RX, EN_PA, TX, PA_DWN_ANA. Transitions are labeled with events like 'Initialize = BLE port token request', 'port_selected_en (granted) & SoC clock accurate', 'RFREG_timeout (25us)', 'ena_curr_timeout (20us)', 'TX request active', 'RX request active', 'pll calib requested', 'end of pll calib', 'RX req active & exit_lockrxtx', 'TX req active & exit_lockrxtx', 'PA ready', '~TX req active', 'pll unlock'.

25.6.2 Radio FSM states overview

Table 127 lists for each state the exit condition and the duration in the state when there is a deterministic one.

Table 127. Radio FSM states summary (including exit conditions and timings)

Radio FSM StateState descriptionCondition to exit and duration in the state
IDLENo RF activity requested: the analog RF IP is OFF.The Bluetooth LE link layer requests a token to the RRM semaphore
ACTIVE1Wait for port granted and SoC accurate clock indication.Both HW conditions are fulfilled
ENA_RF_REGEnable the RF LDO.Timeout = 25 µs
ENA_CURREnable the reference current block inside the RF2G4.Timeout = 20 µs
ACTIVE2This state confirms all clock and power conditions are OK to accept a RF transfer request.TX or RX request occurrence
ENA_TRANSFO_LDOEnable the LDO for the Power Amplifier.Timeout = 0 µs
SYNTH_SETUPStart the RF PLL block.No timeout. Exit immediately (1 MR_BLE clock cycle duration)
CALIB11Start the PLL calibration blockEnd of calibration HW information.
LOCKRXTX (*)Wait for RF PLL lock.Timeout =
– 40 µs when no PLL calibration
– 80 µs when PLL calibration
EN_RXEnable the analog RX chain.Timeout = 10 µs
RXRadio is in reception modeEnd of RX event (RX timeout, RX done...)
EN_PA (*)Start the power ramp-up sequence (8 steps) up to targeted power on the antennaReady signal informing targeted TX power is reached on the antenna (8 steps of 1.5 µs = 12 µs)
TXRadio is in transmission modeEnd of TX event (TX done or skipped)
PA_DWN_ANADisable the Power Amplifier blockTimeout = 5 µs

(*): The Radio FSM may abort the sequence and return to ACTIVE2 from those two states depending on RF PLL lock information:

If the PLL unlock event occurs outside those two states, the Radio FSM does not interfere. The SW is informed through an interrupt and is in charge to manage the situation.

The current state information is available in the FSM_STATUS_DIG_OUT radio register accessible by direct APB access (see section Section 25.5: Radio registers).

The Radio FSM uses timeout to exit states linked to analog block settlement to guarantee a deterministic duration between ACTIVE2 and TX or RX state at any occurrence. This is mandatory to be able to fit with Bluetooth protocol timings requirements in peer-to-peer communication flow.

Those deterministic durations are presented in Table 128.

Table 128. ACTIVE2 to TX or RX state duration

SequenceDurationComments
ACTIVE2 → TX with RF PLL calibration92 µsTo be used when the TX is done on a new frequency (channel) versus previous RF transfer
ACTIVE2 → TX without RF PLL calibration52 µsTo be used when the TX is done on the same frequency (channel) as previous RF transfer
ACTIVE2 → RX with RF PLL calibration90 µsTo be used when the RX is done on a new frequency (channel) versus previous RF transfer
ACTIVE2 → RX without RF PLL calibration50 µsTo be used when the RX is done on the same frequency (channel) as previous RF transfer

25.6.3 Radio FSM interrupts

The Radio FSM provides a dedicated interrupt output signal to the system.

The Radio FSM generates 6 individually maskable interrupts grouped in a RfFsm_event[5:0] list:

RfFsm_event[2] and RfFsm_event[1] are reserved.

All the sources are combined into a single signal to be connected outside the Radio controller MR_BLE IP to the interrupt controller of the SoC (see Table 122: Radio controller MR_BLE interruptions summary for mapping in the STM32WB09xE).

The interrupts can be enabled/disabled individually through the Radio controller APB registers:

See Section 25.8: Radio controller registers for more details.

25.7 Radio controller

The radio controller is a small block in charge of two features:

25.7.1 Slow clock measurement

The radio controller contains a block dedicated to the slow clock measurement.

This measurement:

The result provided by this block is both a period and a frequency information (in two separate results registers).

The software can program the window of measurement (in slow clock cycle number) and period result is provided in 16 MHz half-period unit.

25.7.2 Radio FSM interrupt management

During the sequences, the Radio FSM generates some interruptions to monitor some unexpected behavior at analog level. As the Radio FSM block does not have any APB interface, the interrupt control and status flags are managed inside the Radio controller block through APB registers:

See Radio FSM interrupts Section 25.6.3: Radio FSM interrupts for more details on interrupt root causes.

25.8 Radio controller registers

The RADIO_CONTROL_BLOCKBaseAddress keyword used for all the register base address information corresponds to the Radio controller registers base address decided by the SoC when integrating the IP.

Note: RADIO_CONTROL_BLOCKBaseAddress is 0x6000_1000 in the STM32WB09xE product.

Table 129. Radio control register list

OffsetRegister NameRegister TitleReset
0x0000RADIO_CONTROL_IDRADIO_CONTROL_ID register0x0000 3000
0x0004CLK32COUNT_REGCLK32COUNT_REG register0x0000 0017
0x0008CLK32PERIOD_REGCLK32PERIOD_REG register0x0000 0000
0x000CCLK32FREQUENCY_REGCLK32FREQUENCY_REG register0x0000 0000
0x0010RADIO_CONTROL_IRQ_STATUSRADIO_CONTROL_IRQ_STATUS register0x0000 0000
0x0014RADIO_CONTROL_IRQ_ENABLERADIO_CONTROL_IRQ_ENABLE register0x0000 0000

25.8.1 RADIO_CONTROL_ID register (RADIO_CONTROL_ID)

Address offset: 0x0000

Reset value: 0x0000 3000 (0xFFFF FFFF)

Identification register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PRODUCT[3:0]VERSION[3:0]REVISION[3:0]Res.Res.Res.Res.
rrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:12 PRODUCT[3:0]: incremented on major features add-on like new Bluetooth LE SIG version support

- 0x01: MR_BLE_V1

- 0x02: MR_BLE_V2

- 0x03: MR_BLE_V3

Bits 11:8 VERSION[3:0]: Cut Number

Bits 7:4 REVISION[3:0]: Incremented for metal fix version

Bits 3:0 Reserved, must be kept at reset value.

25.8.2 CLK32COUNT_REG register (CLK32COUNT_REG)

Address offset: 0x0004

Reset value: 0x0000 0017 (0xFFFF FFFF)

Window length register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.SLOW_COUNT[8:0]
rwrwrwrwrwrwrwrwrw

Bits 31:9 Reserved, must be kept at reset value.

Bits 8:0 SLOW_COUNT[8:0]: program the window length (in slow clock period) for slow clock measurement.

Slow clock is measured in a window of SLOW_COUNT+1 slow clock cycles

Note:

ST logo
ST logo

25.8.3 CLK32PERIOD_REG register (CLK32PERIOD_REG)

Address offset: 0x0008

Reset value: 0x0000 0000 (0xFFFF FFFF)

slow clock period

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SLOW_PERIOD[18:16]
rrr
1514131211109876543210
SLOW_PERIOD[15:0]
rrrrrrrrrrrrrrrr

Bits 31:19 Reserved, must be kept at reset value.

Bits 18:0 SLOW_PERIOD[18:0]: indicates slow clock period information. The result provided in this field corresponds to the length of SLOW_COUNT periods of the slow clock (32kHz) measured in 16 MHz half-period unit.

Example:

if SLOW_COUNT=0x17=23d and SLOW_PERIOD=24000d

Slow clock period = \(SLOW\_PERIOD / (16e6 \times 2 \times (SLOW\_COUNT+1)) = 24000 / (16e6 \times 2 \times 24) = 31.25e-6\)

A new calculation can be launched by writing zero in CLK32PERIOD register. In this case, the time window uses the value programmed in SLOW_COUNT field.

25.8.4 CLK32FREQUENCY_REG register (CLK32FREQUENCY_REG)

Address offset: 0x000C

Reset value: 0x0000 0000 (0xFFFF FFFF)

slow frequency register

31302928272625242322212019181716
Res.Res.Res.Res.Res.SLOW_FREQUENCY[26:16]
rrrrrrrrrrr
1514131211109876543210
SLOW_FREQUENCY[15:0]
rrrrrrrrrrrrrrrr

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:0 SLOW_FREQUENCY[26:0]: value equal to (2^39/ SLOW_PERIOD).

ST logo
ST logo

25.8.5 RADIO_CONTROL_IRQ_STATUS register
(RADIO_CONTROL_IRQ_STATUS)

Address offset: 0x0010

Reset value: 0x0000 0000 (0xFFFF FFFF)

interrupt status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.RADIO_FSM_IRQ[5:0]Res.Res.Res.Res.Res.Res.Res.SLOW_CLK_IRQ
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

Bits 31:14 Reserved, must be kept at reset value.

Bits 13:8 RADIO_FSM_IRQ[5:0]: Radio FSM interrupt status (also called RfFsm_event_irq).

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 SLOW_CLK_IRQ: slow clock measurement end of calculation interrupt status

When read:

Write '1' to clear the interrupt

Note: those flags are set regardless associated RADIO_CONTROL_IRQ_ENABLE mask (which is used onyl to raise or not the interrupt request towards the CPU)

25.8.6 RADIO_CONTROL_IRQ_ENABLE register
(RADIO_CONTROL_IRQ_ENABLE)

Address offset: 0x0014

Reset value: 0x0000 0000 (0xFFFF FFFF)

interrupt enable register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.RADIO_FSM_IRQ_MASK[5:0]Res.Res.Res.Res.Res.Res.Res.SLOW_CLK_IRQ_MASK
rwrwrwrwrwrwrw

Bits 31:14 Reserved, must be kept at reset value.

Bits 13:8 RADIO_FSM_IRQ_MASK[5:0]: mask for each RfFsm_event (Radio FSM) interrupt.

0: Interrupt disabled

1: Interrupt enabled.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 SLOW_CLK_IRQ_MASK: mask slow clock measurement interrupt

0: Interrupt disabled

1: Interrupt enabled.

25.9 IP_BLE

The Bluetooth LE link layer of the IP_BLE is a programmable automate which can act as a central or a peripheral node.

The Bluetooth LE link layer embeds a sequencer which automatically reads data and job request from link tables and link lists prepared in advance by the CPU in retention RAM. This allows the Bluetooth LE link layer starting a Bluetooth LE reception or transmission directly at low power mode exit while the CPU is still booting and not yet able to manage any firmware action.

25.9.1 Overview

The IP_BLE embeds:

The Bluetooth LE link layer manages:

The Bluetooth LE link layer embeds a sequencer which uses information located in RAM tables to manage the RF transfer and part of the Bluetooth LE protocol. Those RAM tables need to be prepared by the SW.

In general, the process to generate a Bluetooth LE transfer is the following:

The sequencer needs a trigger event to start any action.

Then the sequencer manages a transmission or reception (or no) sequence depending on the RAM table content it reads.

Possible trigger timers for the sequencer

There are 3 different timers that can trig a Bluetooth LE sequence:

  1. 1. Wakeup timer:
    • – this timer is based on absolute time (slow clock granularity),
    • – this timer is inside the Wakeup block and is the only one able to wake up the IP_BLE (and the SoC) from a low power state
    • – this timer is enabled by setting the BLUE_SLEEP_REQUEST_MODE[30] = BLE_WAKEUP_EN bit and the trigger event time is programmed in the BLUE_WAKEUP_TIME[31:0]
    • – If a RRM command is enabled (through the StatMach table, RadioComListEna field), the sequencer requests the Command0 to the RRM-UDRA block during the sequence.
  2. 2. Timer1 timer
    • – this timer is managed by the IP_BLE sequencer itself but using the interpolated time (see section Interpolated time),
    • – the Timer1 is in fact a comparator between interpolated absolute time provided by the Wakeup block and a match value located in the sequencer,
    • – the granularity of this timer is 16 x slow clock period,
    • – this timer is enabled by setting DESTINATION[1:0] = “10” in the TIMEOUTDESTREG APB register in IP_BLE,
    • – the Timer1 trigs an event when the current interpolated time matches (or has gone past) the scheduled time programmed in TIMEOUTREG APB register,
    • – this timer cannot be used in low power mode,
    • – If a RRM command is enabled (through the StatMach table, RadioComListEna field), the sequencer requests the Command1 to the RRM-UDRA block during the sequence.
  3. 3. Timer2 timer
    • – this timer is based on a relative time and starts counting at the end of the previous transmission/reception,
    • – the granularity of this counter is 1 µs,
    • – this timer is located inside the sequencer and cannot be used in low power mode,
    • – Timer2 triggers an event when the counter matches the value programmed in the Timer2[19:0] bit field of the TxRxPack RAM table,
    • – this timer is enabled by setting the Timer2En bit in the TxRxPack RAM table of a sequence, allowing a trigger event for the next sequence (TX/RX sequence)
    • – this timer is supposed to be used for short time delay between two Bluetooth transfers (to manage T_IFS or T_MSS for instance),
    • – If a RRM command is enabled (through the StatMach table, RadioComListEna field), the sequencer requests the Command2 to the RRM-UDRA block during the sequence.

How to manage these 3 timers:

The 3 timers are managed (enabled/disabled) different way. The following paragraph explains how to manage according to the use-case.

Each timer is one-shot. This means once it expires, it stops and the software has to reprogram/re-enable it for a new sequence.

Furthermore, as there is no mechanism to prevent more than one timer to be active at the same time, the software must ensure it does not start a timer while another one is already on-going for the next sequence.

Here is a summary of the enable/disable method for each timer:

Note:

Bluetooth LE sequence description

As explained before, the Bluetooth LE sequence starts on the trigger event (from the wakeup timer or the Timer1 or the Timer2).

The sequence is managed in three main phases:

At the end of those phases, an interrupt (if at least one active source enabled) is generated to the CPU.

Note: The status flags and potential associated interrupt are set only at the end of the sequence and not in real time when the event that generates them occurs.

The STATUSREREG.SEQDONE flag (and INTERRUPT1REG.SEQDONE if enabled in the GlobalStatMach table) is always raised when the sequencer exits a sequence started by a trig event, whatever the process it followed (exit on error at any steps or run up to the end without problems). For this reason, this specific flag is not mentioned/repeated each time in this-chapter.

The first RAM access done by the sequencer on any trigger event is to get the GlobalStatMach word 0x01 to check the Active bit to know if the parameters the sequencer is about to read in the RAM table for the 1st INIT phase can be considered as ready and up to date.

If the Active bit is low, the sequence stops, and the only actions done are:

If the GlobalStatMach.Active bit is set, then the sequencer starts the initialization phase.

Note: An automatic Active bit auto clear during context saving phase of the sequence can be enabled through the ChkFlagAutoClearEna bit in the GlobalStatMach. This avoids unexpected TX/RX due to sequencer trigger event while the SW did not update the RAM tables (kind of SW acknowledge to allow next transfer).

Table 199 provides an overview of the sequencer steps and control versus other blocks.

Figure 199. Sequencer steps overview

Timing diagram showing sequencer steps (IDLE, INITIALIZATION, TX/RX, CONTEXT SAVING, IDLE) and associated signals like token request, TX/RX request, and interrupts.

The diagram illustrates the sequencer's operation over time. It starts with a 'Timer Trig event' that triggers the sequencer from an 'IDLE' state into the 'INITIALIZATION' phase. This phase is subdivided into '1st INIT', '2nd INIT', and 'DATA INIT' steps. The 'Sequencer AHB R/W' signal shows active periods corresponding to these initialization steps. Timing parameters like 'InitDelay', 'Tx/RcvDelayChk', 'ConfigEndDur', and 'Txdata ReadyChk' are indicated. Following initialization, the sequencer enters the 'TX/RX' phase, which involves a 'token request to RRM semaphore' and a 'TX/RX request to Radio FSM'. A 'Data TX/RX activity start pulse' marks the beginning of data transfer. The 'TX/RX' phase ends with an 'End of TX/RX done pulse', after which the sequencer moves to 'CONTEXT SAVING' and finally returns to 'IDLE'. An interrupt signal 'irq_BLE_int1 aka BLE_TXRX' is shown being asserted at the end of the sequence.

Timing diagram showing sequencer steps (IDLE, INITIALIZATION, TX/RX, CONTEXT SAVING, IDLE) and associated signals like token request, TX/RX request, and interrupts.

First initialization phase

During the first initialization phase, the sequencer only reads the minimum information it needs in the RAM table to be able to start the Radio FSM for a reception or a transmission at the end of this phase.

The sequencer launches up to 3 parallel tasks:

  1. 1. Set (or maintain if KeepSemaReq bit was set in the TxRxPack RAM table of the previous sequence) the take_req signal toward the RRM Semaphore block to request/keep the token

to access to the radio resources.

  1. 2. If the RadioComListEna bit is set in the current StatMach table, send a command to the RRM UDRA:
    • – Command 0 if trig event is the Wakeup timer,
    • – Command 1 if trig event is the Timer1,
    • – Command 2 if the trig event is the Timer2.
  2. 3. Get the minimum information needed to be able to start the Radio FSM (transmission or reception, channel number, PLL calibration requested or not, etc.)

At the end, this task also computes the channel number through the channel incrementer hardware block if requested and writes few radio registers (MOD_DEM_DIG_USR, RADIO_FSM_USR and PHYCTRL_DIG_USR) according to information from the RAM tables.

This first initialization step ends on a timeout defined by a bit field in the GlobalStatMach:

Note: despite the wakeup trigger event to start the sequence is based on a slow clock granularity, typ. 32kHz (as the trigger occurs at BLUE_WAKEUP_TIME[31:4]), the sequencer waits until interpolate time is BLUE_WAKEUP_TIME[31:0 + WakeUpInitDelay to exit the 1st INIT step which means the 512kHz granularity is respected.

InitDelay is used as a generic name for this duration to simplify the documentation as it can be 3 different bit fields that defines it depending on the configuration.

Note: The main constraint on this delay depends on the previous setup:

Caution: Whatever the trig event source, this InitDelay management in the sequencer uses the system clock and the user must ensure that the system runs on an accurate clock to have a precise delay.

When the InitDelay timeout expires, the sequencer checks several conditions to decide if it switches to the second initialization step or exits with error. The checked conditions are:

If all the conditions are true, then the sequencer:

If at least one of the conditions is false then:

Second initialization step

The 2nd INIT step is used by the sequencer to get all the information from the RAM tables linked to the RF transfer to proceed (except DataPtr and TxDataReady bit fields).

This means the software must have filled all the RAM tables information (except DataPtr and TxDataReady bit fields) when the InitDelay timeout expires.

The 2nd INIT step starts when the TX or RX request is sent to the Radio FSM. The first action of the sequencer is to read few delays in the GlobalStatMach. These delays are needed during the 2nd INIT and DATA INIT steps.

This 2nd INIT step ends on a timeout based on 2 information read in the GlobalStatMach:

  1. 1. init_radio_delay (in μs), used as a generic name for this duration to simplify the documentation: it is one of possibility out of 4 different bit fields depending on the transfer configuration:
    • – TransmitNoCalDelayChk when the transfer is a TX and no PLL calibration is requested (CalReq bit is low),
    • – TransmitCalDelayChk when the transfer is a TX and a PLL calibration is requested (CalReq bit is set),
    • – ReceiveNoCalDelayChk when the transfer is a RX and no PLL calibration is requested (CalReq bit is low),
    • – ReceiveCalDelayChk when the transfer is a RX and a PLL calibration is requested (CalReq bit is set),
  2. 2. TxdataReadyCheck: delay given to the sequencer to get the two last information which are DataPtr and TxDataReady information in the RAM table. These last readings are done in the third initialization step called DATA_INIT.

The 2nd INIT ends after “init_radio_delay – TxdataReadyCheck” μs.

From the 2nd INIT step, the Radio FSM is running in parallel of the sequencer getting information in the RAM tables. The user must ensure the init_radio_delay duration does not exceed the RF analog setup time up to power on the antenna for a transmission (or ready to receive on the antenna). This means the 2nd INIT step must not exceed:

Note: For transmission, the init_radio_delay timeout must expire before the Radio FSM is in TX mode to avoid missing the start of the preamble sending on the antenna (otherwise garbage is sent while preamble is supposed to be output).

For a reception, the init_radio_delay must expire close to the switch in RX state of the Radio FSM, knowing the RcvTimeout counter starts when the init_radio_delay expires.

At very beginning of the 2nd INIT step:

The 2nd INIT step really starts to fetch information related to the transfer in the RAM tables when the relative timer reaches “init_radio_delay – ConfigEndDuration”.

The GlobalStatMach.ConfigEndDuration bit field allows delaying the reading of the transfer information contained in the RAM tables by the sequencer. The goal of this delay is to provide more margin to the SW to fill the RAM table information that is read during 2nd INIT. This is possible as the RAM table read session is shorter than the analog radio setup duration.

Figure 126 provides a summary of the timing information contributors for the initialization steps.

Figure 200. Sequencer Initialization steps timing overview

Timing diagram showing sequencer initialization steps: 1st INIT, 2nd INIT, and DATA INIT. It includes events like 'Sequencer trigger event', 'init_delay', 'init_radio_delay', 'TxDataReadyChk', and 'Radio FSM reaches TX or RX state'.

The diagram illustrates the timing sequence for sequencer initialization. It starts with a 'Sequencer trigger event' leading to the '1st INIT' phase. This is followed by the '2nd INIT' phase, which includes a period of 'No Sequencer activity' to allow the SW to finish RAM table updates. The 'init_delay' period ends with a 'TX/RX command to Radio FSM'. The '2nd INIT' phase continues with 'Read RAM table info for 2nd INIT' and 'Read RAM table info for DATA INIT'. The 'init_radio_delay' period ends with 'TxDataReadyChk'. Finally, the 'DATA INIT' phase leads to 'Start transmit/receive digital block' and 'Radio FSM reaches TX or RX state'. A 'ConfigEndDuration' interval is shown between the start of the 2nd INIT and the TxDataReadyChk event.

Timing diagram showing sequencer initialization steps: 1st INIT, 2nd INIT, and DATA INIT. It includes events like 'Sequencer trigger event', 'init_delay', 'init_radio_delay', 'TxDataReadyChk', and 'Radio FSM reaches TX or RX state'.

Data initialization step

This Data INIT step starts when the 2nd INIT step ends.

During this step, the sequencer only gets 2 values from the table:

The GlobalStatMach.TxdataReadyCheck is used to delay the start of this DATA INIT step to let more time to the software to provide the data pointer (and first values to transmit if transfer is a transmission).

The DATA INIT step ends when the relative timer (started at the beginning of the 2nd INIT step) reaches init_radio_delay:

For transmission, a synchronization mechanism is in place between the transmit block and the Radio FSM: the transmit block waits for the TX state information from the Radio FSM to know when data can be sent to the modulator. As the transmit block is supposed to receive the start pulse from the sequencer before the Radio FSM reaches the TX state, a wait window is defined to avoid waiting forever: this time window is defined in the GlobalStatMach.TxReadyTimeout bit field.

Caution: It is the responsibility of the software to ensure that the init_radio_delay, the ConfigEndDuration and the TxdataReadyCheck values are coherent to guarantee both data ready on time in the table and start pulse sent on time to the receive/transmit block.

Transmission / reception step

The transmission / reception step starts when the start pulse is sent by the sequencer to the transmit or to the receive block.

This step ends when the transmit/receive block indicates the transfer is done:

Important:

Context saving step

The context saving steps consists in RAM write back operation in some RAM table words to update with the result of the RF transfer that just ended.

This step starts when the sequencer gets the transfer done information from the transmit or receive block.

The RAM write back impacts the following RAM table elements:

Bluetooth LE sequence summary

The sequences of operations characterizing a transmission and a reception are summarized in the following timing diagrams.

Figure 201. TX sequence

Timing diagram for TX sequence showing the sequence of operations from trigger event to IRQ to CPU.

The diagram illustrates the TX sequence timeline. It begins with a 'Trigger event' followed by an 'InitDelay'. The sequence then proceeds through three initialization phases: '1st INIT', '2nd INIT', and 'DATA INIT'. A horizontal bar labeled 'ConfigEnd Duration' spans from the start of '2nd INIT' to the end of 'DATA INIT'. A vertical dashed line marks the end of 'DATA INIT', with a horizontal bar labeled 'TxData ReadyChk' preceding it. Following this is the 'TxDelay' period, starting at 'TxDelay Start' and ending at 'TxDelay End'. The 'TX' phase occurs during this delay. A 'TxReady Timeout' is indicated by a blue double-headed arrow starting from the end of 'DATA INIT'. The sequence concludes with 'RAM write back' and an 'IRQ to CPU' signal.

Timing diagram for TX sequence showing the sequence of operations from trigger event to IRQ to CPU.

Figure 202. RX sequence

Timing diagram for RX sequence showing the sequence of operations from trigger event to IRQ to CPU.

The diagram illustrates the RX sequence timeline. It begins with a 'Trigger event' followed by an 'InitDelay'. The sequence then proceeds through three initialization phases: '1st INIT', '2nd INIT', and 'DATA INIT'. A horizontal bar labeled 'ConfigEnd Duration' spans from the start of '2nd INIT' to the end of 'DATA INIT'. A vertical dashed line marks the end of 'DATA INIT', with a horizontal bar labeled 'TxData ReadyChk' preceding it. Following this is the 'RX' phase. A 'RcvTimeout' is indicated by a blue double-headed arrow starting from the end of 'DATA INIT'. The sequence concludes with 'RAM write back' and an 'IRQ to CPU' signal.

Timing diagram for RX sequence showing the sequence of operations from trigger event to IRQ to CPU.

Possible root causes of aborted sequence

It may happen that the sequence is not started or interrupted before the end for different reasons.

In any case, the SEQDONE flag (and interrupt if enabled) occurs at the end of a sequence whatever the status (successful or failed).

Then some status/error flags (with associated maskable interrupt) are available to get the reason of abortion or to have complementary information on the sequence that just occurred.

Active bit is low

The sequence is stopped just after the trigger event because the Active bit in the GlobalStatMach RAM table is read equal to 0.

If active bit is low, then:

RRM Semaphore does not grant the IP_BLE on time

On trigger event and if active bit is high, the sequencer requests the token to the RRM Semaphore to have the control of the radio resources.

If at the end of the initialization delay (WakeupInitDelay or Timer12InitDelayCal or Timer2InitDelayNoCal), the RRM still not confirms the IP_BLE has been granted, then:

Radio FSM not in ACTIVE2 state on time

This error happens if the Radio FSM is not in ACTIVE2 state at the end of the 1st INIT step (on InitDelay timeout expiration).

If at the end of the initialization delay (WakeupInitDelay or Timer12InitDelayCal or Timer2InitDelayNoCal), the Radio FSM still not confirmed it is ready to start a TX or RX sequence (no accurate clock present for instance):

Configuration error

A configuration error occurs if the value contained by the Rcvpoint or Txpoint field or IQSamplingPtr of the current StatMach RAM table is not modulo 4 (does not correspond to a 32-bit aligned address).

Note: The StatMach.IQSamplingPtr value is checked only for some values in other RAM table bit fields. Refer to IQSamplesPtr[31:0] or AntennaPatternPtr[31:0] not 32-bit aligned for details.

In this case:

Address Pointer error

An address pointer error occurs if the TxRxPack.NextPtr[31:24], the TxRxPack.DataPtr[31:24] or the StatMach.IQSamplestPtr[31:24] (if TxRxPack.CTEAndSamplingEnable=1) is not equal to the SoC RAM base address.

In this case:

PLL lock fail (only if GlobalStatMach.AutoTxRxSkipEn = 1)

If the AutoTxRxSkipEn bit in the GlobalStatMach RAM table, the sequencer skips the sequence if the PLL lock fail information is raised.

This PLL lock fail corresponds to the fact the PLL did not lock on time and is provided by the Radio FSM. It is checked by the sequencer at the end of the initialization step, before to enter the TX-RX step.

In this case:

TxRxSkip APB command

An APB command is available to skip an on-going TX or RX transfer. The software needs to write '1' in TXRXSKIP bit of the CMDREG IP_BLE APB register.

Note: This bit is auto-cleared immediately by the hardware.

The software must be aware the TxRxSkip APB command is considered only during a sequence. Else the skip request is ignored (not recorded and no TXRXSKIP interrupt/status flag is raised on the next sequence).

The behavior differs depending on when the TxRxSkip command occurs inside the sequence.

Table 130. Summary of flags and RAM table pointers behavior versus TX Skip command
"Skip at" phaseInterrupt flagsRAM table pointers updatedRAM Write back
DONE Bit[25]TXRXSKIP Bit[21]TXERROR_1 Bit[9]TX PrevTXTX Next
1st INITNOYESNONONONONO
2nd INITNOYESNONONONONO
DATA INITNOYESNONONONONO
TXYESYESYESNONOYESYES
CONTECT SAVINGYESNONOYESYESYESYES
Table 131. Summary of flags and RAM table pointers behavior versus RX Skip command
"Skip at" phaseInterrupt flagsRAM table pointers updatedRAM Write back
RCVOK Bit[31]RCVCRCER R Bit[30]DONE Bit[25]TXRXSKIP Bit[21]RCV PrevRCV
1st INITNONONOYESNONONO
2nd INITNONONOYESNONONO
DATA INITNONONOYESNONONO
RXNOYESYESYESNOYESYES
CONTECT SAVINGYESNOYESNOYESYESYES

In all scenarios, the IntTxRxSkip bit in the GlobalStatMach must be high to have an interrupt generated when STATUSREG.TXRXSKIP bit is high. In this case, INTERRUPT1REG.TXRXSKIP bit is also high. The enable mask is readable in INTERRUPT1ENABLEREG.TXRXSKIP bit.

AllTableReady bit not set on time

During the 2nd INIT step, the sequencer reads the TxRxPack.AllTableReady bit just after the ConfigEndDuration waiting loop (but checks its value only when exiting DATA INIT step at the end of init_radio_delay).

The role of this bit is to guarantee the information related to the transmission/reception packet (especially data pointers) in the TxRxPack (except the payload bytes when transmission) are valid/up-to-date.

If the recorded TxRxPack.AllTableReady is not high:

TxdataReady bits not set on time

This bit is used only when the on-going transfer is a transmission (not checked on a reception).

It adds flexibility to the software to be able to go on filling the data payload to transmit while the transmission has already started on the antenna.

The recommendation is to set this bit only after at least 16 bytes of Tx data payload are available in the data buffer.

The sequencer reads the TxRxPack.TxDataReady bit at the beginning of the DATA INIT step but checks its value only at the end of the init_radio_delay.

If the recorded TxRxPack.TxDataReady is not high:

Receive length error

This aborting issue can occur only on reception.

A Receive length error is detected if the received length value decoded in the received frame header is greater than the StatMach.MaxReceivedLength[7:0] bit field. This feature can be used when free RAM area is limited and does not allow receiving big packets.

If the receive block detect a packet length in the received header that is greater than the StatMach.MaxReceiveLength value:

Note: As the receiver truncates the received frame to a reduced length, a CRC error occurs in parallel and potential other side effect error flags. So the RCVLENGTHERROR flag must be considered before the others regarding a reception.

25.9.3 IP_BLE interrupts

The Bluetooth LE link layer provides 2 separate interrupt lines:

The IP_BLE interrupts:

Note: Only enabled interrupts can be read at '1' in this INTERRUPT1REG register. To have the equivalent without enable mask, the STATUSREG IP_BLE APB register must be read.

The AES interrupts:

Note: The "end of calculation" information is only available through enabled interruption. The MANAESSTATREG and the AESLEPRIVSTATREG IP_BLE APB registers contain other flags, not equivalent to INTERRUPT2REG registers.

25.9.4 IP_BLE RAM table

Each time a trigger event is sent to the Bluetooth LE link layer, the sequencer fetches the RAM tables to get the needed information to know what to configure for the radio and which sequence to start (RX or TX)

There are several types of tables:

Table 203 gives an overview of RAM tables dependencies. In the provided example, the GlobalStatMach is currently managing the connection number X (StatMachx on-use) and the data buffer points on itself from the third transfer of each type.

Figure 203. RAM tables dependencies overview

Diagram showing RAM tables dependencies overview. It includes structures like GlobStatMach, StatMachx, TxRxPack_RX0/1/2, TxRxPack_TX0/1/2, and DataPack_RX0/1/2, TX0/1/2. A 'Managed by RRM' section shows CmdAddrList pointing to Port0 Cmd0, Port0 Cmd1, and Port1 Cmd0.

The diagram illustrates the dependencies between various RAM tables in the Radio IP. At the top, the GlobStatMach table (blue) contains RadioConfigPtr and CurStMachNum = x. An arrow from CurStMachNum points to the StatMachx table (red). The StatMachx table contains TxPoint, RcvPoint, TxPointPrev, RcvPointPrev, and TxPointNext. An arrow from TxPoint points to the TxRxPack_TX0 table (green). The TxRxPack_TX0 table contains NextPtr and DataPtr, with DataPtr pointing to DataPack_TX0. Similarly, TxRxPack_TX1 points to DataPack_TX1, and TxRxPack_TX2 points to DataPack_TX2. On the left, TxRxPack_RX0, TxRxPack_RX1, and TxRxPack_RX2 (green) point to DataPack_RX0, DataPack_RX1, and DataPack_RX2 respectively. Each TxRxPack_RX table has a NextPtr pointing to the next one in the sequence. A dashed orange box labeled "Managed by RRM" contains the CmdAddrList table, which points to Port0 Cmd0, Port0 Cmd1, and Port1 Cmd0. The GlobStatMach table also has a direct arrow pointing to the StatMachx table.

Diagram showing RAM tables dependencies overview. It includes structures like GlobStatMach, StatMachx, TxRxPack_RX0/1/2, TxRxPack_TX0/1/2, and DataPack_RX0/1/2, TX0/1/2. A 'Managed by RRM' section shows CmdAddrList pointing to Port0 Cmd0, Port0 Cmd1, and Port1 Cmd0.

GlobalStatMach RAM table

The GlobalStatMach location is frozen by the hardware at address 0x2000_00C0 in the STM32WB09xE product. Refer to Table 4: SRAM0 reserved locations.

GlobalStatMach RAM table overview

The GlobalStatMach is unique and mainly contains static information/options.

Table 132. GlobalStatMach RAM table(1)

WordByte addrR/W by IP_BLE76543210
0x000x0NoRadioConfigPtr[7:0]
0x1RadioConfigPtr[15:8]
0x2RadioConfigPtr[23:16]
0x3RadioConfigPtr[31:24]
0x010x4R/WActiveCurStMachNum
0x5WakeupInitDelay
0x6Timer12InitDelayCal
0x7Timer2InitDelayNoCal
0x020x8RTransmitCalDelayChk
0x9TransmitNoCalDelayChk
0xAReceiveCalDelayChk
0xBReceiveNoCalDelayChk
0x030xCRConfigEndDuration
0xDTxdataReadyCheck
0xETxdelayStart
0xFTimeCapture(2)TimeCaptureSel(2)TxdelayEnd
0x040x10RTxReadyTimeout
0x11RcvTimeout[7:0]
0x12RcvTimeout [15:8]
0x13----RcvTimeout [19:16]
Table 132. GlobalStatMach RAM table(1) (continued)
WordByte addrR/W by IP_BLE76543210
0x050x14R-----ChkFlag
AutoCle
arEna
AutoTxR
xskipEn
0x15--------
0x16IntNoAct
iveLErro
r
IntTxData
ReadyErr
or
IntAllTa
bleRea
dyError
IntAddP
ointError
----
0x17IntConfi
gError
IntActive2
Err
intTxRx
Skip
IntSeqD
one
-IntSema
Timeout
Error
IntRcvLe
ngthErro
r
-
0x060x18R-DefaultAntennaID[6:0]
0x19--------
0x1A--------
0x1B--------
  1. 1. Unused cells are filled with “-”
  2. 2. Content of these cells is for debug and qualification purposes.

The following sub-chapter describes the GlobalStatMach bit fields to help the user to program accurately the table.

init_radio_delay is the generic name for the delay that can be TransmitCalDelayChk or TransmitNoCalDelayChk or ReceiveCalDelayChk or ReceiveNoCalDelayChk depending on transfer configuration (see Second initialization step for more details).

25.10 GlobalStatMach registers

Table 133. GLOBALSTATMACH_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000WORD0WORD0 register0x0000 0000
0x0004WORD1WORD1 register0x0000 0000
0x0008WORD2WORD2 register0x0000 0000
0x000CWORD3WORD3 register0x0000 0000
0x0010WORD4WORD4 register0x0000 0000
0x0014WORD5WORD5 register0x0000 0000
0x0018WORD6WORD6 register0x0000 0000

25.10.1 WORD0 register (WORD0)

Address offset: 0x0000

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD0 register

31302928272625242322212019181716
RADIOCONFIGPTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RADIOCONFIGPTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 RADIOCONFIGPTR[31:0]: Radio Configuration address Pointer.

Contains the address of the command_start_list used by the RRM block to execute UDRA command.

Caution: This pointer must be 32-bit aligned.

Note: this value is loaded automatically by the RRM when the MR_BLE_V2 IP exits reset. However, it is also possible to make the RRM reload it through a reload command in UDRA_CTRL register

25.10.2 WORD1 register (WORD1)

Address offset: 0x0004

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD1 register

31302928272625242322212019181716
TIMER2INITDELAYNOCAL[7:0]TIMER12INITDELAYCAL[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
WAKEUPINITDELAY[7:0]ACTIVECURSTMACHNUM[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 TIMER2INITDELAYNOCAL[7:0]: Delay between Timer2 trig event on sequencer and RX/TX request sending to the Radio FSM. It corresponds to the sequencer 1st INIT step duration.

This bit field is used for Timer2 trig event only if CalReq bit is low in current TxRxPack RAM table (No PLL Calibration is requested).

The time unit for this delay is 1 μs.

Note: This field is written back with value read at the beginning of the sequence only if the ChkFlagAutoClearEna bit = '1'.

Bits 23:16 TIMER12INITDELAYCAL[7:0]: Delay between Timer1 or Timer2 trig event on sequencer and RX/TX request sending to the Radio FSM. It corresponds to the sequencer 1st INIT step duration.

This bit field is used for Timer2 trig event only if CalReq bit is set in current TxRxPack RAM table (PLL Calibration is requested).

The time unit for this delay is 1 μs.

Note: This field is written back with value read at the beginning of the sequence only if the ChkFlagAutoClearEna bit = '1'.

Bits 15:8 WAKEUPINITDELAY[7:0]: Delay between wakeup timer trig event on sequencer and RX/TX request sending to the Radio FSM. It corresponds to the sequencer 1st INIT step duration.

Note: this bit field is not used if trig event comes from Timer1 or Timer2.

The time unit for this delay/value is a period of slow clock frequency x 16 (if slow clock is 32kHz, this bit field unit is 1 period of 512 kHz).

Note: This field is written back with value read at the beginning of the sequence only if the ChkFlagAutoClearEna bit = '1'.

Bit 7 ACTIVE: Must be at '1' when the trig event (Wakeup Timer, Timer1 or Timer2) occurs to starts a Bluetooth LE link layer sequence. Else no RF sequence nor timer management is done by the sequencer.

Only SEQDONE and NOACTIVEERROR flags are raised in STATUSREG and INTERRUPT1REG (if associated interrupts are enabled).

Note: This field is written back to '0' only if the ChkFlagAutoClearEna bit = '1'.

Bits 6:0 CURSTMACHNUM[6:0]: current connection machine number.

Defines the state machine number (in the range from 0 to 127) which is running for the current transmission or reception.

It is used to calculate the RAM address from which the State machine table ("StateMach") is read.

Note: This field is written back with value read at the beginning of the sequence only if the ChkFlagAutoClearEna bit = '1'.

25.10.3 WORD2 register (WORD2)

Address offset: 0x0008

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD2 register

31302928272625242322212019181716
RECEIVENOCALDELAYCHK[7:0]RECEIVECALDELAYCHK[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TRANSMITNOCALDELAYCHK[7:0]TRANSMITCALDELAYCHK[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 RECEIVENOCALDELAYCHK[7:0]: Delay between RX request sent to the Radio FSM and the start pulse to the receive block. It corresponds to the sequencer 2nd INIT + DATA INIT steps duration.

Note: this bit field is used if TxMode bit is low in the StatMach (reception) and the CalReq bit is low in current TxRxPack RAM table (no PLL Calibration is requested).

The time unit for this delay is 1 µs.

Bits 23:16 RECEIVECALDELAYCHK[7:0]: Delay between RX request sent to the Radio FSM and the start pulse sent to the receive block. It corresponds to the sequencer 2nd INIT + DATA INIT steps duration.

Note: this bit field is used if TxMode bit is low in the StatMach (reception) and the CalReq bit is set in current TxRxPack RAM table (PLL Calibration is requested).

The time unit for this delay is 1 µs.

Bits 15:8 TRANSMITNOCALDELAYCHK[7:0]: Delay between TX request sent to the Radio FSM and the start pulse to the transmit block. It corresponds to the sequencer 2nd INIT + DATA INIT steps duration.

Note: this bit field is used if TxMode bit is set in the StatMach (transmission) and the CalReq bit is low in current TxRxPack RAM table (no PLL Calibration is requested).

The time unit for this delay is 1 µs.

Bits 7:0 TRANSMITCALDELAYCHK[7:0]: Delay between TX request sent to the Radio FSM and the start pulse sent to the transmit block. It corresponds to the sequencer 2nd INIT + DATA INIT steps duration.

Note: this bit field is used if TxMode bit is set in the StatMach (transmission) and the CalReq bit is set in current TxRxPack RAM table (PLL Calibration is requested).

The time unit for this delay is 1 µs.

25.10.4 WORD3 register (WORD3)

Address offset: 0x000C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD3 register

31302928272625242322212019181716
TIMECAPTURETIMECAPTURESELTXDELAYEND[5:0]TXDELAYSTART[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXDATAREADYCHECK[7:0]CONFIGENDDURATION[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 TIMECAPTURE:

0: No capture is requested to monitor the Bluetooth LE sequence.

1: a time capture is requested to monitor the Bluetooth LE sequence. Captured event is defined by GlobalStatMach.TIMECAPTURESEL bit.

Note: if both TIMECAPTURE and TIMECAPTURESEL bits are low, the TimerCaptureReg IP_BLE APB register is anyway updated with the InitDelay timeout event (mechanism to bypass the fact those 2 GlobalStatMach bits are checked after 1st INIT step completion).

Note: If TxRxPack.TrigRcv or TxRxPack.TrigDone bit is set, the TimerCaptureReg IP_BLE APB register shows this last event trig value at the end.

Note: this bit is for debug purpose.

Bit 30 TIMECAPTURESEL:

0: the captured time (absolute time) corresponds to the end of 1st INIT step in the sequence (InitDelay timeout event).

1: the captured time (absolute time) corresponds to the end of DATA INIT step in the sequence (init_radio_delay timeout event).

Note: this bit is for debug purpose.

Bits 29:24 TXDELAYEND[5:0]: Delay added between the last bit transmission to the modulator and the “end of transmission” information for the sequencer.

The time unit for this delay is 125 ns.

This delay allows giving time to the modulator and analog chain to output on the antenna the last bit.

25.10.5 WORD4 register (WORD4)

Address offset: 0x0010

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD4 register

31302928272625242322212019181716
ResResResResRCVTIMEOUT[19:8]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RCVTIMEOUT[7:0]TXREADYTIMEOUT[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:8 RCVTIMEOUT[19:0]: Receive window timeout.

Define the maximum duration to stay in reception without any preamble + access address detection (rest of the frame can be received even outside this time window).

The duration is expressed as \((4^{\text{RCVTIMEOUT}[19;18]} \times \text{RCVTIMEOUT}[17:0])\)

The time unit for RCVTIMEOUT[17:0] is 1 µs.

Bits 7:0 TXREADYTIMEOUT[7:0]: Transmission ready timeout.

Defines the maximum duration for the transmit block to wait for the Radio FSM to indicate it is in TX state and data can be provided to the modulator.

The time unit for this delay is 1 µs.

Note: if this value is set to 0, no timeout is activated to wait the TX ready information. This configuration is not recommended at all as it may lead to endless sequence, restarted only through a new trigger event is generated

25.10.6 WORD5 register (WORD5)

Address offset: 0x0014

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD5 register

31302928272625242322212019181716
INTCONFIGERRORINTACTIVE2ERRINTTXRXSKIPINTSEQDONERes.INTSEMATIMEOUTERRORINTRCVLENGTHERRORRes.INTNOACTIVELErrorINTTXDATAREADYERRORINTALLTABLEREADYERRORINTADDPONTERERRORRes.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHKFLAGAUTOCLEARENARes.AUTOTXRXSKIPEN
rwrw

Bit 31 INTCONFIGERROR: Configuration error interrupt enable.

Bit 30 INTACTIVE2ERR: not “in ACTIVE2”information from Radio FSM received on time interrupt enable.

Bit 29 INTTXRXSKIP: Transmission or reception skip interrupt enable.

Bit 28 INTSEQDONE: sequencer end of task interrupt enable.

Bit 27 Reserved, must be kept at reset value.

Bit 26 INTSEMATIMEOUTERROR: Semaphore timeout error interrupt enable.

Bit 25 INTRCVLENGTHERROR: Too long received payload length interrupt enable.

25.10.7 WORD6 register (WORD6)

Address offset: 0x0018

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD6 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.DEFAULTANTENNAID[6:0]
rwrwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:0 DEFAULTANTENNAID[6:0]: Default Antenna ID corresponding to the number of the antenna used to receive/transmit:

ST logo
ST logo

25.10.8 StatMach RAM table

StatMach RAM table overview

The StatMach table is linked to an active connection. There is as many StatMach table as concurrent connections in a limit of 128 (maximum supported by the hardware).

The StatMach RAM tables location is frozen by the hardware as chained just after the GlobalStatMach. The formula for a StatMach base address is:

\[\text{StatMachBaseAddress}[\text{StatMachIdx}] = \text{GlobalStatMachBaseAddress} + 28 + (\text{StatMachIdx} * 92)\]

Table 134. StatMach RAM table(1)

WordByte addrR/W by IP_BLE76543210
0x000x00R/WTxModeRadioComListEna
Uchan
0x01NESNSNRemap_chan
0x02RcvEncTxEncEncrypt OnBuffer_Full--PhysChanPDUType [1:0]
0x03-RxPhy[2:0]CTEDisableTxPhy[2:0]
0x010x04R/WTxpoint[7:0]
0x05Txpoint[15:8]
0x06Txpoint[23:16]
0x07Txpoint[31:24]
0x020x08R/WRcvpoint[7:0]
0x09Rcvpoint[15:8]
0x0ARcvpoint[23:16]
0x0BRcvpoint[31:24]
0x030x0CR/WTxpointPrev[7:0]
0x0DTxpointPrev[15:8]
0x0ETxpointPrev[23:16]
0x0FTxpointPrev[31:24]
Table 134. StatMach RAM table(1) (continued)
WordByte addrR/W by IP_BLE76543210
0x040x10R/WRcvpointPrev[7:0]
0x11RcvpointPrev[15:8]
0x12RcvpointPrev[23:16]
0x13RcvpointPrev[31:24]
0x050x14R/WTxpointnext[7:0]
0x15Txpointnext[15:8]
0x16Txpointnext[23:16]
0x17Txpointnext[31:24]
0x060x18R/WPCntTx[7:0]
0x19PCntTx [15:8]
0x1APCntTx [23:16]
0x1BPCntTx [31:24]
0x070x1CR/WPCntTx [39:32]
0x1DPCntRcv[7:0]
0x1EPCntRcv[15:8]
0x1FPCntRcv[23:16]
0x080x20RPCntRcv[31:24]
0x21PCntRcv[39:32]
0x22RxMicDbg(2)MsbFirst(3)DisableCrc(3)EnaPreambleRep(3)PreambleRep[3:0](3)
0x23RxDebugCrc(2)IntRxOverflowErrorIntEncErrorintTxError[4:0]
0x090x24Raccaddr[7:0]
0x25accaddr[15:8]
0x26accaddr[23:16]
0x27accaddr[31:24]
0x0A0x28Rcrcinit[7:0]
0x29crcinit[15:8]
0x2Acrcinit[23:16]
0x2BMaxReceivedLength
Table 134. StatMach RAM table(1) (continued)
WordByte addrR/W by IP_BLE76543210
0x0B0x2CRTxHp--PaPower
0x2D--hopincr
0x2EUsedChannelFlags[7:0]
0x2FUsedChannelFlags[15:8]
0x0C0x30RUsedChannelFlags[23:16]
0x31UsedChannelFlags[31:24]
0x32---UsedChannelFlags[36:32]
0x33-
0x0D0x34ReventCounter[7:0]
0x35eventCounter[15:8]
0x36-
0x37-
0x0E0x38REncryptIV[7:0]
0x39EncryptIV[15:8]
0x3AEncryptIV[23:16]
0x3BEncryptIV[31:24]
0x0F0x3CREncryptIV[39:32]
0x3DEncryptIV[47:40]
0x3EEncryptIV[55:48]
0x3FEncryptIV[63:56]
0x100x40REncryptK[7:0]
0x41EncryptK[15:8]
0x42EncryptK[23:16]
0x43EncryptK[31:24]
0x110x44REncryptK[39:32]
0x45EncryptK[47:40]
0x46EncryptK[55:48]
0x47EncryptK[63:56]
0x120x48REncryptK[71:64]
0x49EncryptK[79:72]
0x4AEncryptK[87:80]
0x4BEncryptK[95:88]
Table 134. StatMach RAM table(1) (continued)
WordByte addrR/W by IP_BLE76543210
0x130x4CREncryptK[103:96]
0x4DEncryptK[111:104]
0x4EEncryptK[119:112]
0x4FEncryptK[127:120]
0x140x50R-CTETime[4:0]CTESlot WidthAoD_nA oA
0x51-MaximumIQSamplesNumber[6:0]
0x52AntennaPatternLength[7:0]
0x53-
0x150x54RIQSamplesPtr[7:0]
0x55IQSamplesPtr[15:8]
0x56IQSamplesPtr[23:16]
0x57IQSamplesPtr[31:24]
0x160x58RAntennaPatternPtr[7:0]
0x59AntennaPatternPtr[15:8]
0x5AAntennaPatternPtr[23:16]
0x5BAntennaPatternPtr[31:24]
  1. 1. Unused cells are filled with "-".
  2. 2. Content of these cells is for debug and qualification purposes.
  3. 3. Content of these cells is related to features outside Bluetooth protocol (proprietary protocol).

25.11 StatMach registers

This section describes the StatMach bit fields to help the user to program accurately the table.

Table 135. STATMACH_REG_BLOCK register list

OffsetRegister NameRegister TitleReset
0x0000WORD0WORD0 register0x0000 0000
0x0004WORD1WORD1 register0x0000 0003
0x0008WORD2WORD2 register0x0000 0000
0x000CWORD3WORD3 register0x0000 0000
0x0010WORD4WORD4 register0x0000 0000
0x0014WORD5WORD5 register0x0000 0000
0x0018WORD6WORD6 register0x0000 0000
0x001CWORD7WORD7 register0x0000 0000
0x0020WORD8WORD8 register0x0000 0000
0x0024WORD9WORD9 register0x0000 0000
0x0028WORDAWORDA register0x0000 0000
0x002CWORDBWORDB register0x0000 0000
0x0030WORDCWORDC register0x0000 0000
0x0034WORDDWORDD register0x0000 0000
0x0038WORDEWORDE register0x0000 0000
0x003CWORDFWORDF register0x0000 0000
0x0040WORD10WORD10 register0x0000 0000
0x0044WORD11WORD11 register0x0000 0000
0x0048WORD12WORD12 register0x0000 0000
0x004CWORD13WORD13 register0x0000 0000
0x0050WORD14WORD14 register0x0000 0000
0x0054WORD15WORD15 register0x0000 0000
0x0058WORD16WORD16 register0x0000 0000

25.11.1 WORD0 register (WORD0)

Address offset: 0x0000

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD0 register

31302928272625242322212019181716
Res.RXPHY[2:0]CTEDISABLETXPHY[2:0]RCVENCTXENCENCRYPTONBUFFER_FULLRes.Res.PHYSCHANPDUTYPE[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NESNSNREMAP_CHAN[5:0]TXMODERADIOCOMLISTENAUCHAN[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 RXPHY[2:0]: Reception Phy selection.

bit0: bit rate (0=1Mbps / 1=2Mbps) / bit1: does not care / bit2: coded/legacy.

- others Reserved for future use. If programmed by mistake, selects “Receiver PHY is legacy 1Mbps”option.

Note: S2/S8 coded choice comes from an auto-detection done by the demodulator.

Bit 27 CTEDISABLE: Disable the CTE feature

0:

1: CTE is never appended on a transmitted packet and CTE detection mechanism is not active in reception whatever the rest of the RAM table bit fields linked to CTE.

Bits 26:24 TXPHY[2:0]: Transmission Phy selection.

- 100: Selected Transmitter PHY is coded 1Mbps with S=8

- 110: Selected Transmitter PHY is coded 1Mbps with S=2

- others Reserved for future use. If programmed by mistake, selects “Transmitter PHY is legacy 1Mbps”option.

Bit 23 RCVENC: Last Receive packet was encrypted.

Note: This bit is fully managed by the hardware.

It is set to 1 after the reception of a packet with length not zero (whatever the CRC check result) if StatMach.Encryption=1.

When RcvEnc=1, the PCntRcv (receive packet counter required for the sub-keys calculation) is incremented depending on the SN/NESN check result.

Bit 22 TXENC: Previous transmission packet was encrypted.

Note: This bit is fully managed by the hardware.

It is set to 1 after the transmission of an encrypted packet (so with length not zero).

When TxEnc=0, PCntTx (transmission packet counter required for the sub-keys calculation) is unchanged.

When TxEnc=1, PCntTx may be incremented depending on the SN/NESN check result.

Bit 21 ENCRYPTON: "On the fly" encryption/decryption engine enable.

0: The "On the fly" encryption/decryption engine is disabled.

1: The "On the fly" encryption/decryption engine is enabled.

The parameters StateMach.EncryptIV and StateMach.EncryptK are read from RAM during the initialization phase.

Note: The "On the fly" encryption/decryption engine does not run for packet with null length.

Note: It is mandatory to have TxRxPack.SN_EN=1 when StateMach.Encryption=1 as PCntTx is incremented by the SN/NESN automatic management mechanism.

Bit 20 BUFFER_FULL: (also called BUFFOVERFLOW). No more receive buffer available.

Set this bit to indicate no more buffer is available to receive any packet.

In this case:

Note: The SN bit management is not impacted to keep the transmission progressing as long as the peer acknowledge the reception of previous transmitted packet.

Bits 19:18 Reserved, must be kept at reset value.

Bits 17:16 PHYSCHANPDUTYPE[1:0]: Define which is the PDU Type exchanged.

This information is used by the AES block to adapt the header mask on Encryption Algorithm depending of the PDU Type.

00: ACL (Asynchronous Connection-oriented)

01: CIS (Connected Isochronous Stream)

10: BIS (Broadcast Isochronous Stream)

11: Reserved

Bit 15 NESN: Bluetooth LE next expected sequence number bit.

Then, this bit is modified by the hardware only at the end of a reception (not on transmission).

Note: in any case, this bit is written back by the sequencer at the end of a transfer (modified or not)

25.11.2 WORD1 register (WORD1)

Address offset: 0x0004

Reset value: 0x0000 0003 (0xFFFF FFFF)

WORD1 register

31302928272625242322212019181716
TXPOINT[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXPOINT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 TXPOINT[31:0]: Pointer to transmit packet.

TxPoint defines the start address of the TxRxPack link list (containing the parameters of the current transmission to be proceeded).

This variable needs to be initialized by the firmware with the start address of first the first TxRxPack of the transmission linked list each time a StateMach is created in memory (new connection). Then, TxPoint is managed by the hardware, considering the firmware has to guaranty the transmission link list is never empty (or pointing to itself).

Note: This pointer address must be 32-bit aligned and is an absolute address (not an offset).

25.11.3 WORD2 register (WORD2)

Address offset: 0x0008

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD2 register

31302928272625242322212019181716
RCVPOINT[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RCVPOINT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 RCVPOINT[31:0]: Pointer to receive packet.

Rcvpoint defines the start address of the TxRxPack link list (containing the parameters of the current reception to be proceeded)

This variable needs to be initialized by the firmware with the start address of the first TxRxPack of the reception linked list each time a StateMach is created in memory (new connection). Then, RcvPoint is managed by the hardware, considering the firmware has to guaranty the reception link list is never empty (or pointing to itself).

Note: This pointer address must be 32-bit aligned and is an absolute address (not an offset).

25.11.4 WORD3 register (WORD3)

Address offset: 0x000C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD3 register

31302928272625242322212019181716
TXPOINTPREV[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXPOINTPREV[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 TXPOINTPREV[31:0]: Pointer to previous transmit packet.

This variable is fully managed by the hardware. It is recommended to initialize to 0 by the firmware when the StateMach is created in memory (new connection).

TxPointPrev indicates which buffer can be reallocated (as it is now free).

25.11.5 WORD4 register (WORD4)

Address offset: 0x0010

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD4 register

31302928272625242322212019181716
RCVPOINTPREV[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RCVPOINTPREV[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 RCVPOINTPREV[31:0]: Pointer to previous receive packet.

This variable is fully managed by the hardware. It is recommended to initialize to 0 by the firmware when the StateMach is created in memory (new connection).

RcvPointPrev indicates which buffer can be reallocated (as it is now free).

25.11.6 WORD5 register (WORD5)

Address offset: 0x0014

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD5 register

31302928272625242322212019181716
TXPOINTNEXT[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TXPOINTNEXT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 TXPOINTNEXT[31:0]: Next transmit pointer.

This variable is fully managed by the hardware. It is recommended to initialize to 0 by the firmware when the StateMach is created in memory (new connection).

TxPointNext indicates the address of the TxRxPack transmit packet to be used once the transmission managed by the TxPoint is done (TxRxPack.NextPtr[31:0]).

The TxPointNext bit field is always updated at the end of a transmission.

Note: At the end of a valid reception with TxRxPack.SN_EN=1 and TxRxPack.Advertise=0, the StatMach.TxPoint is equal to the StatMach.TxPointNext.

25.11.7 WORD6 register (WORD6)

Address offset: 0x0018

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD6 register

31302928272625242322212019181716
PCNTTX_31_0[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PCNTTX_31_0[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PCNTTX_31_0[31:0]: CCM encryption transmission packet counter [31:0].

PCntTx is used during the on-the-fly encryption of the transmission data by the AES encryption engine.

For each new connection, Bluetooth protocol requires PCntTx to be initialized by the firmware to the value:

Note: It is mandatory to have TxRxPack.SN_EN=1 when StateMach.Encryption=1 as PCntTx is incremented by the SN/NESN automatic management mechanism.

25.11.8 WORD7 register (WORD7)

Address offset: 0x001C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD7 register

31302928272625242322212019181716
PCNTRCV_23_0[23:8]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PCNTRCV_23_0[7:0]PCNTTX_39_32[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:8 PCNTRCV_23_0[23:0]: CCM encryption Receive Packet counter [23:0].

PCntRcv is used during the on-the-fly encryption of the received data by the AES encryption engine.

For each new connection, Bluetooth protocol requires PCntRcv to be initialized by the firmware to the value:

Note: It is mandatory to have TxRxPack.SN_EN=1 as PCntRcv is incremented by the SN/NESN automatic management mechanism.

Bits 7:0 PCNTTX_39_32[7:0]: CCM encryption transmission packet counter [39:32].

PCntTx is used during the on-the-fly encryption of the transmission data by the AES encryption engine.

For each new connection, Bluetooth protocol requires PCntTx to be initialized by the firmware to the value:

Note: It is mandatory to have TxRxPack.SN_EN=1 when StatMach.Encryption=1 as PCntTx is incremented by the SN/NESN automatic management mechanism.

25.11.9 WORD8 register (WORD8)

Address offset: 0x0020

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD8 register

31302928272625242322212019181716
RXDEBUGCRCINTRXOVERFLOWERRORINTENCERRORINTTXERROR[4:0]RXMICDBGMSBFIRSTDISABLECRCENAPREABLEREPEPREAMBLEREPE[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PCNTRCV_39_24[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

25.11.10 WORD9 register (WORD9)

Address offset: 0x0024

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD9 register

31302928272625242322212019181716
ACCADDR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ACCADDR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ACCADDR[31:0]: packet access address.

This value is used in transmission and in reception.

Note: The nature of a packet (primary advertising, secondary advertising or data) is only defined by TxRxPack.Advertise so StateMach.Accadr=0x8E89BED6 does not mean that the packet is an advertising packet.

25.11.11 WORDA register (WORDA)

Address offset: 0x0028

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORDA register

31302928272625242322212019181716
MAXRECEIVEDLENGTH[7:0]CRCINIT[23:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CRCINIT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 MAXRECEIVEDLENGTH[7:0]: Maximum receive length.

Defines the maximum receive length the Bluetooth LE link layer can accept.

If the length of the received packet is greater than this value, the hardware limits the payload RAM write back data to the defined maximum length and stops the reception treatment on this defined maximum length (implying CRC error, etc.)

The ReceiveLengthError event is raised (visible in STATUSREG and if associated interrupt is enabled in INTERRUPT1REG register).

The received packet is processed normally when the received length located in the received packet header is smaller or equal to StateMach.MaxReceivedLength.

Bits 23:0 CRCINIT[23:0]: CRC initialization value.

This value is used to initialize the CRC for Data packet or for AUX_SYNC_IND PDU and its subordinate set.

This bit field is ignored if TxRxPack.CRCINITSEL=0.

25.11.12 WORDB register (WORDB)

Address offset: 0x002C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORDB register

31302928272625242322212019181716
USEDCHANNELFLAGS_15_0[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.HOPINCR[5:0]TXHPRes.Res.PAPOWER[4:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 USEDCHANNELFLAGS_15_0[15:0]: Remapping flags[15:0] for all 37 Bluetooth LE channels.

The remapping flags are used by the Bluetooth smart algorithm 1 and 2.

Note: this parameter is described in Channel Classification/ channel map in the Bluetooth core specification [2].

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:8 HOPINCR[5:0]: Hop increment.

Defines the hop increment as described in the algorithm 1 of the Bluetooth core specification [2].

Bit 7 TXHP: Defines if the transmission is done at maximum output power level.

0: The transmission is not done at maximum output power level

1: The transmission is done at maximum output power level

When this bit is set, the LDO_TRANSFO is bypassed during the transmission and SMPS output voltage directly supplies the power amplifier.

Bits 6:5 Reserved, must be kept at reset value.

Bits 4:0 PAPOWER[4:0]: Power Amplifier Power.

Defines the transmission output power level expressed in dBm

25.11.13 WORDC register (WORDC)

Address offset: 0x0030

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORDC register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.USEDCHANNELFLAGS_36_16[21:16]
rwrwrwrwrwrw
1514131211109876543210
USEDCHANNELFLAGS_36_16[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:22 Reserved, must be kept at reset value.

Bits 21:0 USEDCHANNELFLAGS_36_16[21:0]: Remapping flags[36:16] for all 37 Bluetooth LE channels.

The remapping flags are used by the Bluetooth smart algorithm 1 and 2.

If bit(n)=1, the channel n may be used for reception or transmission.

If bit(n)=0, the channel n cannot be used for reception or transmission.

Note: this parameter is described in Channel Classification/ channel map in the Bluetooth core specification [2].

25.11.14 WORDD register (WORDD)

Address offset: 0x0034

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORDD register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
EVENTCOUNTER[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 EVENTCOUNTER[15:0]: Event counter value.

Contains a copy of the event counter value, used by the channel incrementer to compute the algorithm

25.11.15 WORDE register (WORDE)

Address offset: 0x0038

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORDE register

31302928272625242322212019181716
ENCRYPTIV_31_0[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ENCRYPTIV_31_0[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ENCRYPTIV_31_0[31:0]: Initial vector for encryption [31:0].

This value is used by the AES engine during on-the-fly AES CCM encryption.

See Bluetooth LE CCM encryption description in Bluetooth LE core specification [2].

25.11.16 WORDF register (WORDF)

Address offset: 0x003C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORDF register

31302928272625242322212019181716
ENCRYPTIV_63_32[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ENCRYPTIV_63_32[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ENCRYPTIV_63_32[31:0]: Initial vector for encryption [63:32].

This value is used by the AES engine during on-the-fly AES CCM encryption.

See Bluetooth LE CCM encryption description in Bluetooth LE core specification [2].

25.11.17 WORD10 register (WORD10)

Address offset: 0x0040

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD10 register

31302928272625242322212019181716
ENCRYPTK_31_0[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ENCRYPTK_31_0[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ENCRYPTK_31_0[31:0]: Encryption key [31:0].

This value is used by the AES engine during on-the-fly AES CCM encryption.

See Bluetooth LE CCM encryption description in Bluetooth LE core specification [2].

25.11.18 WORD11 register (WORD11)

Address offset: 0x0044

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD11 register

31302928272625242322212019181716
ENCRYPTK_63_32[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ENCRYPTK_63_32[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ENCRYPTK_63_32[31:0]: Encryption key [63:32].

This value is used by the AES engine during on-the-fly AES CCM encryption.

See Bluetooth LE CCM encryption description in Bluetooth LE core specification [2].

25.11.19 WORD12 register (WORD12)

Address offset: 0x0048

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD12 register

31302928272625242322212019181716
ENCRYPTK_95_64[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ENCRYPTK_95_64[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ENCRYPTK_95_64[31:0]: Encryption key [95:64].

This value is used by the AES engine during on-the-fly AES CCM encryption.

See Bluetooth LE CCM encryption description in Bluetooth LE core specification [2].

25.11.20 WORD13 register (WORD13)

Address offset: 0x004C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD13 register

31302928272625242322212019181716
ENCRYPTK_127_96[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ENCRYPTK_127_96[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ENCRYPTK_127_96[31:0]: Encryption key [127:96].

This value is used by the AES engine during on-the-fly AES CCM encryption.

See Bluetooth LE CCM encryption description in Bluetooth LE core specification [2].

25.11.21 WORD14 register (WORD14)

Address offset: 0x0050

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD14 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.ANTENNAPATTERNLENGTH[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.MAXIMUMIQSAMPLESNUMBER[6:0]Res.CTETIME[4:0]CTESLOTWIDTHAOD_NAOA
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:16 ANTENNAPATTERNLENGTH[7:0]: Length of the antenna switching pattern located at address provided by StatMach.AntennaPatternPtr[31:0].

This bit field is used only when TxRxPack.CTEAndSamplingEnable=1 and StatMach.CTEDisable=0.

Note: if the CTE time is longer than the pattern length, the pattern is repeated by the HW as indicated in the Bluetooth LE standard.

Bit 15 Reserved, must be kept at reset value.

Bits 14:8 MAXIMUMIQSAMPLESNUMBER[6:0]: indicates the maximum number of IQ samples that is written during a CTE reception.

If the CTETime leads to more samples, the MR_BLE_V2 stops storing the IQ samples in RAM when this number is reached.

This bit field is used only when StatMach.TxMode=0, TxRxPack.CTEAndSamplingEnable=1 and StatMach.CTEDisable=0.

Note: despite the Bluetooth LE standard specifies the maximum possible number of IQ samples is 82, the MR_BLE offers the possibility to customize the maximum number of IQ sampling to store from 0 to 127.

Bit 7 Reserved, must be kept at reset value.

25.11.22 WORD15 register (WORD15)

Address offset: 0x0054

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD15 register

31302928272625242322212019181716
IQSAMPLESPTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
IQSAMPLESPTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 IQSAMPLESPTR[31:0]: Pointer to IQ samples storage buffer (received during CTE reception).

This pointer defines the start address of the RAM location where to store the received IQ samples during a Constant Tone Extension phase.

The IQ samples are stored in words built with 16-bit LSB for Q[15:0] samples and 16-bit MSB for I[15:0].

This bit field is used and verified only when StatMach.TxMode=0, StatMach.CTEDisable=0, TxRxPack.CTEAndSamplingEnable=1 and StatMach.MaximumIQSamplesNumber>0.

Note: this pointer is an absolute address.

Caution: this pointer address must be 32-bit aligned else the sequence is aborted at the end of the 1st INIT and STATUSREG.ADDPOINTERERROR flag is raised.

25.11.23 WORD16 register (WORD16)

Address offset: 0x0058

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD16 register

31302928272625242322212019181716
ANTENNAPATTERNPTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ANTENNAPATTERNPTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 ANTENNAPATTERNPTR[31:0]: Pointer to Antenna Pattern (for antenna switching sequence).

This pointer defines the start address of the RAM location where to get the Antenna ID pattern to switch antennae during a Constant Tone Extension phase.

Then Antenna pattern is a list of 8-bit Antenna Identifiers.

The RAM buffer addressed by this pointer must contain at least StatMach.AntennaPatternLength bytes.

This bit field is used and verified only when TxRxPack.CTEAndSamplingEnable=1, StatMach.CTEDisable=0 and StatMach.MaximumIQSamplesNumber>0.

Note: this pointer is an absolute address.

Caution: this pointer address must be 32-bit aligned else the sequence is aborted at the end of the 1st INIT and STATUSREG.ADDPOINTERROR flag is raised.

ST logo
ST logo

PaPower bit field description

Table 136 provides the PA power correspondence to program the StatMach.PaPower bit field.

The SMPS of the SoC must provide a minimum voltage to reach the targeted PaPower:

SMPS output level = 1.4 V minimum up to 4 dBm

SMPS output level = 1.55 V minimum for 5 dBm

SMPS output level = 1.7 V minimum for 6 dBm

For 8 dBm, refer to the note after the table as this PaPower requests a specific configuration.

Table 136. PaPower bit field value and associated output power

ValueOutput power (dBm)ValueOutput power (dBm)Value)Output power (dBm)ValueOutput power (dBm)
0x1F+6 / +8 *0x17-0.50xF-5.90x7-14.1
0x1E+50x16-0.850xE-6.90x6-15.25
0x1D+40x15-1.30xD-7.80x5-16.5
0x1C+30x14-1.80xC-8.850x4-17.6
0x1B+20x13-2.450xB-9.90x3-18.85
0x1A+10x12-3.150xA-10.90x2-19.75
0x1900x11-4.000x9-12.050x1-20.85
0x18-0.150x10-4.950x8-13.150x0-40

Several settings are needed to reach the +8 dBm in transmission:

TxRxPack RAM table

Table 137. TxRxPack RAM table(1)
WordByte addrR/W by IP_BLE76543210
0x000x00RNextPtr[7:0]
0x01NextPtr[15:8]
0x02NextPtr[23:16]
0x03NextPtr[31:24]
0x010x04RIncChanSN_ENAdvertiseCrcInitSelCTEAndSamplingEnableKeepSem aReqChanAlgo 2SelCalReq
0x05--subEventChan Algo2DisableWhitening(2)-TxdataReadyAllTableReadyNextTxMode
0x06--
0x07--
0x020x08R/WDataPtr[7:0]
0x09DataPtr[15:8]
0x0ADataPtr[23:16]
0x0BDataPtr[31:24]
0x030x0CRtimer2[7:0]
0x0Dtimer2[15:8]
0x0ETrigDoneTrigRcv-Timer2Entimer2[19:16]
0x0FIntRcvOkIntRcvCrcErrIntTimeCaptureIntRcvCmdIntRcvNoMdIntRcvTimeoutIntDoneIntTxOk
  1. 1. Unused cells are filled with "-".
  2. 2. Content of these cells is for debug and qualification purposes.

25.11.24 TxRxPack registers

Table 138. TxRxPack register list

OffsetRegister NameRegister TitleReset
0x0000WORD0WORD0 register0x0000 0000
0x0004WORD1WORD1 register0x0000 0000
0x0008WORD2WORD2 register0x0000 0000
0x000CWORD3WORD3 register0x0000 0000

25.11.25 WORD0 register (WORD0)

Address offset: 0x0000

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD0 register

31302928272625242322212019181716
NEXTPTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
NEXTPTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 NEXTPTR[31:0]: Next pointer address entry of the linked list.

Points to the next transmit or receive packet. The user must enter the absolute address, not an offset.

Caution: This pointer must be 32-bit aligned else STATUSREG.ADDPOINTERROR is set (and INTERRUPT1REG.ADDPOINTERROR if GlobalStatMach.IntAddPointError=1).

25.11.26 WORD1 register (WORD1)

Address offset: 0x0004

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD1 register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.SUBEVENTCHANALGO2DISABLEWHITENINGRes.TXDATAREADYALLTABLEREADYNEXTTXMODEINCCHANSN_ENADVERTISECRCINITSELCTEANDSAMPLINGENABLEKEEPSEMAREQCHANALGO2SELCALREQ
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:14 Reserved, must be kept at reset value.

Bit 13 SUBEVENTCHANALGO2: Select the SubEvent Channel computation in the channel incrementer block when the algorithm

Bit 12 DISABLEWHITENING: Whitening Disable

0: The whitening is enabled in the transmit block and in the receive block.

1: The whitening is disabled in the transmit block and in the receive block. This may be used for debug or during official Bluetooth compliance test.

Bit 11 Reserved, must be kept at reset value.

Bit 10 TXDATAREADY: Transmission data ready.

This bit is checked only if the current transfer is a transmission.

The check is done at the beginning of the DATA INIT phase to ensure that at least few bytes of the transmission payload are already written in the data buffer.

This bit allows doing an "On the fly" data buffer memcopy while transmission has already started on the antenna.

0: The transmission payload is no ready. The transfer is not started by the sequencer.

1: The transmission payload is ready, so the transfer is started by the sequencer.

Note: recommendation for Transmission data payload is to set this TxDataReady bit only when at least 16 bytes of data are available in the payload data buffer.

Bit 9 ALLTABLEREADY: All table data ready.

This bit is checked at the beginning of the 2nd INIT phase to ensure bit fields related to on-going transfer and about to be read are relevant.

0: The RAM table information related to the on-going transfer are not ready. The transmission is not started by the sequencer.

1: The RAM table information related to the on-going transfer are ready. The transmission is started by the sequencer.

Note: goal of this bit is to allow the software blocking a transfer if RAM table update is not over.

Bit 2 KEEPSEMAREQ: Request to keep the RRM semaphore.

Indicate if the IP_BLE needs to keep the RRM token at the end of the current transfer.

0: The token request is cleared when the controller starts its context saving.

1: The token request is maintained high at the end of the sequence.

Caution: This bit MUST be set to fit the IFS = 150 µs constraint.

Indeed, when the token is released, the Radio FSM switches back in IDLE mode. The Radio FSM needs around 45 µs more (ENA_RF_REG and ENA_CUR states) to go back to ACTIVE2 state on next Bluetooth LE sequence trig event.

Bit 1 CHANALGO2SEL: Channel hoping algorithm selection.

if TxRxPack.incchan = 0, this bit field has no effect.

if TxRxPack.incchan = 1:

0: The algorithm

Bit 0 CALREQ: Calibration request.

0: The RF PLL calibration is disabled. This setting is used when this calibration has already been done and if the radio did not go in low power state.

1: The calibration of the RF PLL is enabled. It must be performed at each channel frequency change or after wakeup.

25.11.27 WORD2 register (WORD2)

Address offset: 0x0008

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD2 register

31302928272625242322212019181716
DATAPTR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DATAPTR[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DATAPTR[31:0]: Data pointer address.

Points to the data packet linked with TxRxPack (called DataPack in this document).

This data packet contains the header and the data, excluding the preamble, the access address and the CRC.

The Bluetooth LE link layer writes this packet in RAM in case of reception and reads it from RAM in case of transmission.

Note: this pointer has no memory address alignment requirement.

However the software must write an absolute address (not an offset). If the 8-bit MSB part of the pointer value is not equal to the RAM 8-bit MSB address, an ADDPOINTERROR flag is raised.

25.11.28 WORD3 register (WORD3)

Address offset: 0x000C

Reset value: 0x0000 0000 (0xFFFF FFFF)

WORD3 register

31302928272625242322212019181716
INTRCVOKINTRCVRCERRINTTIMECAPTUREINTRCVCMDINTRCVNOMDINTRCVTIMEOUTINTDONEINTTXOKTRIGDONETRIGRCVRes.TIMER2ENTIMER2[19:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TIMER2[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

DataPack RAM table

The DataPack tables are the data buffer for reception or transmission packet. They are pointed by the TxRxPack.DataPtr value.

Their content corresponds to the PDU (header bytes, payload and potentially MIC for encrypted packets).

25.11.29 Complementary information

Pointer management and packet counter

The sequencer updates the pointers and packet counters at the end of a transmission or a reception, depending on some parameters.

The Figure 204 illustrates the actions done on the pointers and packet counter.

Figure 204. Pointer management and packet counter increment algorithm

Flowchart of pointer management and packet counter increment algorithm. It shows RAM read/writeback operations and logic for updating pointers and counters based on various flags and conditions.

RAM read:
StatMach.NESN
StatMach.SN
StatMach.TxEnc
StatMach.RcvEnc
StatMach.Txpoint
StatMach.Rcvpoint
StatMach.TxpointPrev
StatMach.RcvpointPrev
StatMach.PCntTx
StatMach.PCntRcv
StatMach.TxpointNext
TxRxPack.NextPtr

\(encrypted\_block = EncryptOn \ \& \ \text{not}(i\_pkt\_length\_is\_zero);\)

Flowchart Logic:

Flowchart of pointer management and packet counter increment algorithm. It shows RAM read/writeback operations and logic for updating pointers and counters based on various flags and conditions.

Channel number management

The Bluetooth LE link layer manages the channel frequency through different parameters located in the RAM table.

A channel incrementer allows calculating a new channel if TxRxPack.IncChan bit is set. The algorithm (#1 or #2) is selected through the TxRxPack.ChanAlgo2Sel bit.

In addition, a remap is done to fit with the StatMach.UserChannelFlags if TxRxPack.IncChan bit is set.

The Figure 205 presents an overview of the channel number management.

Figure 205. Bluetooth LE link layer channel management overview

Block diagram of Bluetooth LE link layer channel management overview. The diagram shows the flow of channel data from RAM to various incrementers and remappers, resulting in UChan and Remap_Channel outputs. It includes logic for advertising, channel selection, and remapping based on user channel flags.

The diagram illustrates the channel management logic. Inputs from the RAM table (purple) include advertise, ChanAlgo2Sel, Uchan[5:0], EventCounter[15:0], SubEventChanAlgo2, UsedChannelFlags[36:0], and Remap_Ch[5:0]. The 'advertise' signal is inverted and ANDed with ChanAlgo2Sel to control a multiplexer. Uchan[5:0] is split: one path goes through a 3-bit counter (bits 37-39) to a multiplexer, and another path goes to an 'Algo #1 Incrementer' (green) which takes hopIncr[5:0] as input. The output of the 3-bit counter also feeds into the 'Algo #2 Event Incrementer' (blue) and 'Algo #2 Sub-Event Incrementer' (blue). The EventCounter[15:0] is processed by an 'Event PRNG' (blue) which outputs to the 'Algo #2 Event Incrementer'. The 'SubEvent PRNG' (blue) takes 'lastUsedPrn' as input and outputs to the 'Algo #2 Sub-Event Incrementer'. The 'SubEventChanAlgo2' signal controls a multiplexer for the 'lastRemainingIndex'. The outputs of the incrementers and counters are fed into a 'Remapper' block. The 'Remapper' output goes through another multiplexer controlled by IncChan to produce 'Remap_Ch[5:0]'. Finally, 'Remap_Ch[5:0]' is fed into a LUT to produce the 'Physical channel'. A dashed red line separates inputs from the RAM table from the outputs written back to it.

Color legend:

Block diagram of Bluetooth LE link layer channel management overview. The diagram shows the flow of channel data from RAM to various incrementers and remappers, resulting in UChan and Remap_Channel outputs. It includes logic for advertising, channel selection, and remapping based on user channel flags.

When the channel incrementer HW block is used (IncChan = 1), the selection of the algorithm must be managed by the SW following the truth table presented in Table 139.

Table 139. Truth table to select the correct algorithm

TxRxPackSelected algorithm
AdvertiseChanAlgo2SelSubEventChanAlgo2
00XAlgorithm #1 is used for the channel hopping for data channel.
10XPrimary advertising channels selected with automatic incrementation as follows:
37 → 38 → 39 → 37 → 38...
Note: this configuration should not be used when running on secondary advertising channels (undefined behavior).
010Algorithm #2 for an event channel (connection, secondary Advertising or CIS/BIS event) is used for the channel hoping for data channel.
011Algorithm #2 for a subevent channel (e.g. CIS/BIS subevent) is used for the channel hoping for data channel.
110Algorithm #2 is used for the channel hoping for Periodic Advertising channel.
Note: this configuration should not be used when running on primary advertising channels (undefined behavior).
111Not supposed to be used with Bluetooth specification/use-cases.

In addition, the following table lists the different bit field in RAM tables linked to the channel number management and indicates which ones are used at HW level according to targeted algorithm (#1 or #2).

Table 140. RAM table bit fields usage versus algorithm number

Bit fieldRAM TableRead/Write-backConsidered
for Algo #1for Algo #2
InChanTxRxPackReadYesYes
ChannelAlgo2SelTxRxPackReadYesYes
EventCounter[15:0]StatMachReadNoYes
SubEventChanAlgo2TxRxPackReadNoYes
advertiseTxRxPackReadYesYes
accaddr[31:0]StatMachReadNoYes
UsedChannelFlags[36:0]StatMachReadYesYes
hopincr[5:0]StatMachReadYesNo
UChan[5:0]StatMachRead / Written backYesNo
Remap_chan[5:0]StatMachRead / Written backYesYes

Time capture

The IP_BLE can capture the absolute time on specific events.

The capture feature is enabled inside the RAM tables and result is provided in a IP_BLE APB register called TIMECAPTUREREG[31:0].

The events that can be time stamped / captured are:

The time capture service is associated to an interrupt flag that is enabled through the TxRxPack.IntTimeCapture bit and status / interrupt flag at the end of the sequence is available in the IP_BLE APB STATUSREG.TIMECAPTURETRIG (and INTERRUPT1REG.TIMECAPTURETRIG if interrupt is enabled inside the TxRxPack table).

If several events are requested to be captured on a same sequence (for example, the sequencer reaches end of 1st INIT and “on the air” last bit, the latest occurrence is the available time inside the TIMECAPTUREREG register.

On a transmission sequence:

Table 141. Time capture parameters on transmission sequence

GlobStatMachTxRxPackAPB IP_BLE
TimeCaptureTimeCaptureSelTrigRcvTrigDoneTIMECAPTUREREG
0xx0Sequencer end of 1st INIT
10x0Sequencer end of 1st INIT
11x0Sequencer end of DATA INIT
xxx1“On the air” last transmitted bit

On a reception sequence:

Table 142. Time capture parameters on transmission sequence

GlobStatMachTxRxPackAPB IP_BLE
TimeCaptureTimeCaptureSelTrigRcvTrigDoneTIMECAPTUREREG
0x00Sequencer end of 1st INIT
1000Sequencer end of 1st INIT
1100Sequencer end of DATA INIT
xx10Preamble + Access Address detection time
xxx1“On the air” last received bit

The 2nd INIT and DATA INIT steps of the sequencer use several timing parameters in addition to the init_radio_delay. This generic name covers 4 different durations depending on the transfer configuration (Tx/RX, PLL calibration/No calibration).

Reminder: the Radio FSM and the sequencer run in parallel with almost no handshake from the start of the 2nd INIT phase.

A set of timings is programmed in the GlobalStatMach to guarantee that the sequencer starts the transmission (respectively reception) phase with respect of the Radio FSM progress.

Figure 206 and Figure 207 summarize the timings involved.

Figure 206. Timings of a RX sequence

Timing diagram for RX sequence showing Sequencer and Radio FSM states.

The diagram illustrates the RX sequence timing. It shows two parallel timelines: the Sequencer and the Radio FSM. Sequencer: Starts with a 'Sequencer trigger event'. It proceeds through 1st INIT, 2nd INIT, and DATA INIT. Radio FSM: Starts in IDLE, moves to ACTIVE1, then to ACTIVE2. A 'Go to ACTIVE2' request is sent from the Sequencer to the Radio FSM at the end of 1st INIT. The Radio FSM must be in ACTIVE2 at the start of the 2nd INIT. Transitions: After 2nd INIT, the Radio FSM goes through SYNTH_SETUP, CALIB11, LOCKRXTX, and EN_RX. An 'RX command' is sent from the Sequencer to the Radio FSM during the 2nd INIT phase. Timing parameters: 'init_delay' is the time from trigger to 1st INIT. 'init_radio_delay' is the time from 1st INIT to DATA INIT. A note indicates '50 us when no PLL calib' and '90 us when PLL calib' for the transition from 2nd INIT to EN_RX. Other signals: 'ConfigEndDuration' is a time interval starting after 2nd INIT. 'TxDataReadyChk' is a check point. A 'Start pulse' triggers the 'Receive block' after DATA INIT. A note indicates 'Demodulator out of reset at this point'.

Timing diagram for RX sequence showing Sequencer and Radio FSM states.

Figure 207. Timings of a TX sequence

Timing diagram for TX sequence showing Sequencer and Radio FSM states.

The diagram illustrates the TX sequence timing. It shows two parallel timelines: the Sequencer and the Radio FSM. Sequencer: Starts with a 'Sequencer trigger event'. It proceeds through 1st INIT, 2nd INIT, and DATA INIT. Radio FSM: Starts in IDLE, moves to ACTIVE1, then to ACTIVE2. A 'Go to ACTIVE2' request is sent from the Sequencer to the Radio FSM at the end of 1st INIT. The Radio FSM must be in ACTIVE2 at the start of the 2nd INIT. Transitions: After 2nd INIT, the Radio FSM goes through SYNTH_SETUP, CALIB11, LOCKRXTX, EN_PA, and TX. A 'TX command' is sent from the Sequencer to the Radio FSM during the 2nd INIT phase. Timing parameters: 'init_delay' is the time from trigger to 1st INIT. 'init_radio_delay' is the time from 1st INIT to DATA INIT. A note indicates '40 us when no PLL calib' and '80 us when PLL calib' for the transition from 2nd INIT to EN_PA. Transmit block: After DATA INIT, a 'Transmit block' is shown with a 'Timeout = tx_error_3' and 'Timer (= TxReadyTimeout)'. The block contains states IDLE and WAIT_TX_READY. Other signals: 'ConfigEndDuration' is a time interval starting after 2nd INIT. 'TxDataReadyChk' is a check point. A 'Start pulse' triggers the transmit block after DATA INIT. 'Tx_ready' and 'EN_PA' signals are shown. A note indicates '12 us' for the transition from EN_PA to TX. A note indicates 'Start of RAM table info treatment for 2nd INIT'.

Timing diagram for TX sequence showing Sequencer and Radio FSM states.

Reminder on main constraints for a transmission:

Reminder on main constraints for a reception:

Table 143 shows some recommendations / proposals on values for some timings programmed through RAM tables.

Table 143. Delays for sequencer 2nd INIT step proposal

GlobalStatMach table bit fieldRecommended valueComments
TransmitNoCalDelayChk[7:0]0x32 (50d)Theoretical exact duration from ACTIVE2 to TX state is 52 µs. Keep some margin to avoid timeout after TX state. Then, use the TxReadyTimeout[7:0] to define the duration of the wait TX state info for the transmit block.
TransmitCalDelayChk[7:0]0x5A (90d)Theoretical exact duration from ACTIVE2 to TX state is 92 µs. Keep some margin to avoid timeout after TX state. Then, use the TxReadyTimeout[7:0] to define the duration of the wait TX state info for the transmit block.
ReceiveNoCalDelayChk[7:0]0x32 (50d)Theoretical exact duration from ACTIVE2 to RX state is 50 µs. The delay can be programmed to 50 µs.
ReceiveCalDelayChk[7:0]0x5A (90d)Theoretical exact duration from ACTIVE2 to RX state is 90 µs. The delay can be programmed to 90 µs.
ConfigEndDuration[7:0]at least 10
max is init_radio_delay
Note:
if this value is too small, the sequencer may not do all the AHB RAM table accesses on time.
the user must take margin (not use the minimum value) when a concurrent AES operation occurs during the 2nd INIT of the sequencer (Manual AES or LE Privacy)
Table 143. Delays for sequencer 2nd INIT step proposal (continued)
GlobalStatMach table bit fieldRecommended valueComments
TxDataReadyCheck[7:0]kbetween 1 and 5Can be increased to take more margin. Only impact is a potential useless extra waiting time before to abort when the Radio FSM / the sequence is broken.
TxReadyTimeout[7:0]at least 5Can be increased to take more margin. Only impact is the TX sequence abort is delayed with the same additional delay in case of real Radio FSM TX sequence issue.

25.11.30 Angle of arrival (AoA) and angle of departure (AoD)

The Bluetooth Core Specification v5.1 introduced new capabilities that support higher-accuracy direction finding.

The Bluetooth direction finding exploits some of the fundamental properties of radio waves by taking several phase and amplitude measurements (across different antenna) that can be used in direction finding calculations at precise intervals in a process known as In-phase and Quadrature Sampling (IQ sampling).

Applications use this data in calculations that involve trigonometry and information about the design of the antenna array.

A single IQ sample consists of the wave's amplitude and phase angle represented as a set of Cartesian coordinates. Applications can transform this Cartesian representation into corresponding polar coordinates that yield the phase angle and the amplitude value.

Refer to [2] for details on this new feature.

The existing RAM tables have been upgraded to support the new HW features (CTE, I/Q sampling and Antenna Switching) added to support the direction-finding topic.

RAM tables and registers impact

The existing RAM tables have been upgraded to support the new HW features (CTE, I/Q sampling and Antenna Switching) added to support the direction-finding topic.

GlobalStatMach RAM table

The GlobalStatMach table size has not been impacted: still 7 words = 28 bytes.

A new bit field has been added in the RFU existing Word6: DefaultAntennald[6:0] bit field in Word6[6:0].

This bit field is mandatory for the configurations where more than one antenna is present on the board.

This bit field indicates which antenna identifier must be used to transmit or receive packets without CTE or packet body (Preamble, Access Address, PDU and CRC) for CTE enabled packets. This value is transmitted through the corresponding pads of the device to the external component located on the board to switch on the requested antenna.

StatMach RAM table

The StatMach RAM table size has been increased of 3 words for a total of 23 words = 92 bytes.

The additional bit fields are the following:

TxRxPack RAM table

The TxRxPack RAM table size has been decreased of 1 word for a total of 4 words = 16 bytes.

A new CTEAndSamplingEnable bit has been added in Word1[3]. The role of this bit is to indicate to the Radio controller MR_BLE:

Manage the feature in transmission

If the SW wants to append a Constant Tone Extension at the end of the frame, it has to:

In the case of an encrypted frame, the AES encrypts (or not) the HEADER3 according to the TxRxPack.Advertise information.

Note: The transmit block does not decode on the fly the bytes provided by the RAM Data Buffer (located at DataPtr address) to identify the CTE information. It relies on the information provided through the RAM table. It is the responsibility of the SW to guarantee the coherency between the CTE related bit field in RAM and the data in RAM that corresponds to the CTEInfo bit field inside the frame on the air.

In addition to the CTE append on the transmitted frame, if the device must manage the antenna switching (AoD configuration), the SW has to:

In parallel, the SW must ensure the SoC GPIOs have been programmed in the accurate configuration to output the Antenna Identifier and enable signals to the external component.

To execute a transmission without CTE phase appended at the end of the frame, the SW just must set the StatMach.CTEDisable bit to 1.

Manage the feature in reception

CTE detection and decoding

If the SW wants the Radio controller MR_BLE to execute a reception with the ability to detect if the received frame is a packet with or without CTE, it has to:

In case of encrypted frame, the AES decrypts (or not the HEADER3 according to the TxRxPack.Advertise information.

Table 144 shows the behavior according to the combination between TxRxPack.CTEAndSamplingEnable and StatMach.CTEDisable.

Table 144. Behavior versus CTEDisable and CTEAndSampling bits value

ConfigurationBehavior
StatMach.CTEDisable = 1 and
TxRxPack.CTEAndSamplingEnable = “don’t care”
The receiver behaves as a Bluetooth LE SIG 5.0 or before.
the receiver does not try to decode any CTEInfo bit field inside the received frame,
the reception ends after CRC (if no DisableCrc bit set)
the Timer2 (if enabled) starts at the end of the CRC.
StatMach.CTEDisable = 0 and
TxRxPack.CTEAndSamplingEnable = 0
The receiver detects if CTE packet or not but does not sample the I/Q. This configuration allows keeping the synchronization on \(T_{IFS}\) with the transmitting device.
the receiver decodes any CTEInfo bit field inside the received frame if present,
the reception ends after the CRC (if not a CTE packet) or after the CTE phase (if CTE packet detected)
the Timer2 (if enabled) starts at the end of the reception (after CRC or CTE).
StatMach.CTEDisable = 0 and
TxRxPack.CTEAndSamplingEnable = 1
The receiver detects if CTE packet or not and manages the I/Q sampling.
the receiver decodes any CTEInfo bit field inside the received frame if present,
the reception ends after the CRC (if not a CTE packet) or after the CTE phase (if CTE packet detected)
the Timer2 (if enabled) starts at the end of the reception (after CRC or CTE).
the Radio controller MR_BLE stores the I/Q sampling in RAM (according to options programmed in the RAM tables by the SW)

During the reception, the receiver extracts from the frame the CTE info like duration, slot width and type.

The only configuration for which the Radio controller MR_BLE needs to get the information from the RAM table is the Angle of Arrival (AoA). In this specific case, the slot width is not indicated in the CTEType[1:0] bit field:

In AoA, the receiver device is the owner of the antenna switching and of the time slot width choice. In this specific configuration, the SW must provide the information through the StatMach.CTESlotWidth bit.

I/Q sampling

The Radio controller MR_BLE stores the I/Q samples in words built as follows

As the AHB master writes both I and Q in one 32-bit access in RAM, the IQSamplesPtr must contain a 32-bit aligned address.

To manage a reception in CTE with I/Q sampling, the SW has:

At the end of the reception, some status bit fields are provided to give visibility on what has been received:

Antenna switching

In addition to the CTE detection and the I/Q sampling storage, in AoA, the device has to manage the antenna switching. To achieve this, the SW has to:

In parallel, the SW must ensure the SoC GPIOs have been programmed in the accurate configuration to output the Antenna Identifier and enable signals to the external component.

Note: The HW automatically restarts the antenna switching pattern from its first element if there are more CTE slots than the AntennaPatternLength value provided in the StatMach.

Error management

Several error cases are treated at HW level concerning CTE, I/Q sampling and antenna switching.

Invalid CTEType received

Expected values for the CTEType[1:0] bit field inside the CTEInfo are “00”, “01” or “10”. If the receiver decodes a CTEType[1:0] = “11” in a CTE packet, it behaves as if TxRxPack.CTEAndSamplingEnable = 0 (CTE time duration respected for reception phase but no I/Q sampling nor antenna switching management).

CTE length outside [20..2] window

The Radio controller MR_BLE IP has been designed to support CTE length outside the standard limit to offer possibility to develop proprietary version or for trials in lab.

In reception:

In transmission:

CTE requested while Long Range is selected

The Bluetooth core specification [2] indicates that the Constant Tone Extension feature does not concern the Coded PHY packets (long range configuration).

If the Radio controller MR_BLE IP is in front of a contradictory configuration indicating coded PHY format and CTE enabled, the transfer is managed as a Coded PHY without CTE.

In reception, no CTE detection is activated (so no I/Q sampling nor antenna switching is managed neither).

In transmission:

IQSamplesPtr[31:0] or AntennaPatternPtr[31:0] not 32-bit aligned

The StatMach.IQSamplesPtr[31:0] and the StatMach.AntennaPatternPtr[31:0] must contain a 32-bit aligned address.

For IQSamplesPtr, an error is detected if:

For AntennaPatternPtr, an error is detected if:

The associated error is a ConfigError (no RF transfer as the sequencer aborts after the 1st INIT step). Refer to Configuration error for details on the ConfigError behavior.

IQSamplesPtr[31:24] or AntennaPatternPtr[31:24] not equal to device RAM base address[31:24]

The StatMach.IQSamplesPtr[31:24] and the StatMach.AntennaPatternPtr[31:24] must contain a value equal to the RAM base address[31:24].

For IQSamplesPtr, an error is identified if:

For AntennaPatternPtr, an error is detected if:

The associated error is an AddPointError (no RF transfer as the sequencer aborts after the 1st INIT step). Refer to Address Pointer error for details on the AddPointError behavior.

I/Q sampling storage overflow

In case of too high latency in AHB transfers between the Radio controller MR_BLE IP and the RAM inside the device, some received I/Q samples could be overwritten inside the internal buffer before being transferred into the SoC RAM.

In this case:

Then, the SW has the choice to handle or not the partial list of received I/Q samples.

Note: This error is not supposed to occur as an internal FIFO has been put in place to buffered some I/Q samples and is supposed to be dimensioned according to the device bandwidth.

Antenna pattern length = 1

Despite the Bluetooth core specification, the HCI_LE_Set_Connection_CTE_Receive_Parameters indicates the Length_of_switching_Pattern parameter must be at least 2, the Radio controller MR_BLE IP, at HW level, supports an antenna pattern length=1.

In this case, the reference period and the sample slots are done on the same antenna.

Antenna Pattern read underflow

In case of too high latency in AHB transfers between the Radio controller MR_BLE IP and the RAM inside the device, the next antenna ID may not be ready inside the antenna switching sub-block when the next antenna switching event is supposed to occur.

In this case:

Note: This error is not supposed to occur as an internal FIFO is present to store some anticipated antenna ID and is supposed to be dimensioned according to the device bandwidth.

25.11.31 AES

The Radio controller MR_BLE IP embeds an AES hardware accelerator. This accelerator is encapsulated in a wrapper allowing to share a single accelerator core for 3 different actions/modes:

  1. 1. on-the fly encryption
  2. 2. manual encryption
  3. 3. LE Privacy

In case of simultaneous requests for several modes, a priority mechanism serves the requester in the same order as the list order above.

On-the-fly encryption

This mode corresponds to an on-going Bluetooth encrypted transmission/reception.

In transmission, the AES encrypts the data read from the RAM DataPack table before to transmit them.

In reception, the AES decrypts the received data before to store them in the DataPack RAM table.

This mode is activated as soon as a RF transfer is done with the StatMach.EncryptOn bit set to '1'.

The on-the-fly AES feature can discriminate the part of the frame not concerned by encryption like the HEADER parts (including the HEADER3 when CTE is active in the frame).


Warning: The Isochronous Channels encryption is not managed by this HW feature and need to be done at SW level without enabling the HW encryption.


This mode is the most priority mode and is always be served first in case of concurrent requests not to impact the Bluetooth communication.

Manual encryption

The goal of this mode is to share the AES core embedded with the CPU of the SoC. As the Bluetooth LE link layer does not use this HW resource all the time, the idea is to let the CPU process its own encryptions through this HW accelerator. It avoids adding an extra AES core in the SoC if the share usage is acceptable.

A set of registers is present to manage this manual encryption (see Section 25.12: Bluetooth LE IP registers).

The process to do a manual encryption is the following:

  1. 1. Enter the key in the MANAESxKEYREG registers (x from 0 to 3)
  2. 2. Enter the text to encrypt (16 bytes by computation) in the MANAESCLEARTEXTxREG (x from 0 to 3) registers.
  3. 3. Possibility to enable an interrupt to be informed when the computation is over by setting the MANAESCMDREG[1] = INTENA bit
  1. 4. Launch the encryption by setting the MANAESCMDREG[0] = START bit.
  2. 5. Wait for end of computation:
    1. a. If the interrupt mode is enabled, the interrupt line dedicated to AES (irq_BLE_int2 also called BLE_AES) is raised and the CPU gets the reason in the INTERRUPT2REG[0] = AESMANENDINT bit.
    2. b. else, the SW has to poll the MANAESSTATREG[0] = BUSY bit until it is cleared by HW.
  3. 6. If interrupt is used, write 1 in the INTERRUPT2REG[0] = AESMANENDINT bit to clear the flag.
  4. 7. The encrypted data / result is available in the MANAESCYPHERTEXTxREG (x from 0 to 3) registers.
  5. 8. If needed the SW can restart from step 1 or step 2.

LE privacy

In Radio controller MR_BLE IP, the Bluetooth LE link layer provides a hardware solution for the LE privacy resolution.

The process to do a LE Privacy resolution is the following:

  1. 1. The processor must provide to the AES block:
    1. a. the address in RAM where to find the 128-bit key array through the AESLEPRIVPOINTERREG IP_BLE APB register,
    2. b. the reference HASH through the AESLEPRIVHASHREG IP_BLE APB register,
    3. c. the random number through the AESLEPRIVPRANDREG IP_BLE APB register.
    4. d. the maximum key number through the AESLEPRIVCMDREG IP_BLE APB register (NBKEYS bit field).
  2. 1. Enable the AES LE privacy interrupt by setting the INTENA bit in the AESLEPRIVCMDREG IP_BLE APB register.
  3. 2. Launch the calculation by setting the Start bit in the AESLEPRIVCMDREG IP_BLE APB register (auto-cleared bit).
  4. 3. At the end of computation, the interrupt line dedicated to AES (irq_BLE_int2 also called BLE_AES) is raised and the CPU gets the reason in the INTERRUPT2REG [1] = AESLEPRIVINT bit.
  5. 4. write 1 in the INTERRUPT2REG[1] = AESLEPRIVINT bit to clear the flag.
  6. 5. The results are then available in the following registers / bit fields:
    1. a. the KEYFIND bit in the AESLEPRIVSTATREG IP_BLE APB register indicates if a key has been found (KEYFIND bit = 1) or not (KEYFIND) = 0 in the list,
    2. b. If KEYFIND = 1, the KEYFINDINDEX[7:0] bit field in the AESLEPRIVSTATREG IP_BLE APB register indicates which key of the array is the found one.

25.11.32 MSB-first feature

The MSB-first feature, not compliant with the Bluetooth standard, is added to extend to potential proprietary protocols.

The principle is:

The bit endianness modification is done only on the PDU part of the packet. This means:

However, the Radio controller MR_BLE receive block is able to manage the 2 first bytes of the PDU regardless the endianness option:

Figure 208. MSBFirst feature principle overview

Block diagram showing the MSBFirst feature principle overview for TX and RX operations.

The diagram illustrates the data flow for TX and RX operations involving the MSBFirst feature. It shows a central RAM block connected to encryption/decryption blocks, CRC generation/checking blocks, and whitening/dewhitening blocks. The TX operation path flows from RAM through encryption, CRC generation, whitening, and finally to the RF Interface. The RX operation path flows from the RF Interface through dewhitening, CRC checking, and decryption back to RAM. Purple arrows labeled 'Swap endianness here' point to the inputs of the whitening and CRC checking blocks, indicating where the endianness swap occurs.

Block diagram showing the MSBFirst feature principle overview for TX and RX operations.

The feature is enabled by setting the StatMach.MsbFirst bit.

This feature must not be enabled when at least one of the conditions below is true:

There is no HW mechanism to ensure previous forbidden configurations are not active at the same time as the MSBFirst feature. So if the SW does not respect the rule, the integrity of the transfer is not guaranteed.

25.12 Bluetooth LE IP registers

The BLUE_BLOCKBaseAddress keyword used for all the register base address information corresponds to the IP_BLE registers base address decided by the SoC when integrating the IP.

Note: BLUE_BLOCKBaseAddress is 0x6000_0000 in STM32WB09xE product.

Table 145. BLE IP register list

OffsetRegister NameRegister TitleReset
0x0004INTERRUPT1REGINTERRUPT1REG register0x0000 0000
0x0008INTERRUPT2REGINTERRUPT2REG register0x0000 0000
0x000CTIMEOUTDESTREGTIMEOUTDESTREG register0x0000 0000
0x0010TIMEOUTREGTIMEOUTREG register0x0000 0000
0x0014TIMERCAPTUREREGTIMERCAPTUREREG register0x0000 0000
0x0018CMDREGCMDREG register0x0000 0000
0x001CSTATUSREGSTATUSREG register0x0000 0000
0x0020INTERRUPT1ENABLEREGINTERRUPT1ENABLEREG register0x0000 0000
0x0024INTERRUPT1LATENCYREGINTERRUPT1LATENCYREG register0x0000 0000
0x0028MANAESKEY0REGMANAESKEY0REG register0x0000 0000
0x002CMANAESKEY1REGMANAESKEY1REG register0x0000 0000
0x0030MANAESKEY2REGMANAESKEY2REG register0x0000 0000
0x0034MANAESKEY3REGMANAESKEY3REG register0x0000 0000
0x0038MANAESCLEARTEXT0REGMANAESCLEARTEXT0REG register0x0000 0000
0x003CMANAESCLEARTEXT1REGMANAESCLEARTEXT1REG register0x0000 0000
0x0040MANAESCLEARTEXT2REGMANAESCLEARTEXT2REG register0x0000 0000
0x0044MANAESCLEARTEXT3REGMANAESCLEARTEXT3REG register0x0000 0000
0x0048MANAESCIPHERTEXT0REGMANAESCIPHERTEXT0REG register0x0000 0000
0x004CMANAESCIPHERTEXT1REGMANAESCIPHERTEXT1REG register0x0000 0000
0x0050MANAESCIPHERTEXT2REGMANAESCIPHERTEXT2REG register0x0000 0000
0x0054MANAESCIPHERTEXT3REGMANAESCIPHERTEXT3REG register0x0000 0000
0x0058MANAESCMDREGMANAESCMDREG register0x0000 0000
0x005CMANAESSTATREGMANAESSTATREG register0x0000 0000
0x0060AESLEPRIVPOINTERREGAESLEPRIVPOINTERREG register0x0000 0000
0x0064AESLEPRIVHASHREGAESLEPRIVHASHREG register0x0000 0000
0x0068AESLEPRIVPRANDREGAESLEPRIVPRANDREG register0x0000 0000
0x006CAESLEPRIVCMDREGAESLEPRIVCMDREG register0x0000 0000
0x0070AESLEPRIVSTATREGAESLEPRIVSTATREG register0x0000 0000
0x007CSTATUS2REGSTATUS2REG register0x0000 0000

25.12.1 INTERRUPT1REG register (INTERRUPT1REG)

Address offset: 0x0004

Reset value: 0x0000 0000 (0xFFFF FFFF)

INTERRUPT1REG register

31302928272625242322212019181716
RCVOKRCVCRCERRTIMECAPTURETRIGRCVCMDRCVNOMDRCVTIMEOUTDONETXOKCONFIGERRORACTIVE2ERRORTXRXSKIPRes.SEMATIMEOUTERRORRCVLENGTHERRORRes.NOACTIVELError
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1
1514131211109876543210
TXDATAREADYERRORALLTABLEREADYERRORENCERRORTXERROR_4TXERROR_3TXERROR_2TXERROR_1TXERROR_0SEQDONERes.RXOVERFLOWERRORADDPONTERERRORRes.Res.Res.Res.
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

Bit 31 RCVOK: Receive data OK.

When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 30 RCVCRCERR: Receive data fail

When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 29 TIMECAPTURETRIG: A time has been captured in TIMERCAPTUREREG.

When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 28 RCVCMD: Received command

When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 27 RCVNOMD: Received low MD bit.

When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 26 RCVTIMEOUT: Receive timeout (no preamble found).

When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 25 DONE: Receive/Transmit done.

When read, indicates the interrupt status.
Write 1'b1 to clear.

Note: All bits with the corresponding enable mask at '0' are seen at '0' in this register whatever the status.

The full unmasked status is visible in the STATUSREG register. Refer to Section 25.12.7: STATUSREG register (STATUSREG) for an exhaustive flag description.

25.12.2 INTERRUPT2REG register (INTERRUPT2REG)

Address offset: 0x0008
Reset value: 0x0000 0000 (0xFFFF FFFF)
INTERRUPT2REG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AESLEPRIVINTAESMANENCINT
rc_w1rc_w1

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 AESLEPRIVINT: AES LE privacy engine.
This interrupt is enabled through MANAESCMDREG register.
When read, indicates the interrupt status.
Write 1'b1 to clear.

Bit 0 AESMANENCINT: AES manual encryption.
This interrupt is enabled through AESLEPRIVCMDREG register.
When read, indicates the interrupt status.
Write 1'b1 to clear.

ST logo
ST logo

25.12.3 TIMEOUTDESTREG register (TIMEOUTDESTREG)

Address offset: 0x000C
Reset value: 0x0000 0000 (0xFFFF FFFF)
TIMEOUTDESTREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DESTINATION[1:0]
rw rw
ST logo
ST logo

25.12.4 TIMEOUTREG register (TIMEOUTREG)

Address offset: 0x0010

Reset value: 0x0000 0000 (0xFFFF FFFF)

TIMEOUTREG register

31302928272625242322212019181716
TIMEOUT[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TIMEOUT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 TIMEOUT[31:0]: Timer1 or Timer2 Timeout value (depending on Destination register)

Time units:

25.12.5 TIMERCAPTUREREG register (TIMERCAPTUREREG)

Address offset: 0x0014

Reset value: 0x0000 0000 (0xFFFF FFFF)

TIMERCAPTUREREG register

31302928272625242322212019181716
TIMERCAPTURE[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
TIMERCAPTURE[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 TIMERCAPTURE[31:0]: Interpolated absolute time capture register

See. TxRxPack.TrigRcv/TrigDone, GlobalStatMach.TimeCapture/TimeCaptureSel for detailed specification.

This register is cleared on the beginning of a new Bluetooth LE sequence (sequencer trigger event).

Time unit is in 16 x slow clock so typically 512 kHz period cycle.

25.12.6 CMDREG register (CMDREG)

Address offset: 0x0018

Reset value: 0x0000 0000 (0xFFFF FFFF)

CMDREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLEARSEMAREQRes.Res.TXRXSKIP
ww

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CLEARSEMAREQ: Semaphore Clear command.

Setting this bit releases the token for the IP_BLE. Software option in parallel of the hardware management by the BLE sequencer through TxRxPack.KeepSemaReq bit.

This bit is auto cleared by the HW.

Bits 2:1 Reserved, must be kept at reset value.

Bit 0 TXRXSKIP: Transmission/Reception skip command.

This bit is auto cleared by the HW.

25.12.7 STATUSREG register (STATUSREG)

Address offset: 0x001C

Reset value: 0x0000 0000 (0xFFFF FFFF)

STATUSREG register

31302928272625242322212019181716
RCVOKRCVCRCERRTIMECAPTURETRIGRCVCMDRCVNOMDRCVTIMEOUTDONETXOKCONFIGERRORACTIVE2ERRORTXRXSKIPRes.SEMATIMEOUTERRORRCVLENGTHERRORRes.NOACTIVELERROR
rrrrrrrrrrrrrr
1514131211109876543210
TXDATAREADYERRORALLTABLEREADYERRORENCERRORTXERROR_4TXERROR_3TXERROR_2TXERROR_1TXERROR_0SEQDONEPREVTRANSMITRXOVERFLOWERRORADDPOINTERRORNOTSUPPORTED_FUNCTIONRes.Res.AESONFLYBUSY
rrrrrrrrrrrrrr

Bit 31 RCVOK: Receive data OK status

Bit 30 RCVCRCERR: Receive data fail (CRC error or invalid CI field) status.

Note: This error is raised only if at least preamble and access address have been detected.

Bit 29 TIMECAPTURETRIG: indicates a time has been captured in TIMERCAPTUREREG when set.

Bit 28 RCVCMD: Received command status (valid only on Data Physical Channel PDU reception).

This flag is raised when LLID = 2'b11 in the received data packet header.

Bit 27 RCVNOMD: Received MD bit status (valid only on Data Physical Channel PDU reception)

This flag is raised when MD = 0 in the received data packet header.

Bit 26 RCVTIMEOUT: Receive timeout status (no access address found)

Bit 25 DONE: Receive/Transmit done status.

This flag is set if the sequencer reached the Transmission/Reception step.

Bit 24 TXOK: Previous transmitted packet received OK by the peer device status. This bit is updated at the end of a reception.

0: the previous transmitted packet was not received OK by the peer device.

1: the previous transmitted packet was received OK by the peer device.

This bit is set only if the following conditions are verified:

Bit 8 TXERROR_0: Transmission error 0 status. Transmit block missing data error.

This flag is raised if the transmit block did not receive bytes to transmit from RAM on time during transmission).

Note: on this error, the transmit block stops the on-going transmission but the sequencer manages it as a normal end of transmission. This TXERROR_0 flag is the only information available for the user regarding this issue.

Bit 7 SEQDONE: Sequencer end of task status.

This bit is set each time the sequencer ends the execution of a sequence due to a trigger event whatever the result (OK, with errors, ACTIVE bit not set, etc.).

Bit 6 PREVTRANSMIT: Previous event was a Transmission (1) or Reception (0) status

Bit 5 RXOVERFLOWERROR: AHB arbiter is full and there is no more storage capability available in RX datapath

Bit 4 ADDPONTERERROR: Address Pointer Error status

This flag is set when the MSB[31:24] part of some address pointers defined in the RAM tables is not equal to the MSB[31:24] part of the RAM base address of the device.

Bit 3 NOTSUPPORTED_FUNCTION: indicates the SW requests an unsupported feature.

Bits 2:1 Reserved, must be kept at reset value.

Bit 0 AESONFLYBUSY: AES on the fligh encryption busy status

Note: This register is updated on each sequencer end of sequence.

This register is cleared each time the sequencer starts a new sequence (timer trig event) except for the bit tagged with (*):

CONFIGERROR: updated when the sequencer reads the StatMach

PREVTRANSMIT: updated when the sequencer reaches the transmission/reception step again

After a reception, a SN_NESN error is identified if the STATUSREG indicates the RX is done (DONE=1), not OK (RCVOK=0) but no other specific error flag is set.

When a transmission occurred well, the DONE flag (in STATUSREG and potentially INTERRUPT1REG) and the STATUSREG.PREVTRANSMIT bit are set.

25.12.8 INTERRUPT1ENABLEREG register (INTERRUPT1ENABLEREG)

Address offset: 0x0020

Reset value: 0x0000 0000 (0xFFFF FFFF)

INTERRUPT1ENABLEREG register

31302928272625242322212019181716
RCVOKRCVCRCERRTIMECAPTURETRIGRCVCMDRCVNOMDRCVTIMEOUTDONETXOKCONFIGERRORACTIVE2ERRORTXRXSKIPRes.SEMATIMEOUTERRORRCVLENGTHERRORRes.NOACTIVELERROR
rrrrrrrrrrrrrr
1514131211109876543210
TXDATAREADYERRORALLTABLEREADYERRORENCERRORTXERROR_4TXERROR_3TXERROR_2TXERROR_1TXERROR_0SEQDONERes.RXOVERFLOWERRORADDPOINTERERRORRes.Res.Res.Res.
rrrrrrrrrrr

Bit 31 RCVOK: Receive data OK enable interruption

Bit 30 RCVCRCERR: Receive data fail enable interruption

Bit 29 TIMECAPTURETRIG: TimerCaptureReg time capture enable interruption

Bit 28 RCVCMD: Received command enable interruption

Bit 27 RCVNOMD: Received MD bit embedded in the PDU data packet header was zero enable interruption

Bit 26 RCVTIMEOUT: Receive timeout enable interruption (no preamble found)

Bit 25 DONE: Receive/Transmit done interruption

Bit 24 TXOK: Previous transmitted packet received OK enable interruption

Bit 23 CONFIGERROR: Data pointer configuration error enable interruption

Bit 22 ACTIVE2ERROR: Active2 Radio state error enable interruption

Bit 21 TXRXSKIP: Transmission/Reception skip enable interruption

Bit 20 Reserved, must be kept at reset value.

Bit 19 SEMATIMEOUTERROR: Semaphore timeout error enable interruption

Bit 18 RCVLENGTHERROR: Receive length error enable interruption

Bit 17 Reserved, must be kept at reset value.

Bit 16 NOACTIVELERROR: active bit error enable interruption

Bit 15 TXDATAREADYERROR: Transmit data pack not ready enable interruption

Bit 14 ALLTABLEREADYERROR: All RAM Table not ready enable interruption
Bit 13 ENCERROR: Encryption error on receive enable interruption
Bit 12 TXERROR_4: Transmission error 4 enable interruption
Bit 11 TXERROR_3: Transmission error 3 enable interruption
Bit 10 TXERROR_2: Transmission error 2 enable interruption
Bit 9 TXERROR_1: Transmission error 1 enable interruption
Bit 8 TXERROR_0: Transmission error 0 enable interruption
Bit 7 SEQDONE: Sequencer end of task enable interruption
Bit 6 Reserved, must be kept at reset value.
Bit 5 RXOVERFLOWERROR: Rx Overflow Error enable interruption
Bit 4 ADDPPOINTERROR: Address Pointer Error enable interruption
Bits 3:0 Reserved, must be kept at reset value.

Note: This read-only register is a copy/summary of all the enable mask bit located in the different RAM tables treated by the sequencer.
When '0', corresponding interrupt was masked during previous sequence.
When '1', corresponding interrupt was enabled during the previous sequence.

25.12.9 INTERRUPT1LATENCYREG register (INTERRUPT1LATENCYREG)

Address offset: 0x0024

Reset value: 0x0000 0000 (0xFFFF FFFF)

INTERRUPT1LATENCYREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.INTERRUPT1LATENCY[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 INTERRUPT1LATENCY[7:0]: relative time counter started on irq_BLE_int1 (BLE_TXRX) occurrence.

Time unit: 1 μs

Clamped at 255.

Reset when all INTERRUPT1REG sources are cleared or when a new irq_BLE_int1 (BLE_TXRX) is raised.

25.12.10 MANAESKEY0REG register (MANAESKEY0REG)

Address offset: 0x0028

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESKEY0REG register

31302928272625242322212019181716
MANAESKEY_31_0[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MANAESKEY_31_0[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MANAESKEY_31_0[31:0]: Manual mode AES key

25.12.11 MANAESKEY1REG register (MANAESKEY1REG)

Address offset: 0x002C

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESKEY1REG register

31302928272625242322212019181716
MANAESKEY_63_32[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MANAESKEY_63_32[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MANAESKEY_63_32[31:0]: Manual mode AES key

25.12.12 MANAESKEY2REG register (MANAESKEY2REG)

Address offset: 0x0030

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESKEY2REG register

31302928272625242322212019181716
MANAESKEY_95_64[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MANAESKEY_95_64[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MANAESKEY_95_64[31:0]: Manual mode AES key

25.12.13 MANAESKEY3REG register (MANAESKEY3REG)

Address offset: 0x0034

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESKEY3REG register

31302928272625242322212019181716
MANAESKEY_127_96[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MANAESKEY_127_96[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MANAESKEY_127_96[31:0]: Manual mode AES key

25.12.14 MANAESCLEARTEXT0REG register (MANAESCLEARTEXT0REG)

Address offset: 0x0038

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCLEARTEXT0REG register

31302928272625242322212019181716
AES_CLEAR_31_0[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
AES_CLEAR_31_0[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 AES_CLEAR_31_0[31:0]: Manual AES clear text

25.12.15 MANAESCLEARTEXT1REG register (MANAESCLEARTEXT1REG)

Address offset: 0x003C

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCLEARTEXT1REG register

31302928272625242322212019181716
AES_CLEAR_63_32[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
AES_CLEAR_63_32[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 AES_CLEAR_63_32[31:0]: Manual AES clear text

25.12.16 MANAESCLEARTEXT2REG register (MANAESCLEARTEXT2REG)

Address offset: 0x0040

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCLEARTEXT2REG register

31302928272625242322212019181716
AES_CLEAR_95_64[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
AES_CLEAR_95_64[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 AES_CLEAR_95_64[31:0]: Manual AES clear text

25.12.17 MANAESCLEARTEXT3REG register (MANAESCLEARTEXT3REG)

Address offset: 0x0044

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCLEARTEXT3REG register

31302928272625242322212019181716
AES_CLEAR_127_96[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
AES_CLEAR_127_96[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 AES_CLEAR_127_96[31:0]: Manual AES clear text

25.12.18 MANAESCIPHERTEXT0REG register (MANAESCIPHERTEXT0REG)

Address offset: 0x0048

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCIPHERTEXT0REG register

31302928272625242322212019181716
AES_CIPHER_31_0[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
AES_CIPHER_31_0[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 AES_CIPHER_31_0[31:0]: Manual AES cipher text

25.12.19 MANAESCIPHERTEXT1REG register (MANAESCIPHERTEXT1REG)

Address offset: 0x004C

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCIPHERTEXT1REG register

31302928272625242322212019181716
AES_CIPHER_63_32[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
AES_CIPHER_63_32[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 AES_CIPHER_63_32[31:0]: Manual AES cipher text

25.12.20 MANAESCIPHERTEXT2REG register (MANAESCIPHERTEXT2REG)

Address offset: 0x0050

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCIPHERTEXT2REG register

31302928272625242322212019181716
AES_CIPHER_95_64[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
AES_CIPHER_95_64[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 AES_CIPHER_95_64[31:0]: Manual AES cipher text

25.12.21 MANAESCIPHERTEXT3REG register (MANAESCIPHERTEXT3REG)

Address offset: 0x0054

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCIPHERTEXT3REG register

31302928272625242322212019181716
AES_CIPHER_127_96[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
AES_CIPHER_127_96[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 AES_CIPHER_127_96[31:0]: Manual AES Cipher Text

25.12.22 MANAESCMDREG register (MANAESCMDREG)

Address offset: 0x0058

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESCMDREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INTENASTART
rww

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 INTENA: AES Manual encryption interrupt enable on Interrupt2Reg

Bit 0 START: AES Manual encryption Start command.

This bit is auto cleared by the HW.

25.12.23 MANAESSTATREG register (MANAESSTATREG)

Address offset: 0x005C

Reset value: 0x0000 0000 (0xFFFF FFFF)

MANAESSTATREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUSY
r

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 BUSY: AES manual encryption busy status

25.12.24 AESLEPRIVPOINTERREG register (AESLEPRIVPOINTERREG)

Address offset: 0x0060

Reset value: 0x0000 0000 (0xFFFF FFFF)

AESLEPRIVPOINTERREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.POINTER[23:16]
rwrwrwrwrwrwrwrw
1514131211109876543210
POINTER[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 POINTER[23:0]: AES Le privacy pointer

25.12.25 AESLEPRIVHASHREG register (AESLEPRIVHASHREG)

Address offset: 0x0064

Reset value: 0x0000 0000 (0xFFFF FFFF)

AESLEPRIVHASHREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.HASH[23:16]
rwrwrwrwrwrwrwrw
1514131211109876543210
HASH[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 HASH[23:0]: AES Le privacy Reference Hash

25.12.26 AESLEPRIVPRANDREG register (AESLEPRIVPRANDREG)

Address offset: 0x0068

Reset value: 0x0000 0000 (0xFFFF FFFF)

AESLEPRIVPRANDREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.PRAND[23:16]
rwrwrwrwrwrwrwrw
1514131211109876543210
PRAND[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 PRAND[23:0]: AES Le privacy Prand

25.12.27 AESLEPRIVCMDREG register (AESLEPRIVCMDREG)

Address offset: 0x006C

Reset value: 0x0000 0000 (0xFFFF FFFF)

AESLEPRIVCMDREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.NBKEYS[7:0]INTENASTART
rwrwrwrwrwrwrw

Bits 31:10 Reserved, must be kept at reset value.

Bits 9:2 NBKEYS[7:0]: AES Le privacy number of keys pointed by AesLePrivPointerReg (points to the resolution key list.)

Bit 1 INTENA: AES Le privacy interrupt enable on Interrupt2Reg

Bit 0 START: AES Le privacy Start command. Autoreset

25.12.28 AESLEPRIVSTATREG register (AESLEPRIVSTATREG)

Address offset: 0x0070

Reset value: 0x0000 0000 (0xFFFF FFFF)

AESLEPRIVSTATREG register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.KEYFNDINDEX[7:0]KEYFNDBUSY
rrrrrrrrrr

Bits 31:10 Reserved, must be kept at reset value.

Bits 9:2 KEYFNDINDEX[7:0]: AES Le privacy index of the key found in the resolution key list.

Bit 1 KEYFND: AES Le privacy key finding status

Bit 0 BUSY: AES Le privacy busy status

ST logo
ST logo

25.12.29 STATUS2REG register (STATUS2REG)

Address offset: 0x007C

Reset value: 0x0000 0000 (0xFFFF FFFF)

STATUS2REG register

31302928272625242322212019181716
ANTENNA_SWITCHING_PATTERN_ADDRESS_ERRORANTENNA_SWITCHING_PATTERN_ACCESS_ERRORIQSAMPLES_MISSING_ERRORRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.IQSAMPLES_NUMBER[6:0]IQSAMPLES_READY
rrrrrrrr

Bit 31 ANTENNA_SWITCHING_PATTERN_ADDRESS_ERROR: AHB access error flag.

This bit is set when an internal error is raised while the IP_BLE tries to read the Antenna pattern in RAM. This indicates the value contained in the StatMach.AntennaPatternPtr is not pointing on a supported address in the SoC mapping.

Bit 30 ANTENNA_SWITCHING_PATTERN_ACCESS_ERROR: timing error flag related to Antenna Pattern not read on-time.

This bit is set when the HW antenna switching sub-block requests a new element of the Antenna Pattern and does not get it on-time versus antenna switching event.

Bit 29 IQSAMPLES_MISSING_ERROR: IQ sample internal buffer overflow error flag.

This bit is set when the internal buffer storing the IQ samples is full and new IQ samples has to be recording. The reason would be a too long latency on AHB write transfer from this internal buffer to RAM.

Bits 28:8 Reserved, must be kept at reset value.

Bits 7:1 IQSAMPLES_NUMBER[6:0]: indicate the number of IQ samples stored in the RAM buffer addressed by StatMach.IQSamplesPtr.

Bit 0 IQSAMPLES_READY: indicates if IQ samples have been received on the last reception.

0: no IQ samples reception occurred so no IQ samples stored in RAM

1: IQ samples received and stored in RAM. Exact number of stored samples is available in IQSAMPLES_NUMBER[6:0] bit field.

25.13 Wakeup block

The Wakeup block is partially located in the always-on power domain to stay supplied even in the low power modes of the device. All features not mandatory during low power modes are located in the 1.2 V switchable power domain to limit power consumption.

The Wakeup block combines in fact two features:

25.13.1 Time features management

The wakeup block computes two kinds of time: the absolute time and the interpolated time.

Absolute time

This timer is located in the always-on power domain and is based on a rollover free running counter. The absolute time is computed by a 28-bit counter clocked on the slow clock (around 32 kHz).

This absolute time is used to generate a wakeup event to the power controller block of the device when the programmed target reaches the current absolute time.

Two different targets can be programmed in parallel:

The absolute time is also used by the time interpolator block to build the 28-bit MSB non-interpolated part of the 32-bit interpolated time.

Interpolated time

The interpolated time is in the 1.2 V switchable power domain and is clocked at 16 x slow clock frequency (typically 512 kHz).

This interpolated time is a 32-bit timer built with:

The 32-bit interpolated time is used by the Bluetooth LE link layer to get current time information and to manage the Timer1.

The 512 kHz interpolation part (4-LSB) is generated using both the 32 kHz and the system clock using a 16 MHz base whatever the system clock frequency.

Slow clock frequency statistics

A module computes the minimum, the maximum and the average value of the slow clock period length by counting the number of 16 MHz period in a slow clock period. The value is tuned on each slow clock cycle.

The calculation is done continuously from the moment the Radio controller MR_BLE IP reset is released. The result is available in MINIMUM_PERIOD_LENGTH, AVERAGE_PERIOD_LENGTH and MAXIMUM_PERIOD_LENGTH registers (see Section 25.14: Wakeup registers).

The average value is calculated using the previous sampled results as recursive weight: the new calculation is added to previous average and divided by the number of measurements up to 16. Then the ratio factor stays at 16.

The software can reset the minimum/maximum period value and/or the average value registers thanks to dedicated command bit in STATISTICS_RESTART register.

25.13.2 Sleep feature management

The sleep management informs the device power controller block if the Radio controller MR_BLE allows the device to go in low power mode (“sleep request”).

The Wakeup block allows the device to go in low power mode (through sleep request information) if:

When the device is in low power, the slow clock timer is still active and may generate a wakeup request to the power controller.

25.13.3 Wakeup management

The wakeup feature is in charge to wake up the device from a low power mode and in a second time (once power and clock tree are restored), to wake up the Bluetooth LE link layer and/or the CPU.

Note: The CPU wakeup/interrupt feature offers an additional low power timer to the device.

The Wakeup block manages:

SoC wakeup event generation

The Wakeup block offers the possibility to wake up the SoC before to wake up the Bluetooth LE link layer or the CPU to let time to power and clocks to settle.

This way, the user only has to program dynamically along its application the Bluetooth LE link layer / CPU wakeup time target, letting the HW manage the anticipated SoC wakeup.

The mechanism consists in programming a dedicated register called WAKEUP_OFFSET at the power on with a value corresponding to at least the duration of the power and clock restoration from a low power mode exit.

The HW automatically uses this information to anticipate the SoC wakeup event generation from this duration versus the absolute time wakeup target.

Information to program the SoC wakeup event time:

IP_BLE wakeup management

The user must program two information to activate the Bluetooth LE link layer wakeup feature:

Note: The user must ensure when setting the BLE_WAKEUP_EN bit that the programmed IP_BLE wakeup time is at least WAKEUP_OFFSET[7:0] duration later.

Table 209 provides an overview of the registers involved in the wakeup management and summarize steps describes just above.

Figure 209. IP_BLE wakeup timing contributors

Timing diagram showing the sequence of events for IP_BLE wakeup. A horizontal timeline shows two events: 'SoCwakeup event' (orange lightning bolt) and 'Bluetooth LE wakeup event' (purple lightning bolt). The SoCwakeup event occurs at Time = BLUE_WAKEUP_TIME[31:4] - WAKEUP_OFFSET[7:0]. The Bluetooth LE wakeup event occurs at Time = BLUE_WAKEUP_TIME[31:4]. A double-headed arrow between these two points is labeled 'WAKEUP_OFFSET[7:0] = SoC power and clocks startup/settlement'. The absolute time is noted as 'Absolute time Available in ABSOLUTE_TIME[31:4] register'.

In purple: Bluetooth LE controller Sequencer related event
In orange : SoC power controller related event

SoCwakeup event

WAKEUP_OFFSET[7:0] = SoC power and clocks startup/settlement

Bluetooth LE wakeup event

Time = BLUE_WAKEUP_TIME[31:4] - WAKEUP_OFFSET[7:0]

Time = BLUE_WAKEUP_TIME[31:4]

Absolute time Available in ABSOLUTE_TIME[31:4] register

Timing diagram showing the sequence of events for IP_BLE wakeup. A horizontal timeline shows two events: 'SoCwakeup event' (orange lightning bolt) and 'Bluetooth LE wakeup event' (purple lightning bolt). The SoCwakeup event occurs at Time = BLUE_WAKEUP_TIME[31:4] - WAKEUP_OFFSET[7:0]. The Bluetooth LE wakeup event occurs at Time = BLUE_WAKEUP_TIME[31:4]. A double-headed arrow between these two points is labeled 'WAKEUP_OFFSET[7:0] = SoC power and clocks startup/settlement'. The absolute time is noted as 'Absolute time Available in ABSOLUTE_TIME[31:4] register'.

25.13.4 CPU wakeup management

A similar behavior is possible to generate a CPU wakeup event.

The user must program three information to activate the CPU wakeup feature:

Note: Only the 28-bit absolute time is used for the CPU wakeup feature, so granularity of wakeup target is slow clock frequency.

In this case, the wakeup process also occurs in two steps:

This feature allows using the existing slow clock timer to generate a CPU wakeup source. This feature when activated has no impact on the Bluetooth LE transfers (no trigger event generated to the IP_BLE sequencer)

25.14 Wakeup registers

The WAKEUP_SLEEP_BLOCKBaseAddress keyword used for all the register base address information corresponds to the Wakeup registers base address decided by the SoC when integrating the IP.

Note: WAKEUP_SLEEP_BLOCKBaseAddress is 0x6000_1800 in STM32WB09xE product.

Table 146. Wakeup register list

OffsetRegister NameRegister TitleReset
0x0008WAKEUP_OFFSETWAKEUP_OFFSET register0x0000 0000
0x0010ABSOLUTE_TIMEABSOLUTE_TIME register0x0000 0000
0x0014MINIMUM_PERIOD_LENGTHMINIMUM_PERIOD_LENGTH register0x0000 0000
0x0018AVERAGE_PERIOD_LENGTHAVERAGE_PERIOD_LENGTH register0x0000 0000
0x001CMAXIMUM_PERIOD_LENGTHMAXIMUM_PERIOD_LENGTH register0x0000 0000
0x0020STATISTICS_RESTARTSTATISTICS_RESTART register0x0000 0000
0x0024BLUE_WAKEUP_TIMEBLUE_WAKEUP_TIME register0x0000 0000
0x0028BLUE_SLEEP_REQUEST_MODEBLUE_SLEEP_REQUEST_MODE register0x0000 0007
0x002CCM0_WAKEUP_TIMECM0_WAKEUP_TIME register0x0000 0000
0x0030CM0_SLEEP_REQUEST_MODECM0_SLEEP_REQUEST_MODE register0x8000 0007
0x0040WAKEUP_BLE_IRQ_ENABLEWAKEUP_BLE_IRQ_ENABLE register0x0000 0000
0x0044WAKEUP_BLE_IRQ_STATUSWAKEUP_BLE_IRQ_STATUS register0x0000 0000
0x0048WAKEUP_CM0_IRQ_ENABLEWAKEUP_CM0_IRQ_ENABLE register0x0000 0000
0x004CWAKEUP_CM0_IRQ_STATUSWAKEUP_CM0_IRQ_STATUS register0x0000 0000

25.14.1 WAKEUP_OFFSET register (WAKEUP_OFFSET)

Address offset: 0x0008

Reset value: 0x0000 0000 (0xFFFF FFFF)

Offset used to anticipate the SOC wakeup event

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_OFFSET[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 WAKEUP_OFFSET[7:0]: delay of anticipation of the Soc device to settle power and clock
Unit is in slow clock period time (typically 32 kHz)

25.14.2 ABSOLUTE_TIME register (ABSOLUTE_TIME)

Address offset: 0x0010

Reset value: 0x0000 0000 (0xFFFF FFFF)

Absolute Time register

31302928272625242322212019181716
ABSOLUTE_TIME[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ABSOLUTE_TIME[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ABSOLUTE_TIME[31:0]: absolute time

This value is expressed in number of (slow_clock *16) frequency period cycle (typically 512 kHz).

Note: ABSOLUTE_TIME[31:4] is clocked on the slow clock (typically 32 kHz),

ABSOLUTE_TIME[3:0] is the interpolation at slow clock * 16 frequency (typically 512 kHz).

25.14.3 MINIMUM_PERIOD_LENGTH register (MINIMUM_PERIOD_LENGTH)

Address offset: 0x0014

Reset value: 0x0000 0000 (0xFFFF FFFF)

Minimum period length register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.LENGTH[9:0]Res.Res.Res.Res.
rrrrrrrrrr

Bits 31:14 Reserved, must be kept at reset value.

Bits 13:4 LENGTH[9:0]: minimum period length computed by Time Interpolator

Bits 3:0 Reserved, must be kept at reset value.

25.14.4 AVERAGE_PERIOD_LENGTH register (AVERAGE_PERIOD_LENGTH)

Address offset: 0x0018

Reset value: 0x0000 0000 (0xFFFF FFFF)

average period length computed by Time Interpolator

31302928272625242322212019181716
AVERAGE_COUNT[7:0]Res.Res.Res.Res.Res.Res.Res.Res.
rrrrrrrr
1514131211109876543210
Res.Res.LENGTH_INT[9:0]LENGTH_FRACT[3:0]
rrrrrrrrrrrrrr

Bits 31:24 AVERAGE_COUNT[7:0]: Number of slow clock cycles.

This value indicates the number of slow clock periods considered to calculate the average.

This bit field is updated every slow clock period.

This bit field is clamped at 0xFF so reading 0xFF means at least 128 slow clock periods ar already been used to calculate the average.

Bits 23:14 Reserved, must be kept at reset value.

Bits 13:4 LENGTH_INT[9:0]: average period length computed by Time Interpolator.

This value indicates the number of 16 MHz clock cycles contained in 1 slow clock period.

This bit field is updated every 16 slow clock periods.

Bits 3:0 LENGTH_FRACT[3:0]: additional information/precision on slow clock frequency.

Reading AVERAGE_PERIOD_LENGTH[13:0] indicates the number of 16 MHz clock cycles contained in 16 slow clock periods.

This bit field is updated every 16 slow clock periods.

25.14.5 MAXIMUM_PERIOD_LENGTH register (MAXIMUM_PERIOD_LENGTH)

Address offset: 0x001C

Reset value: 0x0000 0000 (0xFFFF FFFF)

Maximum period length register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.LENGTH[9:0]Res.Res.Res.Res.
rrrrrrrrrr

Bits 31:14 Reserved, must be kept at reset value.

Bits 13:4 LENGTH[9:0]: maximum period length computed by Time Interpolator

Bits 3:0 Reserved, must be kept at reset value.

25.14.6 STATISTICS_RESTART register (STATISTICS_RESTART)

Address offset: 0x0020

Reset value: 0x0000 0000 (0xFFFF FFFF)

Statistics restart register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLR_AVRCLR_MIN_MAX
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 CLR_AVR: Write '1' to clear the AVERAGE_PERIOD_LENGTH register value.

This action clears both the average length value and the average counter.

Note: this bit is auto cleared by the HW.

Bit 0 CLR_MIN_MAX: Write '1' to clear the minimum and maximum registers.

Note: this bit is auto cleared by the HW.

25.14.7 BLUE_WAKEUP_TIME register (BLUE_WAKEUP_TIME)

Address offset: 0x0024

Reset value: 0x0000 0000 (0xFFFF FFFF)

Absolute IP_BLE wakeup time register

31302928272625242322212019181716
WAKEUP_TIME[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
WAKEUP_TIME[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 WAKEUP_TIME[31:0]: programmed wakeup time for the IP_BLE.

Unit is in (16 x slow clock) period so typically 512 kHz when slow clock is 32 kHz.

25.14.8 BLUE_SLEEP_REQUEST_MODE register (BLUE_SLEEP_REQUEST_MODE)

Address offset: 0x0028

Reset value: 0x0000 0007 (0xFFFF FFFF)

IP_BLE sleep request mode register

31302928272625242322212019181716
FORCE_SLEEPINGBLE_WAKEUP_ENSLEEP_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

25.14.9 CM0_WAKEUP_TIME register (CM0_WAKEUP_TIME)

Address offset: 0x002C

Reset value: 0x0000 0000 (0xFFFF FFFF)

Absolute CPU wakeup time register

31302928272625242322212019181716
WAKEUP_TIME[27:12]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
WAKEUP_TIME[11:0]Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:4 WAKEUP_TIME[27:0]: programmed wakeup time for CPU.

Unit is in slow clock period (This is why this register bits 3:0 are always read as zero as no 512 kHz granularity on this time wakeup).

Bits 3:0 Reserved, must be kept at reset value.

25.14.10 CM0_SLEEP_REQUEST_MODE register
(CM0_SLEEP_REQUEST_MODE)

Address offset: 0x0030

Reset value: 0x8000 0007 (0xFFFF FFFF)

CPU Sleep request mode register

31302928272625242322212019181716
FORCE_SLEEPINGCPU_WAKEUP_ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bit 31 FORCE_SLEEPING: CPU sleeping control.

0: the CPU sleeping information is also monitored by the MR_BLE wakeup block to decide if it allows or not the low power mode at SoC level

1: the CPU is always considered as sleeping by the wakeup block.

Note: this bit must always be kept high to let the CPU WFI instruction managing alone the low power mode allowance for CPU side.

Bit 30 CPU_WAKEUP_EN: CPU wakeup enable.

0: disable the CPU wakeup request

1: enable the CPU wakeup request.

This bit is auto cleared by hardware when a wakeup event occurs (CM0_WAKEUP_TIME value matches with current time).

Bits 29:0 Reserved, must be kept at reset value.

25.14.11 WAKEUP_BLE_IRQ_ENABLE register (WAKEUP_BLE_IRQ_ENABLE)

Address offset: 0x0040

Reset value: 0x0000 0000 (0xFFFF FFFF)

Wakeup IP_BLE interrupt enable register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_IT
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 WAKEUP_IT: IP_BLE wakeup interrupt enable.

0: disable the IP_BLE wakeup interrupt towards CPU.

1: enable IP_BLE wakeup interrupt towards the CPU.

25.14.12 WAKEUP_BLE_IRQ_STATUS register (WAKEUP_BLE_IRQ_STATUS)

Address offset: 0x0044

Reset value: 0x0000 0000 (0xFFFF FFFF)

Wakeup IP_BLE interrupt status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_IT
rc_w1

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 WAKEUP_IT: On read, returns the IP_BLE wakeup interrupt status.

Write '1' to clear this IRQ status bit.

25.14.13 WAKEUP_CM0_IRQ_ENABLE register (WAKEUP_CM0_IRQ_ENABLE)

Address offset: 0x0048

Reset value: 0x0000 0000 (0xFFFF FFFF)

Wakeup CPU interrupt enable register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_IT
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 WAKEUP_IT: CPU wakeup interrupt enable.

0: disable the CPU wakeup interrupt towards CPU.

1: enable CPU wakeup interrupt towards the CPU.

25.14.14 WAKEUP_CM0_IRQ_STATUS register (WAKEUP_CM0_IRQ_STATUS)

Address offset: 0x004C

Reset value: 0x0000 0000 (0xFFFF FFFF)

Wakeup CPU interrupt status register

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_IT
rc_w1

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 WAKEUP_IT: On read, returns the CPU wakeup interrupt status.

Write '1' to clear this IRQ status bit.

Table 147. Radio IP register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
RRM registers
0x0000 to 0x000C Reserved
0x0010UDRA_CTRL0Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RELOAD_RDCFGPTR
Reset value00000000000000000000000000000000
0x0014UDRA_IRQ_ENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRADIO_CFG_PTR_RELOADED
Reset value00000000000000000000000000000000
0x0018UDRA_IRQ_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRADIO_CFG_PTR_RELOADED
Reset value00000000000000000000000000000000
0x001CUDRA_RADIO_CFG_PTRRADIO_CONFIG_ADDRESS[31:0]
Reset value00000000000000000000000000000000
0x0020SEMA_IRQ_ENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCKLOCK
Reset value00000000000000000000000000000000
0x0024SEMA_IRQ_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCKLOCK
Reset value00000000000000000000000000000000
0x0028BLE_IRQ_ENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_CMD_ENDPORT_CMD_STARTPORT_RELEASE
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x002CBLE_IRQ_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTRes.PORT_RELEASEPORT_GRANT
Reset value00000000000000000000000000000000
0x0030 to 0x005C Reserved
0x0060VP_CPU_CMD_BUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COMMAND_REQCOMMAND[2:0]
Reset value00000000000000000000000000000000
0x0064VP_CPU_SEMA_BUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TAKE_REQTAKE_Prio[2:0]
Reset value00000000000000000000000000000000
0x0068VP_CPU_IRQ_ENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_CMD_ENDPORT_CMD_STARTRes.PORT_RELEASEPORT_GRANT
Reset value00000000000000000000000000000000
0x006CVP_CPU_IRQ_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMD_ENDCMD_STARTPORT_PREEMPTPORT_RELEASEPORT_GRANT
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
Radio registers
0x0000AA0_DIG_USRResResResResResResResResResResResResResResResResResResResResResResResResAA_7_0[7:0]
Reset value00000000000000000000000011010110
0x0004AA1_DIG_USRResResResResResResResResResResResResResResResResResResResResResResResResAA_15_8[7:0]
Reset value00000000000000000000000010111110
0x0008AA2_DIG_USRResResResResResResResResResResResResResResResResResResResResResResResResAA_23_16[7:0]
Reset value00000000000000000000000010001001
0x000CAA3_DIG_USRResResResResResResResResResResResResResResResResResResResResResResResResAA_31_24[7:0]
Reset value00000000000000000000000010001110
0x0010DEM_MOD_DIG_USRResResResResResResResResResResResResResResResResResResResResResResResResCHANNEL_NUM[6:0]Res
Reset value000000000000000000000000000100110
0x0014RADIO_FSM_USRResResResResResResResResResResResResResResResResResResResResResResResResPA_POWER[4:0]EN_CALIB_SYNTHEN_CALIB_CBPRes
Reset value000000000000000000000000000000100
0x0018PHYCTRL_DIG_USRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRXTPHY[2:0]
Reset value00000000000000000000000000000000
0x001C to 0x0044 Reserved
0x0048AFC1_DIG_ENGResResResResResResResResResResResResResResResResResResResResResResResResAFC_DELAY_BEFORE[3:0]AFC_DELAY_AFTER[3:0]
Reset value000000000000000000000000010000100
0x004C to 0x0050 Reserved
0x0054CR0_DIG_ENGResResResResResResResResResResResResResResResResResResResResResResResResCR_GAIN_BEFORE[3:0]CR_GAIN_AFTER[3:0]
Reset value000000000000000000000000010000100
0x0058 to 0x0064 Reserved

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0068CR0_LRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CR_LR_GAIN_BEFORE[3:0]CR_LR_GAIN_AFTER[3:0]0
Reset value00000000000000000000000001100110
0x006CVIT_CONF_DIG_EN
G
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SPARE[5:0]Res.Res.VIT_EN0
Reset value00000000000000000000000000000000
0x0070 to 0x0080 Reserved
0x0084LR_PD_THR_DIG_E
NG
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LR_PD_THR[7:0]0101
Reset value00000000000000000000000010101011
0x0088LR_RSSI_THR_DIG_
ENG
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LR_RSSI_THR[7:0]0001
Reset value00000000000000000000000000010011
0x008CLR_RSSI_THR_DIG_
ENG
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LR_AAC_THR[7:0]0000
Reset value00000000000000000000000000111000
0x0090 to 0x00A4 Reserved
0x00A8SYNTHCAL0_DIG_E
NG
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SYNTH_IF_FREQ_CAL[1:0]Res.Res.Res.SYNTHCAL_DEBUG_BUS_SEL[3:0]0
Reset value00000000000000000000000000000000
0x00AC to 0x00EC Reserved
0x00F0DTB5_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PORT_SELECTED_0PORT_SELECTED_ENINITIALIZERX_ACTIVETX_ACTIVERXTX_START_SEL0
Reset value00000000000000000000000000000000
0x00F4 to 0x0044 Reserved

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0148RXADC_ANA_USRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RXADC_DELAYTRIM_Q_TST_SELRXADC_DELAYTRIM_I_TST_SELRFD_RXADC_DELAYTRIM_Q[2:0]
Reset value00000000000000000000000000111011
0x014C to 0x0150 Reserved
0x0154LDO_ANA_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFD_RF_REG_BYPASS
Reset value00000000000000000000000000000000
0x0158 to 0x0170 Reserved
0x0174LDO_ANA_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFD_CBIAS_IPTAT_TRIM[3:0]
Reset value00000000000000000000000010001000
0x0178CBIAS1_ANA_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CBIAS0_TRIM_TST_SERes.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000000000000000
0x017C Reserved
0x0180SYNTHCAL0_DIG_OUTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VCO_CALAMP_OUT_6_0[6:0]Res.
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0184SYNTHCAL1_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResVCO_CALAMP_OUT_10_7[3:0]
Reset value00000000000000000000000000000001
0x0188SYNTHCAL2_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResVCO_CALFREQ_OUT[6:0]
Reset value000000000000000000000000000000100
0x018CSYNTHCAL3_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResSYNTHCAL_DEBUG_BUS[7:0]
Reset value000000000000000000000000000000000
0x0190SYNTHCAL4_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResMOD_REF_DAC_WORD_OUT[5:0]
Reset value000000000000000000000000000011000
0x0194SYNTHCAL5_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResCBP_CALIB_WORD[3:0]
Reset value000000000000000000000000000000111
0x0198FSM_STATUS_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResSTATUS[4:0]
Reset value000000000000000000000000000000000
0x019C to 0x01A0 Reserved
0x01A4RSSI0_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRSSI_MEAS_OUT_7_0[7:0]
Reset value000000000000000000000000000000100
0x01A8RSSI1_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRSSI_MEAS_OUT_15_8[7:0]
Reset value000000000000000000000000000000100
0x01ACAGC_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResAGC_ATT_OUT[3:0]
Reset value000000000000000000000000000000000
0x01B0DEMOD_DIG_OUTResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRX_ENDPD_FOUNDAAC_FOUNDCI_FIELD[1:0]
Reset value000000000000000000000000000000000
0x01B4 to 0x01B8 Reserved

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x01BCAGC2_ANA_TSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_ANTENNAE_USR_TRIM[2:0]AGC2_ANA_TST_SEL0
Reset value00000000000000000000000000000000
0x01C0AGC0_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_ENABLEAGC_THR_HIGH[5:0]00
Reset value00000000000000000000000010001010
0x01C4AGC1_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AGC_LOCK_SYNCAGC_AUTOLOCKAGC_THR_LOW_6[5:0]00
Reset value0000000000000000000000010000100
0x01C8 to 0x01E0 Reserved
0x01E8AGC10_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_0[1:0]ATT_LNA_0ATT_IF_0[2:0]0000
Reset value00000000000000000000000000000000
0x01ECAGC11_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_1[1:0]ATT_LNA_1ATT_IF_1[2:0]0000
Reset value00000000000000000000000000000000
0x01F0AGC12_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_2[1:0]ATT_LNA_2ATT_IF_2[2:0]0000
Reset value00000000000000000000000001000000
0x01F4AGC13_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ATT_ANT_3[1:0]ATT_LNA_3ATT_IF_3[2:0]0000
Reset value00000000000000000000000001100000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x01F8AGC14_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.1ATT_ANT_4[1:0]ATT_LNA_4ATT_IF_4[2:0]
Reset value00000000000000000000000000111000
0x01FCAGC15_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.1ATT_ANT_5[1:0]ATT_LNA_5ATT_IF_5[2:0]
Reset value00000000000000000000000000111001
0x0200AGC16_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.1ATT_ANT_6[1:0]ATT_LNA_6ATT_IF_6[2:0]
Reset value00000000000000000000000000111010
0x0204AGC17_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.1ATT_ANT_7[1:0]ATT_LNA_7ATT_IF_7[2:0]
Reset value00000000000000000000000000111011
0x0208AGC18_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.1ATT_ANT_8[1:0]ATT_LNA_8ATT_IF_8[2:0]
Reset value00000000000000000000000000111100
0x020CAGC19_DIG_ENGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.1ATT_ANT_9[1:0]ATT_LNA_9ATT_IF_9[2:0]
Reset value00000000000000000000000000111101
0x0210 to 0x0220 Reserved
0x0224RXADC_HW_TRIM_OUTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_RXADC_DELAYTRIM_Q[2:0]
Reset value00000000000000000000000000011011

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0228CBIAS0_HW_TRIM_OUTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_CBIAS_IPTAT_TRIM[3:0]HW_CBIAS_IBIAS_TRIM[3:0]
Reset value0000000000000000000000010001000
0x022C Reserved
0x0230AGC_HW_TRIM_OUTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HW_AGC_ANTENNAE_TRIM[2:0]Res.
Reset value0000000000000000000000000000110
0x0234 to 0x0238 Reserved
0x0240ANTSW0_DIG_USRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_TIME_TO_SAMPLE[6:0]Res.
Reset value0000000000000000000000000011100
0x0244ANTSW1_DIG_USRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RX_TIME_TO_SWITCH[5:0]Res.
Reset value0000000000000000000000000010111
0x0248ANTSW2_DIG_USRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TX_TIME_TO_SWITCH[6:0]Res.
Reset value0000000000000000000000000101001
0x024CANTSW3_DIG_USRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TX_TIME_TO_SWITCH_2M[6:0]Res.
Reset value0000000000000000000000000010011

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
Radio controller registers
0x0000RADIO_CONTROL_IDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRODUCT[3:0]VERSION[3:0]REVISION[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000011000000000000
0x0004CLK32COUNT_REGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SLOW_COUNT[8:0]
Reset value00000000000000000000000000001011
0x0008CLK32PERIOD_REGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SLOW_PERIOD[18:0]
Reset value00000000000000000000000000000000
0x000CCLK32FREQUENCY_REGRes.Res.Res.Res.Res.SLOW_FREQUENCY[26:0]
Reset value00000000000000000000000000000000
0x0010RADIO_CONTROL_IRQ_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RADIO_FSM_IRQ[5:0]Res.Res.Res.Res.Res.Res.Res.Res.SLOW_CLK_IRQ
Reset value00000000000000000000000000000000
0x0014RADIO_CONTROL_IRQ_ENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RADIO_FSM_IRQ_MASK[5:0]Res.Res.Res.Res.Res.Res.Res.Res.SLOW_CLK_IRQ_MASK
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
GlobalStatMach registers
0x0000WORD0RADIOCONFIGPTR[31:0]
Reset value00000000000000000000000000000000
0x0004WORD1TIMER2INITDELAYNOCAL
[7:0]
TIMER12INITDELAYCAL[7:
0]
WAKEUPINITDELAY[7:0]ACTIVECURSTMACHNUM[6:0]
Reset value00000000000000000000000000000000
0x0008WORD2RECEIVENOCALDELAYC
HK[7:0]
RECEIVECALDELAYCHK[
7:0]
TRANSMITNOCALDELAY
CHK[7:0]
TRANSMITCALDELAYCHK
[7:0]
Reset value00000000000000000000000000000000
0x000CWORD3TIMECAPTURETIMECAPTURESELTXDELAYEND[5:0]TXDELAYSTART[7:0]TXDATAREADYCHECK[7:0
]
CONFIGENDDURATION[7:
0]
Reset value00000000000000000000000000000000
0x0010WORD4INTCONFIGERRORINTACTIVE2ERRINTTXRXSKIPINTSEQDONERes.INTSEMATIMEOUTERRORINTRCVLENGTHERRORRes.INTNOACTIVELERRORINTTXDATAREADYERRORINTALLTABLEREADYERRORINTADDPOINTERRORRes.Res.Res.Res.INTCONFIGERRORINTACTIVE2ERRINTTXRXSKIPINTSEQDONERes.INTSEMATIMEOUTERRORINTRCVLENGTHERRORRes.INTNOACTIVELERRORINTTXDATAREADYERRORINTALLTABLEREADYERRORINTADDPOINTERRORRes.Res.Res.Res.
Reset value00000000000000000000000000000000
0x0014WORD5INTCONFIGERRORINTACTIVE2ERRINTTXRXSKIPINTSEQDONERes.INTSEMATIMEOUTERRORINTRCVLENGTHERRORRes.INTNOACTIVELERRORINTTXDATAREADYERRORINTALLTABLEREADYERRORINTADDPOINTERRORRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CHKFLAGAUTOCLEARENARes.AUTOTXRXSKIPEN
Reset value00000000000000000000000000000000
0x0018WORD6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEFAULTANTENNAID[
6:0]
Res.Res.
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
StatMach registers
0x0000WORD0ResRXPHY[2:0]CTEDISABLETXPHY[2:0]RCVENCTXENCENCRYPTONBUFFER_FULLRes.Res.PHYSCHANPDUTYPE[1:0]NESNSNREMAP_CHAN[5:0]TXMODERADIOCOMLISTENAUCHAN[5:0]
Reset value00000000000000000000000000000000
0x0004WORD1TXPOINT[31:0]
Reset value00000000000000000000000000000011
0x0008WORD2RCVPOINT[31:0]
Reset value00000000000000000000000000000000
0x000CWORD3RCVPOINTPREV[31:0]
Reset value00000000000000000000000000000000
0x0010WORD41TXPOINTNEXT[31:0]
Reset value00000000000000000000000000000000
0x0014WORD5PCNTTX_31_0[31:0]
Reset value00000000000000000000000000000000
0x0018WORD6PCNTRCV_23_0[23:0]PCNTTX_39_32[7:0]
Reset value00000000000000000000000000000000
0x001CWORD7RXDEBUGCRCINTRXOVERFLOWERRORINTENCERRORINTTXERROR[4:0]RXMIODBGMSBFIRSTDISABLECRCENAPREAMBLEREPPREAMBLE REP[3:0]PCNTRCV_39_24[15:0]
Reset value00000000000000000000000000000000
0x0020WORD8RXDEBUGCRCINTRXOVERFLOWERRORINTENCERRORINTTXERROR[4:0]RXMIODBGMSBFIRSTDISABLECRCENAPREAMBLEREPPREAMBLE REP[3:0]PCNTRCV_39_24[15:0]
Reset value00000000000000000000000000000000
0x0024WORD9ACCADDR[31:0]
Reset value00000000000000000000000000000000
0x0028WORDAMAXRECEIVEDLENGTH[7:0]CRCINIT[23:16]CRCINIT[15:0]
Reset value00000000000000000000000000000000
0x002CWORDBUSEDCHANNELFLAGS_15_0[15:0]ResResHOPINCR[5:0]TXHPResResPAPOWER[4:0]
Reset value00000000000000000000000000000000
0x0030WORDCResResResResResResResResResResUSEDCHANNELFLAGS_36_16[21:16]USEDCHANNELFLAGS_36_16[15:0]
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0034WORDDResResResResResResResResResResResResResResResResEVENTCOUNTER[15:0]
Reset value00000000000000000000000000000000
0x0038WORDEENCRYPTIV_31_0[31:0]
Reset value00000000000000000000000000000000
0x003CWORDFENCRYPTIV_63_32[31:0]
Reset value00000000000000000000000000000000
0x0040WORD10ENCRYPTK_31_0[31:0]
Reset value00000000000000000000000000000000
0x0044WORD11ENCRYPTK_63_32[31:0]
Reset value00000000000000000000000000000000
0x0048WORD12ENCRYPTK_95_64[31:0]
Reset value00000000000000000000000000000000
0x004CWORD13ENCRYPTK_127_96[31:0]
Reset value00000000000000000000000000000000
0x0050WORD14ResResResResResResResResANTENNAPATTERNLENGTH[7:0]ResMAXIMUMIQSAMPLESNUMBER[6:0]ResCTETIME[4:0]CTESLOTWIDTHAOD_NAOA
Reset value00000000000000000000000000000000
0x0054WORD15IQSAMPLESPTR[31:0]
Reset value00000000000000000000000000000000
0x0058WORD16ANTENNAPATTERNPTR[31:0]
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
TxRxPack registers
0x0000WORD0NEXTPTR[31:0]
Reset value0000000000000000000000000000000
0x0004WORD1Res.Res.SUBEVENTCHANALGO2DISABLEWHITENINGRes.TXDATAREADYALLTABLEREADYNEXTTXMODEINCCHANSN_ENADVERTISECRCINITSELCTEANDSAMPLINGENABLEKEEPSEMAREQCHANALGO2SELCALREQRes.Res.SUBEVENTCHANALGO2DISABLEWHITENINGRes.TXDATAREADYALLTABLEREADYNEXTTXMODEINCCHANSN_ENADVERTISECRCINITSELCTEANDSAMPLINGENABLEKEEPSEMAREQCHANALGO2SELCALREQ
Reset value00000000000000000000000000000000
0x0008WORD2DATAPTR[31:0]
Reset value00000000000000000000000000000000
0x000CWORD3INTRCVOKINTRCVRCERRINTTIMECAPTUREINTRCVCMDINTRCVNOMDINTRCVTIMEOUTINTDONEINTTXOKTRIGDONETRIGRCVRes.TIMER2ENTIMER2[19:16]TIMER2[15:0]
Reset value00000000000000000000000000000000
Table 147. Radio IP register map and reset values (continued)
OffsetRegister313029282726252423222120191817161514131211109876543210
BLE IP registers
0x0004INTERRUPT1REGRCVOKRCVCRCERRTIMECAPTURETRIGRCVCMDRCVNOMDRCVTIMEOUTDONETXOKCONFIGERRORACTIVE2ERRORTXRXSKIPRes.SEMATIMEOUTERRORRCVLENGTHERRORRes.NOACTIVELERRORTXDATAREADYERRORALLTABLEREADYERRORENCERRORTXERROR_4TXERROR_3TXERROR_2TXERROR_1TXERROR_0SEQDONERes.RXOVERFLOWERRORADDPOINTERRORRes.Res.Res.Res.
Reset value00000000000000000000000000000000
0x0008INTERRUPT2REGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AESLEPRIVINTAESMANENCINT
Reset value00000000000000000000000000000000
0x000CTIMEOUTDESTREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DESTINATION[1:0]
Reset value00000000000000000000000000000000
0x0010TIMEOUTREGTIMEOUT[31:0]
Reset value00000000000000000000000000000000
0x0014TIMERCAPTUREREEGTIMERCAPTURE[31:0]
Reset value00000000000000000000000000000000
0x0018CMDREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLEARSEMAREQRes.Res.TXRXSKIP
Reset value00000000000000000000000000000000
0x001CSTATUSREGRCVOKRCVCRCERRTIMECAPTURETRIGRCVCMDRCVNOMDRCVTIMEOUTDONETXOKCONFIGERRORACTIVE2ERRORTXRXSKIPRes.SEMATIMEOUTERRORRCVLENGTHERRORRes.NOACTIVELERRORTXDATAREADYERRORALLTABLEREADYERRORENCERRORTXERROR_4TXERROR_3TXERROR_2TXERROR_1TXERROR_0SEQDONEPREVTRANSMITRXOVERFLOWERRORADDPOINTERRORNOTSUPPORTED_FUNCTIONRes.Res.AESONFLYBUSY
Reset value00000000000000000000000000000000
Table 147. Radio IP register map and reset values (continued)
OffsetRegister313029282726252423222120191817161514131211109876543210
0x0020INTERRUPT1ENABLEREGRCVOKRCVCRCERRTIMECAPTURETRIGRCVCMDRCVNOMDRCVTIMEOUTDONETXOKCONFIGERRORACTIVE2ERRORTXRXSKIPRes.SEMATIMEOUTERRORRCVLENGTHERRORRes.NOACTIVELERRORTXDATAREADYERRORALLTABLEREADYERRORENCERRORTXERROR_4TXERROR_3TXERROR_2TXERROR_1TXERROR_0SEQDONERes.RXOVERFLOWERRORADDPOINTERERRORRes.Res.Res.Res.
Reset value00000000000000000000000000000000
0x0024INTERRUPT1LATENCYREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INTERRUPT1LATENCY[7:0]
Reset value00000000000000000000000000000000
0x0028MANAESKEY0REGMANAESKEY_31_0[31:0]
Reset value00000000000000000000000000000000
0x002CMANAESKEY1REGMANAESKEY_63_32[31:0]
Reset value00000000000000000000000000000000
0x0030MANAESKEY2REGMANAESKEY_95_64[31:0]
Reset value00000000000000000000000000000000
0x0034MANAESKEY3REGMANAESKEY_127_96[31:16]
Reset value00000000000000000000000000000000
0x0038MANAESCLEARTEXT0REGAES_CLEAR_31_0[31:0]
Reset value00000000000000000000000000000000
0x003CMANAESKEY1REGAES_CLEAR_63_32[32:0]
Reset value00000000000000000000000000000000
0x0040MANAESCLEARTEXT2REGAES_CLEAR_95_64[31:0]
Reset value00000000000000000000000000000000
0x0044MANAESCLEARTEXT3REGAES_CLEAR_127_96[31:0]
Reset value00000000000000000000000000000000
0x0048MANAESCIPHERTEXT0REGAES_CIPHER_31_0[31:0]
Reset value00000000000000000000000000000000
0x004CMANAESCIPHERTEXT1REGAES_CIPHER_63_32[31:0]
Reset value00000000000000000000000000000000
0x0050MANAESCIPHERTEXT2REGAES_CIPHER_95_64[31:0]
Reset value00000000000000000000000000000000
0x0054MANAESCIPHERTEXT3REGAES_CIPHER_127_96[31:0]
Reset value00000000000000000000000000000000
0x0058MANAESCMDREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.INTENASTART
Reset value00000000000000000000000000000000
0x005CMANAESSTATREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BUS
Reset value00000000000000000000000000000000
0x0060AESLEPRIVPOINTERREGRes.Res.Res.Res.Res.Res.Res.Res.POINTER[23:0]
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0064AESLEPRIVHASHREGRes.Res.Res.Res.Res.Res.Res.Res.HASH[23:0]
Reset value00000000000000000000000000000000
0x0068AESLEPRIVPRANDREGRes.Res.Res.Res.Res.Res.Res.Res.PRAND[23:0]
Reset value00000000000000000000000000000000
0x006CAESLEPRIVCMDREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NBKEYS[7:0]INTENASTART
Reset value00000000000000000000000000000000
0x0070AESLEPRIVSTATREGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.KEYFNDINDEX[7:0]KEYFNDBUSY
Reset value00000000000000000000000000000000
0x0074 to 0x0078 Reserved
0x007CSTATUS2REGANTENNA_SWITCHING_PATTERN_ADDRESS_ERRORANTENNA_SWITCHING_PATTERN_ACCESSERRORIQSAMPLES_MISSING_ERRORRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IQSAMPLES_NUMBER
[6:0]
IQSAMPLES_READY
Reset value00000000000000000000000000000000
ST logo
ST logo

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
Wakeup block registers
0x0000WAKEUP_RESERVE_DResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value00000000000000000000000000000000
0x0008WAKEUP_OFFSETResResResResResResResResResResResResResResResResResResResResResResResResWAKEUP_OFFSET[7:0]ResResRes
Reset value00000000000000000000000000000000
0x0010ABSOLUTE_TIMEABSOLUTE_TIME[31:0]
Reset value00000000000000000000000000000000
0x0014MINIMUM_PERIOD_LENGTHResResResResResResResResResResResResResResResResResResResLENGTH[9:0]ResResResRes
Reset value00000000000000000000000000000000
0x0018AVERAGE_PERIOD_LENGTHAVERAGE_COUNT[7:0]ResLENGTH_INT[9:0]LENGTH_FR_ACT[3:0]ResResResResLENGTH_INT[9:0]Res
Reset value00000000000000000000000000000000
0x001CMAXIMUM_PERIOD_LENGTHResResResResResResResResResResResResResResResResResResResLENGTH[9:0]ResResResRes
Reset value00000000000000000000000000000000
0x0020STATISTICS_RESTARTResResResResResResResResResResResResResResResResResResResResResResResResResResResResCLR_AVRCLR_MIN_MAXResRes
Reset value00000000000000000000000000000000
0x0024BLUE_WAKEUP_TIMEWAKEUP_TIME[31:16]
Reset value00000000000000000000000000000000
0x0028BLUE_SLEEP_REQUEST_MODEFORCE_SLEEPINGBLE_WAKEUP_ENSLEEP_ENResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value00000000000000000000000000000100
0x002CCM0_WAKEUP_TIMEWAKEUP_TIME[27:12]ResRes
Reset value00000000000000000000000000000000
0x0030CM0_SLEEP_REQUEST_MODEFORCE_SLEEPINGCPU_WAKEUP_ENResResResResResResResResResResResResResResResResResResResResResResResResResResRes100
Reset value00000000000000000000000000000100
0x0040WAKEUP_BLE_IRQ_ENABLEResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResWAKEUP_IT0
Reset value00000000000000000000000000000000
0x0044WAKEUP_BLE_IRQ_STATUSResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResWAKEUP_IT0
Reset value00000000000000000000000000000000

Table 147. Radio IP register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x0048WAKEUP_CM0_IRQ_ENABLERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_IT
Reset value00000000000000000000000000000000
0x004CWAKEUP_CM0_IRQ_STATUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAKEUP_IT
Reset value00000000000000000000000000000000