Commit 5a33bae
Wessel Nieboer
Fix RAK13302 1W FEM control: drive SKY66122-11 CSD/CPS/CTX directly
The RAK13302's SKY66122-11 FEM has three control pins (CSD, CPS, CTX)
that must be actively driven by the MCU. The existing code only managed
CPS via SX126X_POWER_EN and relied on DIO2 for TX/RX switching, but R25
(DIO2→CTX) is NC by default, leaving CSD floating and CTX undriven. This
put the FEM in an undefined state — the PA wouldn't reliably engage
during TX and the 16 dB RX LNA was never active.
Add USE_SKY66122_FEM support (following the existing USE_GC1109_PA
pattern) to explicitly initialize, sleep, and toggle all three FEM pins
for correct TX/RX/shutdown modes.1 parent 58496e5 commit 5a33bae
2 files changed
Lines changed: 43 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
96 | 108 | | |
97 | 109 | | |
98 | 110 | | |
| |||
431 | 443 | | |
432 | 444 | | |
433 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
434 | 453 | | |
435 | 454 | | |
436 | 455 | | |
| |||
489 | 508 | | |
490 | 509 | | |
491 | 510 | | |
492 | | - | |
| 511 | + | |
493 | 512 | | |
494 | 513 | | |
495 | 514 | | |
496 | 515 | | |
497 | 516 | | |
498 | 517 | | |
499 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
500 | 525 | | |
501 | 526 | | |
502 | 527 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
169 | 184 | | |
170 | 185 | | |
171 | 186 | | |
| |||
0 commit comments