Skip to content

Commit 0bdecbc

Browse files
projectgusdpgeorge
authored andcommitted
lora: Note known issue with STM32WL5 HP antenna.
For unknown reason, power output in this configuration is lower than it should be (including when compared to the STM32Cube C libraries running on the same board. Suspect either the Nucleo board antenna switch or the power amplifier registers are being set wrong, but the actual root cause remains elusive... Signed-off-by: Angus Gratton <[email protected]>
1 parent ed688cf commit 0bdecbc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

micropython/lora/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,11 @@ datasheet Table 32 "Frequency Bands" for more details.
444444
| `"PA_BOOST"` | RFO_HP pin (high power) |
445445
| Any other value | RFO_LP pin (low power) |
446446

447+
**NOTE**: Currently the `PA_BOOST` HP antenna output is lower than it should be
448+
on this board, due to an unknown driver bug.
447449

448-
**Important**: If setting `tx_ant` value, also set `output_power` at the same
449-
time or again before transmitting.
450+
If setting `tx_ant` value, also set `output_power` at the same time or again
451+
before transmitting.
450452

451453
#### `output_power` - Transmit output power level
452454
Type: `int`

micropython/lora/lora-stm32wl5/lora/stm32wl5.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def _get_pa_tx_params(self, output_power, tx_ant):
101101
# power).
102102

103103
if tx_ant is not None:
104+
# Note: currently HP antenna power output is less than it should be,
105+
# due to some (unknown) bug.
104106
self._hp = tx_ant == "PA_BOOST"
105107

106108
# Update the OCP register to match the maximum power level

0 commit comments

Comments
 (0)