Add initial support for M5Stack Cardputer ADV with Cap LoRa-1262#2390
Add initial support for M5Stack Cardputer ADV with Cap LoRa-1262#2390kucharz96 wants to merge 40 commits intomeshcore-dev:mainfrom
Conversation
WIP: Restore Cardputer ADV port on ui-new base
Cardputer UI new port
Cardputer rf diagnostics
Cardputer rf diagnostics
Update summaryI have pushed an additional Cardputer ADV-focused update on top of the initial port. Main changes included in this update
GoalThe goal of these changes is to improve practical handheld usability on the M5Stack Cardputer ADV with LoRa Cap, especially around diagnostics, menu control, receive stability, and recovery after TX/RX state transitions, while keeping the implementation isolated to the Cardputer target. This is intentionally not a protocol-level change. It should remain compatible with existing MeshCore nodes and repeaters using the same Narrow preset. |
Summary
This pull request adds initial support for M5Stack Cardputer ADV used with M5Stack Cap LoRa-1262.
The goal of this PR is to upstream a minimal, reviewable hardware bring-up path for this device combination, without changing MeshCore protocol behavior, routing, BLE logic, or UI behavior.
What this PR changes
This PR introduces two focused hardware-related adjustments for the Cardputer ADV LoRa path:
LoRa cap IO expander / RF path initialization
0x43IO expander setup so that only the required output is enabledSX1262 PA configuration after successful radio initialization
std_init()completes successfullyMotivation
At the time of opening this PR, the official MeshCore tree does not provide dedicated support for M5Stack Cardputer ADV.
During real-device bring-up and testing with Cardputer ADV + Cap LoRa-1262, the radio could initialize and operate, but RF behavior was not as consistent as expected compared with hardware-specific builds tested on the same platform.
The most likely cause appeared to be in the low-level hardware bring-up path for the LoRa cap, especially around expander-based initialization and RF control, rather than in MeshCore application logic.
Scope
This PR is intentionally narrow in scope.
It does not include:
The intent is to keep the first upstream Cardputer ADV submission small and easy to review.
Files changed
variants/m5stack_cardputer/M5CardputerBoard.hvariants/m5stack_cardputer/target.cppHardware used for testing
Notes for review
This should be considered initial support rather than a final, fully validated implementation.
Feedback would be especially appreciated on:
m5stack_cardputervariant path or be split into more explicit ADV-specific handlingClosing
The main purpose of this PR is to start upstream support for M5Stack Cardputer ADV and open the discussion with maintainers using a small, hardware-focused patch set.
Thanks for reviewing.