Repository navigation
Fix M5Stack Unit C6L hardware definitions - #3994
Open
cassiofiorin wants to merge 1 commit into
Open
cassiofiorin wants to merge 1 commit into
cassiofiorin wants to merge 1 commit into
Conversation
The C6L variant does not match the hardware it claims to support: the I2C bus is on GPIO 10/8 (not 16/17), the PI4IOE5V6408 expander that drives the antenna switch, the LNA enable and the LoRa reset is never initialised, the TCXO runs at 3.0 V (not 1.8 V), the TX LED is the on-board WS2812C on GPIO2 (P_LORA_TX_LED=15 collides with the OLED reset) and SX126X_RXEN=5 collides with the Grove/GPS TX pin, so the transceiver never sees a valid RF path. - UnitC6LBoard: initialise the expander (P5 = LNA_EN, P6 = ANT_SW, P7 = NRST), read the BOOT button from P0 (active low), drive the buzzer and use the button to switch OTA partitions at boot - move the radio/board definitions into target.cpp, matching the other variants (Board.h only holds the board class) - platformio.ini: correct I2C pins and TCXO voltage, use the NeoPixel as TX indicator, drop SX126X_RXEN, select the USB-CDC console (the USB port is the only accessible console on this unit) and drop the stale src_filter entry Pins and expander register sequence follow the official Meshtastic variant for the same board (m5stack/meshtastic-firmware, variants/esp32c6/m5stack_unitc6l). Builds: M5Stack_Unit_C6L_repeater, _room_server and _companion_radio_usb all succeed. Radio init, RX/TX and the console were verified on hardware.
Author
|
Hi! The workflow runs on this PR are stuck in "action required" because this is I validated locally on the PR head:
Could you approve the workflow runs (or re-run them) when you get a chance? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The C6L variant does not match the hardware it claims to support: the I2C bus is on GPIO 10/8 (not 16/17), the PI4IOE5V6408 expander that drives the antenna switch, the LNA enable and the LoRa reset is never initialised, the TCXO runs at 3.0 V (not 1.8 V), the TX LED is the on-board WS2812C on GPIO2 (P_LORA_TX_LED=15 collides with the OLED reset) and SX126X_RXEN=5 collides with the Grove/GPS TX pin, so the transceiver never sees a valid RF path.
Pins and expander register sequence follow the official Meshtastic variant for the same board (m5stack/meshtastic-firmware, variants/esp32c6/m5stack_unitc6l).
Builds: M5Stack_Unit_C6L_repeater, _room_server and _companion_radio_usb all succeed. Radio init, RX/TX and the console were verified on hardware.