T1000-E halts at boot (radio init -707): LR1110 image calibration fails in EU band. Root cause + workaround (relates to #2211)
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- cpp
- Domaine
- embedded-iot, networking
Piste de recherche
Start with src/helpers/radiolib/CustomLR1110.h and its CustomLR1110::begin() and setFrequency() paths, then trace how radio_init() and setup() handle failures. Reproduce image-calibration errors across the listed bands or on affected LR1110 hardware, and check whether the existing radio tests cover calibration fallback. Done means failed image calibration can fall back to another window or continue without calibration, allowing startup, BLE advertising, and mesh operation to proceed.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
On some T1000-E units MeshCore never boots: USB enumerates, but there is no LED, no startup melody and no BLE advertising. The firmware halts in radio_init() with ERROR: radio init failed: -707. The same symptom was reported in #2211, which was closed as a suspected hardware defect.
I traced it to the LR1110 image calibration (CalibImage, 0x0111). On this unit it fails with IMG_CALIB_ERR in some bands only. LR1110::setFrequency() returns RADIOLIB_ERR_SPI_CMD_FAILED (-707), CustomLR1110::begin() passes that on, and setup() calls halt().
Everything else on the radio works: SPI, GetVersion, TCXO setup and the full Calibrate(0x3F) all succeed. With the workaround below, the device boots and runs normally (BLE, mesh).
Environment
- Device: Seeed SenseCAP T1000-E
- LR1110: hw 0x22, device 0x01, firmware 3.7
- Bootloader: UF2 0.9.2-OTAFIX2.2, SoftDevice S140 7.3.0
- Firmware:
t1000e_companion_radio_blev1.18.0 (81dbae5). v1.17.1 behaves the same. - MeshCore flash erase (
FLASH_ERASE_nrf52_softdevice_v7) was done before flashing.
Diagnosis
RadioLib SPI trace (RADIOLIB_DEBUG_SPI). The status byte of the CalibImage response is 0x01 = CMD_FAIL:
CMDW 0111 SI D8 DB <- CalibImage 864..876 MHz
CMDR SO 01 13 00 C0 00 00
ERROR: radio init failed: -707
LR11x0 getVersion hw=0x22 dev=0x01 fw=3.7
LR11x0 getErrors err=0x0010 (IMG_CALIB_ERR)
After the failure I ran clearErrors(); standby(); calibrate(0x3F); and then calibrateImageRejection() on the reference bands. The results were identical over two rounds:
| Band | Result |
|---|---|
| 430–440 MHz | OK |
| 470–510 MHz | -707, err 0x0010 |
| 779–787 MHz | -707, err 0x0010 |
| 863–870 MHz | -707, err 0x0010 |
| 864–876 MHz | -707, err 0x0010 |
| 902–928 MHz | OK |
calibrate(0x3F) itself always returns OK with err 0x0000.
Workaround / proposed fix
Image calibration only improves image rejection. Its failure should not make the radio unusable. I propose falling back to other calibration windows and, if none succeeds, continuing without image calibration instead of halting. This also covers later frequency changes from the app, because setFrequency(float) is virtual:
// src/helpers/radiolib/CustomLR1110.h, inside class CustomLR1110
// Some units fail LR1110 image calibration (IMG_CALIB_ERR -> RADIOLIB_ERR_SPI_CMD_FAILED)
// in certain bands. Image calibration only improves image rejection, so instead of
// failing radio init, try alternative calibration windows and finally skip it.
int16_t setFrequency(float freq) override {
int16_t st = LR1110::setFrequency(freq);
if (st != RADIOLIB_ERR_SPI_CMD_FAILED) return st;
const float bands[] = { 2.0f, 8.0f, 16.0f, 1.0f };
for (float band : bands) {
clearErrors();
st = LR1110::setFrequency(freq, false, band);
if (st == RADIOLIB_ERR_NONE) {
Serial.printf("LR1110: image cal OK with +/-%.0f MHz window\n", band);
return st;
}
}
clearErrors();
Serial.println("LR1110: image calibration failed, continuing without it");
return LR1110::setFrequency(freq, true);
}
With this patch the boot log reaches the end of setup(). BLE advertising works, and the device pairs with the app:
LR1110: image calibration failed, continuing without it
radio_init ok
...
SETUP COMPLETE
On this unit no alternative window succeeded, so it runs without image calibration in the EU band. It may make sense to raise the fallback log line to a visible warning, since a failing image calibration can point to a marginal RF front end.
Tested on one unit only. I have not run range tests yet.
- Langage dominant
- C
- Étoiles
- 3.9k
- Forks
- 1.5k
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 61
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de meshcore-dev/MeshCore
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
meshcore-dev/MeshCore#4015 ·
Les mainteneurs répondent en général sous 2 jours
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new namePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
meshcore-dev/MeshCore#3891 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
meshcore-dev/MeshCore#3826 ·
Les mainteneurs répondent en général sous 2 jours
-
App Preset Australia: NTOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
meshcore-dev/MeshCore#3825 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
meshcore-dev/MeshCore#3781 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de meshcore-dev/MeshCore
Issues similaires
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
389ds/389-ds-base#8251 ·
Les mainteneurs répondent en général sous 1 jour
-
bug data-types
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
ClickHouse/clickhouse-cpp#645 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ROCm/hrx-system#3628 ·
Les mainteneurs répondent en général sous 1 jour