meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.48k stars 862 forks source link

[Bug]: (SX1262) SX126x standby failed with error -707 #3520

Closed el-samiyel closed 6 months ago

el-samiyel commented 7 months ago

Category

Hardware Compatibility

Hardware

DIY

Firmware Version

2.2.23

Description

SX126x standby failed with error -707

Can anyone help me to understand why I am getting this?

I am using a E22 SX1262 chip, tried both configurations (ESP32 controls TXEN/RXEN and auto control) but I get the same result.

Relevant log output


ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
E (789) esp_core_dump_flash: No core dumpfound!
E (790) esp_core_dump_flash: No core dump partition found!
[    12][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
@INFO  | ??:??:?? 0 

//\ E S H T /\ S T / C

INFO  | ??:??:?? 0 Booted, wake cause 0 (boot count 1), reset_reason=reset
DEBUG | ??:??:?? 0 Filesystem files (16384/1048576 Bytes):
DEBUG | ??:??:?? 0  /prefs/channels.proto (53 Bytes)
DEBUG | ??:??:?? 0  /prefs/config.proto (91 Bytes)
DEBUG | ??:??:?? 0  /prefs/db.proto (316 Bytes)
DEBUG | ??:??:?? 0  /prefs/module.proto (102 Bytes)
[   217][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
DEBUG | ??:??:?? 0 Using analog input 26 for battery level
INFO  | ??:??:?? 0 ADCmod: ADC characterization based on reference voltage stored in eFuse
INFO  | ??:??:?? 0 Scanning for i2c devices...
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
INFO  | ??:??:?? 0 No I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO  | ??:??:?? 0 Meshtastic hwvendor=255, swver=2.3.4.a4c22321
DEBUG | ??:??:?? 0 Setting random seed 629284560
DEBUG | ??:??:?? 0 Total heap: 198696
DEBUG | ??:??:?? 0 Free heap: 164592
DEBUG | ??:??:?? 0 Total PSRAM: 0
DEBUG | ??:??:?? 0 Free PSRAM: 0
DEBUG | ??:??:?? 0 NVS: UsedEntries 90, FreeEntries 540, AllEntries 630, NameSpaces 3
DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 0 Number of Device Reboots: 51
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x105 (ESP_ERR_NOT_FOUND) at 0x40096b2f
file: "src/platform/esp32/BleOta.cpp" line 16
func: static const esp_partition_t* BleOta::findEspOtaAppPartition()
expression: esp_ota_get_partition_description(part, &app_desc)
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x102 (ESP_ERR_INVALID_ARG) at 0x40096b2f
file: "src/platform/esp32/BleOta.cpp" line 30
func: static String BleOta::getOtaAppVersion()
expression: esp_ota_get_partition_description(part, &app_desc)
DEBUG | ??:??:?? 0 No OTA firmware available
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 0 Loading /prefs/config.proto
INFO  | ??:??:?? 0 Loaded saved config version 22
INFO  | ??:??:?? 0 Loading /prefs/module.proto
INFO  | ??:??:?? 0 Loaded saved moduleConfig version 22
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
[   586][E][vfs_api.cpp:105] open(): /littlefs/oem/oem.proto does not exist, no permits for creation
INFO  | ??:??:?? 0 No /oem/oem.proto preferences found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0xab20357c 
DEBUG | ??:??:?? 0 Number of Device Reboots: 51
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 3, using EU_868
INFO  | ??:??:?? 0 Saving /prefs/db.proto
DEBUG | ??:??:?? 0 SPI.begin(SCK=18, MISO=19, MOSI=23, NSS=5)
DEBUG | ??:??:?? 0 Read RTC time as 0
DEBUG | ??:??:?? 0 NeighborInfoModule is disabled
INFO  | ??:??:?? 0 External Notification Module Disabled
DEBUG | ??:??:?? 0 SX126xInterface(cs=5, irq=32, rst=27, busy=4)
DEBUG | ??:??:?? 0 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V
INFO  | ??:??:?? 0 Starting meshradio init...
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 0 Radio freq=869.525, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 0 Set radio: region=EU_868, name=LongFast, config=0, ch=0, power=27
INFO  | ??:??:?? 0 Radio myRegion->freqStart -> myRegion->freqEnd: 869.400024 -> 869.650024 (0.250000 mhz)
INFO  | ??:??:?? 0 Radio myRegion->numChannels: 1 x 250.000kHz
INFO  | ??:??:?? 0 Radio channel_num: 1
INFO  | ??:??:?? 0 Radio frequency: 869.525024
INFO  | ??:??:?? 0 Slot time: 42 msec
INFO  | ??:??:?? 0 Set radio: final power level=22
INFO  | ??:??:?? 1 SX126x init result -707
INFO  | ??:??:?? 1 Frequency set to 869.525024
INFO  | ??:??:?? 1 Bandwidth set to 250.000000
INFO  | ??:??:?? 1 Power output set to 22
DEBUG | ??:??:?? 1 Current limit set to 140.000000
DEBUG | ??:??:?? 1 Current limit set result 0
DEBUG | ??:??:?? 1 Setting DIO2 as RF switch
DEBUG | ??:??:?? 1 SX126X_TXEN not defined, defaulting to RADIOLIB_NC
DEBUG | ??:??:?? 1 Using MCU pin 33 as RXEN and pin -1 as TXEN to control RF switching
INFO  | ??:??:?? 1 Set RX gain to boosted mode; result: 0
E (1044) gpio: gpio_isr_handler_remove(480): GPIO isr service is not installed, call gpio_install_isr_service() first
INFO  | ??:??:?? 1 SX1262 Radio init succeeded, using SX1262 radio
INFO  | ??:??:?? 1 Not using WIFI
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
DEBUG | ??:??:?? 1 LoRA bitrate = 118.50/ sec
INFO  | ??:??:?? 1 PowerFSM init, USB power=1
DEBUG | ??:??:?? 1 Enter state: BOOT
[  1089][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
DEBUG | ??:??:?? 1 [Power] Battery: usbPower=0, isCharging=0, batMv=3100, batPct=0
INFO  | ??:??:?? 1 [RangeTestModule] Range Test Module - Disabled
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Initialise the NimBLE bluetooth module
DEBUG | ??:??:?? 4 [PowerFSM] Enter state: ON
INFO  | ??:??:?? 12 BLE authentication complete
INFO  | ??:??:?? 14 From Radio onread
INFO  | ??:??:?? 14 To Radio onwrite
INFO  | ??:??:?? 14 Client wants config, nonce=119
INFO  | ??:??:?? 14 Starting API client config
INFO  | ??:??:?? 14 From Radio onread
INFO  | ??:??:?? 14 getFromRadio=STATE_SEND_MY_INFO
DEBUG | ??:??:?? 14 encoding toPhone packet to phone variant=3, 14 bytes
INFO  | ??:??:?? 14 From Radio onread
INFO  | ??:??:?? 14 getFromRadio=STATE_SEND_METADATA
DEBUG | ??:??:?? 14 encoding toPhone packet to phone variant=13, 32 bytes
INFO  | ??:??:?? 14 From Radio onread
INFO  | ??:??:?? 14 getFromRadio=STATE_SEND_NODEINFO
INFO  | ??:??:?? 14 nodeinfo: num=0xab20357c, lastseen=0, id=!ab20357c, name=Meshtastic 357c
DEBUG | ??:??:?? 14 encoding toPhone packet to phone variant=4, 57 bytes
INFO  | ??:??:?? 14 From Radio onread
INFO  | ??:??:?? 14 getFromRadio=STATE_SEND_NODEINFO
INFO  | ??:??:?? 14 Done sending nodeinfos
INFO  | ??:??:?? 14 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 14 encoding toPhone packet to phone variant=10, 9 bytes
INFO  | ??:??:?? 14 From Radio onread
INFO  | ??:??:?? 14 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 14 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 11 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 20 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 17 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 20 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 7 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 16 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=5, 12 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=9, 60 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 15 From Radio onread
INFO  | ??:??:?? 15 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 15 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 13 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 7 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 12 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 8 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_COMPLETE_ID
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=7, 2 bytes
INFO  | ??:??:?? 16 From Radio onread
INFO  | ??:??:?? 16 getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 16 encoding toPhone packet to phone variant=11, 6 bytes
INFO  | ??:??:?? 16 From Radio onread
DEBUG | ??:??:?? 21 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 30 [NodeInfoModule] Sending our nodeinfo to mesh (wantReplies=1)
INFO  | ??:??:?? 30 [NodeInfoModule] sending owner !ab20357c/Meshtastic 357c/357c
DEBUG | ??:??:?? 30 [NodeInfoModule] Initial packet id 904860824, numPacketId 4294967295
DEBUG | ??:??:?? 30 [NodeInfoModule] Update DB node 0xab20357c, rx_time=0
DEBUG | ??:??:?? 30 [NodeInfoModule] handleReceived(LOCAL) (id=0x35ef149a fr=0x7c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
DEBUG | ??:??:?? 30 [NodeInfoModule] No modules interested in portnum=4, src=LOCAL
DEBUG | ??:??:?? 30 [NodeInfoModule] localSend to channel 0
DEBUG | ??:??:?? 30 [NodeInfoModule] Add packet record (id=0x35ef149a fr=0x7c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
DEBUG | ??:??:?? 30 [NodeInfoModule] Expanding short PSK #1
DEBUG | ??:??:?? 30 [NodeInfoModule] Using AES128 key!
DEBUG | ??:??:?? 30 [NodeInfoModule] ESP32 crypt fr=ab20357c, num=35ef149a, numBytes=51!
DEBUG | ??:??:?? 30 [NodeInfoModule] enqueuing for send (id=0x35ef149a fr=0x7c to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 30 [NodeInfoModule] txGood=0,rxGood=0,rxBad=0
INFO  | ??:??:?? 30 Telling client we have new packets 2
INFO  | ??:??:?? 30 BLE notify fromNum
DEBUG | ??:??:?? 31 [RadioIf] SX126x standby failed with error -707

assert failed: void SX126xInterface<T>::setStandby() [with T = SX1262] SX126xInterface.cpp:222 (err == RADIOLIB_ERR_NONE)

Backtrace: 0x40084359:0x3ffd75e0 0x40096b51:0x3ffd7600 0x4009cffd:0x3ffd7620 0x400debe2:0x3ffd7750 0x400deb58:0x3ffd7770 0x400e3523:0x3ffd7790 0x400e358c:0x3ffd77b0 0x40212c4a:0x3ffd77d0 0x400d5f41:0x3ffd77f0 0x400d600e:0x3ffd7810 0x400ff9f1:0x3ffd7830 0x400dc17e:0x3ffd7860 0x4012d2fd:0x3ffd7880

ELF file SHA256: 3e2ecaad614eda69

E (33244) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
jp-bennett commented 7 months ago

That error almost always means a problem with the control of the oscillator. Take a look at SX126X_DIO3_TCXO_VOLTAGE in other variant files.

el-samiyel commented 7 months ago

That error almost always means a problem with the control of the oscillator. Take a look at SX126X_DIO3_TCXO_VOLTAGE in other variant files.

Thanks, I've had a look and its set like the others to be honest '#define SX126X_DIO3_TCXO_VOLTAGE 1.8', not entirely sure what this references and these no mention of it in the data sheet. Any other suggestions?

jp-bennett commented 7 months ago

That error almost always means a problem with the control of the oscillator. Take a look at SX126X_DIO3_TCXO_VOLTAGE in other variant files.

Thanks, I've had a look and its set like the others to be honest '#define SX126X_DIO3_TCXO_VOLTAGE 1.8', not entirely sure what this references and these no mention of it in the data sheet. Any other suggestions?

In that case, try leaving that line out. Source: https://jgromes.github.io/RadioLib/group__status__codes.html#gabc695a4fae689e856ae6f618e334066f

el-samiyel commented 7 months ago

That error almost always means a problem with the control of the oscillator. Take a look at SX126X_DIO3_TCXO_VOLTAGE in other variant files.

Thanks, I've had a look and its set like the others to be honest '#define SX126X_DIO3_TCXO_VOLTAGE 1.8', not entirely sure what this references and these no mention of it in the data sheet. Any other suggestions?

In that case, try leaving that line out. Source: https://jgromes.github.io/RadioLib/group__status__codes.html#gabc695a4fae689e856ae6f618e334066f

Just gave that a try, but the result was SX1262 not found. When I changed back to 1.8v it finds the sx1262 again but I get into a reboot loop when trying to set the region.

SX126x init result -707 SX126x standby failed with error -707