From efa8d3833c81a41f5d6d11159b7e1deb893aef77 Mon Sep 17 00:00:00 2001 From: Henry Potgieter Date: Mon, 20 Apr 2026 20:56:57 -0400 Subject: [PATCH] fix(heltec32_v4): set OCP_TUNED to 0x38 per SX1262 datasheet The SX1262 datasheet specifies that SetPaConfig resets OCP to 0x38 (140 mA) for SX1262 devices, vs 0x18/60 mA for SX1261. The Heltec V4 external PA draws from Vext, not the SX1262 supply rail, so the brownout risk that prompted lowering OCP on other boards (see eab0284) does not apply here. Hardware-validated: 500 packets at 22 dBm, 0 errors, 0 resets, stable at 72 C peak. --- Boards.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Boards.h b/Boards.h index c059cd6..d544dc5 100644 --- a/Boards.h +++ b/Boards.h @@ -403,7 +403,11 @@ #define HAS_LORA_LNA true #define PIN_WAKEUP GPIO_NUM_0 #define WAKEUP_LEVEL 0 - #define OCP_TUNED 0x28 + // SX1262 datasheet specifies OCP resets to 0x38 (140mA) after SetPaConfig + // for SX1262 devices (vs 0x18/60mA for SX1261). The Heltec V4 external PA + // draws from Vext, not the SX1262 supply rail, so the brownout risk that + // prompted lowering OCP on other boards does not apply here. + #define OCP_TUNED 0x38 #define Vext GPIO_NUM_36 #define LORA_PA_MODEL LORA_PA_UNKNOWN;