meshtastic / firmware

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

[Bug]: [RadioIf] SX126x standby failed with error -707 #2208

Closed Andrey-VD closed 1 year ago

Andrey-VD commented 1 year ago

Category

Hardware Compatibility

Hardware

DIY

Firmware Version

2.0.12.2400dd4-d

Description

reboot after almost every message sent or received. Module E22400M30S


Connected to radio iceTelemetryModule] txGood=0,rxGood=0,rxBad=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using channel 0 (hash 0x8)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=7416aa1f, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] decoded message (id=0x7416aa1f fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

### DEBUG | ??:??:?? 12 [RadioIf] SX126x standby failed with error -707

assert failed: void SX126xInterface::setStandby() [with T = SX1268] SX126xInterface.cpp:175 (err == RADIOLIB_ERR_NONE)

Backtrace: 0x4008448d:0x3ffd8540 0x400966a1:0x3ffd8560 0x4009c821:0x3ffd8580 0x400e053b:0x3ffd86b0 0x400dfaf8:0x3ffd86d0 0x400e4335:0x3ffd86f0 0x400e4394:0x3ffd8710 0x4020fd42:0x3ffd8730 0x400d5685:0x3ffd8750 0x400d573a:0x3ffd8770 0x400fb2fd:0x3ffd8790 0x400de3cd:0x3ffd87c0 0x4012f329:0x3ffd87e0

ELF file SHA256: a3d62f1cb6fab2f1

E (18444) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0

Relevant log output

Connected to radio
iceTelemetryModule] txGood=0,rxGood=0,rxBad=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using channel 0 (hash 0x8)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=7416aa1f, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] decoded message (id=0x7416aa1f fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [RadioIf] SX126x standby failed with error -707

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

Backtrace: 0x4008448d:0x3ffd8540 0x400966a1:0x3ffd8560 0x4009c821:0x3ffd8580 0x400e053b:0x3ffd86b0 0x400dfaf8:0x3ffd86d0 0x400e4335:0x3ffd86f0 0x400e4394:0x3ffd8710 0x4020fd42:0x3ffd8730 0x400d5685:0x3ffd8750 0x400d573a:0x3ffd8770 0x400fb2fd:0x3ffd8790 0x400de3cd:0x3ffd87c0 0x4012f329:0x3ffd87e0

ELF file SHA256: a3d62f1cb6fab2f1

E (18444) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0

Rebooting...

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:13104

load:0x40080400,len:3036

entry 0x400805e4

E (791) esp_core_dump_flash: No core dump ?f????????found!

E (791) 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 (589824/1048576 Bytes):

DEBUG | ??:??:?? 0  /prefs/channels.proto (53 Bytes)

DEBUG | ??:??:?? 0  /prefs/db.proto (144 Bytes)

DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)

DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (592 Bytes)

DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (600 Bytes)

DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (4300 Bytes)

DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2221 Bytes)

DEBUG | ??:??:?? 0  /static/icon.svg.gz (842 Bytes)

DEBUG | ??:??:?? 0  /static/index-3ad6b632.css.gz (14921 Bytes)

DEBUG | ??:??:?? 0  /static/index-7d0857aa.js.gz (347 Bytes)

DEBUG | ??:??:?? 0  /static/index-84fcdb37.js.gz (507158 Bytes)

DEBUG | ??:??:?? 0  /static/index.html.gz (547 Bytes)

DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)

DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (196 Bytes)

[   399][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000

DEBUG | ??:??:?? 0 Using analog input 35 for battery level

INFO  | ??:??:?? 0 No I2C devices found

INFO  | ??:??:?? 0 Meshtastic hwvendor=39, swver=2.0.12.2400dd4-d

DEBUG | ??:??:?? 0 Setting random seed 688293796

DEBUG | ??:??:?? 0 Total heap: 191304

DEBUG | ??:??:?? 0 Free heap: 157004

DEBUG | ??:??:?? 0 Total PSRAM: 0

DEBUG | ??:??:?? 0 Free PSRAM: 0

DEBUG | ??:??:?? 0 NVS: UsedEntries 70, FreeEntries 560, AllEntries 630, NameSpaces 3

DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage

DEBUG | ??:??:?? 0 Number of Device Reboots: 52

DEBUG | ??:??:?? 0 OTA firmware version 0.2.0.1da2617

INFO  | ??:??:?? 0 Initializing NodeDB

INFO  | ??:??:?? 0 Loading /prefs/db.proto

INFO  | ??:??:?? 0 Loaded saved devicestate version 20

[   501][E][vfs_api.cpp:105] open(): /littlefs/prefs/config.proto does not exist, no permits for creation

INFO  | ??:??:?? 0 No /prefs/config.proto preferences found

INFO  | ??:??:?? 0 Installing default LocalConfig

INFO  | ??:??:?? 0 Setting default channel and radio preferences!

DEBUG | ??:??:?? 0 Expanding short PSK #1

INFO  | ??:??:?? 0 Wanted region 0, using UNSET

[   531][E][vfs_api.cpp:105] open(): /littlefs/prefs/module.proto does not exist, no permits for creation

INFO  | ??:??:?? 0 No /prefs/module.proto preferences found

INFO  | ??:??:?? 0 Installing default ModuleConfig

INFO  | ??:??:?? 0 Loading /prefs/channels.proto

INFO  | ??:??:?? 0 Loaded saved channelFile version 20

[   566][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 Number of Device Reboots: 52

DEBUG | ??:??:?? 0 Expanding short PSK #1

INFO  | ??:??:?? 0 Wanted region 0, using UNSET

DEBUG | ??:??:?? 0 region=0, NODENUM=0x84de2c0c, dbsize=1

INFO  | ??:??:?? 0 Saving /prefs/db.proto

DEBUG | ??:??:?? 0 Read RTC time as 14

DEBUG | ??:??:?? 0 Using MSL altitude model

DEBUG | ??:??:?? 0 WANT GPS=1

WARN  | ??:??:?? 2 Failed to find UBlox & MTK GNSS Module

DEBUG | ??:??:?? 2 GxGSA NOT available

INFO  | ??:??:?? 2 External Notification Module Disabled

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 906.875000

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=20

INFO  | ??:??:?? 2 RF95 init result -2

INFO  | ??:??:?? 2 Frequency set to 906.875000

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 20

DEBUG | ??:??:?? 2 Current limit set to 100.000000

DEBUG | ??:??:?? 2 Current limit set result -16

WARN  | ??:??:?? 2 Failed to find RF95 radio

WARN  | ??:??:?? 2 SX126xInterface(cs=18, irq=33, rst=23, busy=32)

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 906.875000

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=22

INFO  | ??:??:?? 2 SX126x init result -707

INFO  | ??:??:?? 2 Frequency set to 906.875000

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 22

DEBUG | ??:??:?? 2 Current limit set to 140.000000

DEBUG | ??:??:?? 2 Current limit set result -707

WARN  | ??:??:?? 2 Failed to find SX1262 radio

WARN  | ??:??:?? 2 SX126xInterface(cs=18, irq=33, rst=23, busy=32)

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 433.174988

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=22

INFO  | ??:??:?? 2 SX126x init result 0

INFO  | ??:??:?? 2 Frequency set to 433.174988

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 22

DEBUG | ??:??:?? 2 Current limit set to 140.000000

DEBUG | ??:??:?? 2 Current limit set result 0

INFO  | ??:??:?? 2 SX1268 Radio init succeeded, using SX1268 radio

INFO  | ??:??:?? 2 Not using WIFI

DEBUG | ??:??:?? 2 (bw=250, sf=11, cr=4/8) packet symLen=8 ms, payloadSize=237, time 3188 ms

DEBUG | ??:??:?? 2 myNodeInfo.bitrate = 74.341286 bytes / sec

INFO  | ??:??:?? 2 PowerFSM init, USB power=1

INFO  | ??:?H???*?????state: BOOT

[  2660][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz

DEBUG | ??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0

INFO  | ??:??:?? 2 [RangeTestModule] Range Test Module - Disabled

INFO  | ??:??:?? 5 [PowerFSM] Enter state: POWER

INFO  | ??:??:?? 5 [PowerFSM] Initialise the NimBLE bluetooth module

INFO  | ??:??:?? 12 [DeviceTelemetryModule] (Sending): air_util_tx=0.000000, channel_utilization=0.000000, battery_level=0, voltage=0.000000

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Initial packet id 651067251, numPacketId 4294967295

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] updateTelemetry LOCAL

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Node status update: 1 online, 1 total

INFO  | ??:??:?? 12 [DeviceTelemetryModule] Sending packet to mesh

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Update DB node 0x84de2c0c, rx_time=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] handleReceived(LOCAL) (id=0x26ce7f75 fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] No modules interested in portnum=67, src=LOCAL

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Add packet record (id=0x26ce7f75 fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=26ce7f75, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] enqueuing for send (id=0x26ce7f75 fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] txGood=0,rxGood=0,rxBad=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using channel 0 (hash 0x8)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=26ce7f75, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] decoded message (id=0x26ce7f75 fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [RadioIf] SX126x standby failed with error -707

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

Backtrace: 0x4008448d:0x3ffd8540 0x400966a1:0x3ffd8560 0x4009c821:0x3ffd8580 0x400e053b:0x3ffd86b0 0x400dfaf8:0x3ffd86d0 0x400e4335:0x3ffd86f0 0x400e4394:0x3ffd8710 0x4020fd42:0x3ffd8730 0x400d5685:0x3ffd8750 0x400d573a:0x3ffd8770 0x400fb2fd:0x3ffd8790 0x400de3cd:0x3ffd87c0 0x4012f329:0x3ffd87e0

ELF file SHA256: a3d62f1cb6fab2f1

E (18320) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0

Rebooting...

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:13104

load:0x40080400,len:3036

entry 0x400805e4

E (791) esp_core_dump_flash: No core dump ?f????????found!

E (791) 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 (589824/1048576 Bytes):

DEBUG | ??:??:?? 0  /prefs/channels.proto (53 Bytes)

DEBUG | ??:??:?? 0  /prefs/db.proto (144 Bytes)

DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)

DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (592 Bytes)

DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (600 Bytes)

DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (4300 Bytes)

DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2221 Bytes)

DEBUG | ??:??:?? 0  /static/icon.svg.gz (842 Bytes)

DEBUG | ??:??:?? 0  /static/index-3ad6b632.css.gz (14921 Bytes)

DEBUG | ??:??:?? 0  /static/index-7d0857aa.js.gz (347 Bytes)

DEBUG | ??:??:?? 0  /static/index-84fcdb37.js.gz (507158 Bytes)

DEBUG | ??:??:?? 0  /static/index.html.gz (547 Bytes)

DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)

DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (196 Bytes)

[   411][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000

DEBUG | ??:??:?? 0 Using analog input 35 for battery level

INFO  | ??:??:?? 0 No I2C devices found

INFO  | ??:??:?? 0 Meshtastic hwvendor=39, swver=2.0.12.2400dd4-d

DEBUG | ??:??:?? 0 Setting random seed 781742596

DEBUG | ??:??:?? 0 Total heap: 191304

DEBUG | ??:??:?? 0 Free heap: 157004

DEBUG | ??:??:?? 0 Total PSRAM: 0

DEBUG | ??:??:?? 0 Free PSRAM: 0

DEBUG | ??:??:?? 0 NVS: UsedEntries 70, FreeEntries 560, AllEntries 630, NameSpaces 3

DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage

DEBUG | ??:??:?? 0 Number of Device Reboots: 53

DEBUG | ??:??:?? 0 OTA firmware version 0.2.0.1da2617

INFO  | ??:??:?? 0 Initializing NodeDB

INFO  | ??:??:?? 0 Loading /prefs/db.proto

INFO  | ??:??:?? 0 Loaded saved devicestate version 20

[   515][E][vfs_api.cpp:105] open(): /littlefs/prefs/config.proto does not exist, no permits for creation

INFO  | ??:??:?? 0 No /prefs/config.proto preferences found

INFO  | ??:??:?? 0 Installing default LocalConfig

INFO  | ??:??:?? 0 Setting default channel and radio preferences!

DEBUG | ??:??:?? 0 Expanding short PSK #1

INFO  | ??:??:?? 0 Wanted region 0, using UNSET

[   546][E][vfs_api.cpp:105] open(): /littlefs/prefs/module.proto does not exist, no permits for creation

INFO  | ??:??:?? 0 No /prefs/module.proto preferences found

INFO  | ??:??:?? 0 Installing default ModuleConfig

INFO  | ??:??:?? 0 Loading /prefs/channels.proto

INFO  | ??:??:?? 0 Loaded saved channelFile version 20

[   589][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 Number of Device Reboots: 53

DEBUG | ??:??:?? 0 Expanding short PSK #1

INFO  | ??:??:?? 0 Wanted region 0, using UNSET

DEBUG | ??:??:?? 0 region=0, NODENUM=0x84de2c0c, dbsize=1

INFO  | ??:??:?? 0 Saving /prefs/db.proto

DEBUG | ??:??:?? 0 Read RTC time as 27

DEBUG | ??:??:?? 0 Using MSL altitude model

DEBUG | ??:??:?? 0 WANT GPS=1

WARN  | ??:??:?? 2 Failed to find UBlox & MTK GNSS Module

DEBUG | ??:??:?? 2 GxGSA NOT available

INFO  | ??:??:?? 2 External Notification Module Disabled

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 906.875000

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=20

INFO  | ??:??:?? 2 RF95 init result -2

INFO  | ??:??:?? 2 Frequency set to 906.875000

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 20

DEBUG | ??:??:?? 2 Current limit set to 100.000000

DEBUG | ??:??:?? 2 Current limit set result -16

WARN  | ??:??:?? 2 Failed to find RF95 radio

WARN  | ??:??:?? 2 SX126xInterface(cs=18, irq=33, rst=23, busy=32)

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 906.875000

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=22

INFO  | ??:??:?? 2 SX126x init result -707

INFO  | ??:??:?? 2 Frequency set to 906.875000

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 22

DEBUG | ??:??:?? 2 Current limit set to 140.000000

DEBUG | ??:??:?? 2 Current limit set result -707

WARN  | ??:??:?? 2 Failed to find SX1262 radio

WARN  | ??:??:?? 2 SX126xInterface(cs=18, irq=33, rst=23, busy=32)

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 433.174988

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=22

INFO  | ??:??:?? 2 SX126x init result 0

INFO  | ??:??:?? 2 Frequency set to 433.174988

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 22

DEBUG | ??:??:?? 2 Current limit set to 140.000000

DEBUG | ??:??:?? 2 Current limit set result 0

INFO  | ??:??:?? 2 SX1268 Radio init succeeded, using SX1268 radio

INFO  | ??:??:?? 2 Not using WIFI

DEBUG | ??:??:?? 2 (bw=250, sf=11, cr=4/8) packet symLen=8 ms, payloadSize=237, time 3188 ms

DEBUG | ??:??:?? 2 myNodeInfo.bitrate = 74.341286 bytes / sec

INFO  | ??:??:?? 2 PowerFSM init, USB power=1

INFO  | ??:??????*?????state: BOOT

[  2703][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz

DEBUG | ??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0

INFO  | ??:??:?? 2 [RangeTestModule] Range Test Module - Disabled

INFO  | ??:??:?? 5 [PowerFSM] Enter state: POWER

INFO  | ??:??:?? 5 [PowerFSM] Initialise the NimBLE bluetooth module

INFO  | ??:??:?? 12 [DeviceTelemetryModule] (Sending): air_util_tx=0.000000, channel_utilization=0.000000, battery_level=0, voltage=0.000000

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Initial packet id 1521811067, numPacketId 4294967295

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] updateTelemetry LOCAL

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Node status update: 1 online, 1 total

INFO  | ??:??:?? 12 [DeviceTelemetryModule] Sending packet to mesh

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Update DB node 0x84de2c0c, rx_time=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] handleReceived(LOCAL) (id=0x5ab4fe7d fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] No modules interested in portnum=67, src=LOCAL

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Add packet record (id=0x5ab4fe7d fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=5ab4fe7d, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] enqueuing for send (id=0x5ab4fe7d fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] txGood=0,rxGood=0,rxBad=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using channel 0 (hash 0x8)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=5ab4fe7d, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] decoded message (id=0x5ab4fe7d fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [RadioIf] SX126x standby failed with error -707

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

Backtrace: 0x4008448d:0x3ffd8540 0x400966a1:0x3ffd8560 0x4009c821:0x3ffd8580 0x400e053b:0x3ffd86b0 0x400dfaf8:0x3ffd86d0 0x400e4335:0x3ffd86f0 0x400e4394:0x3ffd8710 0x4020fd42:0x3ffd8730 0x400d5685:0x3ffd8750 0x400d573a:0x3ffd8770 0x400fb2fd:0x3ffd8790 0x400de3cd:0x3ffd87c0 0x4012f329:0x3ffd87e0

ELF file SHA256: a3d62f1cb6fab2f1

E (18412) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0

Rebooting...

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:13104

load:0x40080400,len:3036

entry 0x400805e4

E (791) esp_core_dump_flash: No core dump ?f????????found!

E (791) 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 (589824/1048576 Bytes):

DEBUG | ??:??:?? 0  /prefs/channels.proto (53 Bytes)

DEBUG | ??:??:?? 0  /prefs/db.proto (144 Bytes)

DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)

DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (592 Bytes)

DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (600 Bytes)

DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (4300 Bytes)

DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2221 Bytes)

DEBUG | ??:??:?? 0  /static/icon.svg.gz (842 Bytes)

DEBUG | ??:??:?? 0  /static/index-3ad6b632.css.gz (14921 Bytes)

DEBUG | ??:??:?? 0  /static/index-7d0857aa.js.gz (347 Bytes)

DEBUG | ??:??:?? 0  /static/index-84fcdb37.js.gz (507158 Bytes)

DEBUG | ??:??:?? 0  /static/index.html.gz (547 Bytes)

DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)

DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (196 Bytes)

[   429][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000

DEBUG | ??:??:?? 0 Using analog input 35 for battery level

INFO  | ??:??:?? 0 No I2C devices found

INFO  | ??:??:?? 0 Meshtastic hwvendor=39, swver=2.0.12.2400dd4-d

DEBUG | ??:??:?? 0 Setting random seed 3412113819

DEBUG | ??:??:?? 0 Total heap: 191304

DEBUG | ??:??:?? 0 Free heap: 157004

DEBUG | ??:??:?? 0 Total PSRAM: 0

DEBUG | ??:??:?? 0 Free PSRAM: 0

DEBUG | ??:??:?? 0 NVS: UsedEntries 70, FreeEntries 560, AllEntries 630, NameSpaces 3

DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage

DEBUG | ??:??:?? 0 Number of Device Reboots: 54

DEBUG | ??:??:?? 0 OTA firmware version 0.2.0.1da2617

INFO  | ??:??:?? 0 Initializing NodeDB

INFO  | ??:??:?? 0 Loading /prefs/db.proto

INFO  | ??:??:?? 0 Loaded saved devicestate version 20

[   539][E][vfs_api.cpp:105] open(): /littlefs/prefs/config.proto does not exist, no permits for creation

INFO  | ??:??:?? 0 No /prefs/config.proto preferences found

INFO  | ??:??:?? 0 Installing default LocalConfig

INFO  | ??:??:?? 0 Setting default channel and radio preferences!

DEBUG | ??:??:?? 0 Expanding short PSK #1

INFO  | ??:??:?? 0 Wanted region 0, using UNSET

[   571][E][vfs_api.cpp:105] open(): /littlefs/prefs/module.proto does not exist, no permits for creation

INFO  | ??:??:?? 0 No /prefs/module.proto preferences found

INFO  | ??:??:?? 0 Installing default ModuleConfig

INFO  | ??:??:?? 0 Loading /prefs/channels.proto

INFO  | ??:??:?? 0 Loaded saved channelFile version 20

[   628][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 Number of Device Reboots: 54

DEBUG | ??:??:?? 0 Expanding short PSK #1

INFO  | ??:??:?? 0 Wanted region 0, using UNSET

DEBUG | ??:??:?? 0 region=0, NODENUM=0x84de2c0c, dbsize=1

INFO  | ??:??:?? 0 Saving /prefs/db.proto

DEBUG | ??:??:?? 0 Read RTC time as 41

DEBUG | ??:??:?? 0 Using MSL altitude model

DEBUG | ??:??:?? 0 WANT GPS=1

WARN  | ??:??:?? 2 Failed to find UBlox & MTK GNSS Module

DEBUG | ??:??:?? 2 GxGSA NOT available

INFO  | ??:??:?? 2 External Notification Module Disabled

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 906.875000

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=20

INFO  | ??:??:?? 2 RF95 init result -2

INFO  | ??:??:?? 2 Frequency set to 906.875000

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 20

DEBUG | ??:??:?? 2 Current limit set to 100.000000

DEBUG | ??:??:?? 2 Current limit set result -16

WARN  | ??:??:?? 2 Failed to find RF95 radio

WARN  | ??:??:?? 2 SX126xInterface(cs=18, irq=33, rst=23, busy=32)

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 906.875000

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=22

INFO  | ??:??:?? 2 SX126x init result -707

INFO  | ??:??:?? 2 Frequency set to 906.875000

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 22

DEBUG | ??:??:?? 2 Current limit set to 140.000000

DEBUG | ??:??:?? 2 Current limit set result -707

WARN  | ??:??:?? 2 Failed to find SX1262 radio

WARN  | ??:??:?? 2 SX126xInterface(cs=18, irq=33, rst=23, busy=32)

INFO  | ??:??:?? 2 Starting meshradio init...

INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000

INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30

INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)

INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz

INFO  | ??:??:?? 2 Radio channel_num: 19

INFO  | ??:??:?? 2 Radio frequency: 433.174988

INFO  | ??:??:?? 2 Slot time: 42 msec

INFO  | ??:??:?? 2 Set radio: final power level=22

INFO  | ??:??:?? 2 SX126x init result 0

INFO  | ??:??:?? 2 Frequency set to 433.174988

INFO  | ??:??:?? 2 Bandwidth set to 250.000000

INFO  | ??:??:?? 2 Power output set to 22

DEBUG | ??:??:?? 2 Current limit set to 140.000000

DEBUG | ??:??:?? 2 Current limit set result 0

INFO  | ??:??:?? 2 SX1268 Radio init succeeded, using SX1268 radio

INFO  | ??:??:?? 2 Not using WIFI

DEBUG | ??:??:?? 2 (bw=250, sf=11, cr=4/8) packet symLen=8 ms, payloadSize=237, time 3188 ms

DEBUG | ??:??:?? 2 myNodeInfo.bitrate = 74.341286 bytes / sec

INFO  | ??:??:?? 2 PowerFSM init, USB power=1

INFO  | ??:??????*?????state: BOOT

[  2761][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz

DEBUG | ??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0

INFO  | ??:??:?? 2 [RangeTestModule] Range Test Module - Disabled

INFO  | ??:??:?? 5 [PowerFSM] Enter state: POWER

INFO  | ??:??:?? 5 [PowerFSM] Initialise the NimBLE bluetooth module

INFO  | ??:??:?? 12 [DeviceTelemetryModule] (Sending): air_util_tx=0.000000, channel_utilization=0.000000, battery_level=0, voltage=0.000000

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Initial packet id 1088626508, numPacketId 4294967295

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] updateTelemetry LOCAL

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Node status update: 1 online, 1 total

INFO  | ??:??:?? 12 [DeviceTelemetryModule] Sending packet to mesh

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Update DB node 0x84de2c0c, rx_time=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] handleReceived(LOCAL) (id=0x40e31f4e fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] No modules interested in portnum=67, src=LOCAL

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Add packet record (id=0x40e31f4e fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=40e31f4e, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] enqueuing for send (id=0x40e31f4e fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=1)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] txGood=0,rxGood=0,rxBad=0

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using channel 0 (hash 0x8)

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Expanding short PSK #1

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] Using AES128 key!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] ESP32 crypt fr=84de2c0c, num=40e31f4e, numBytes=11!

DEBUG | ??:??:?? 12 [DeviceTelemetryModule] decoded message (id=0x40e31f4e fr=0x0c to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)

DEBUG | ??:??:?? 12 [RadioIf] SX126x standby failed with error -707

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

Backtrace: 0x4008448d:0x3ffd8540 0x400966a1:0x3ffd8560 0x4009c821:0x3ffd8580 0x400e053b:0x3ffd86b0 0x400dfaf8:0x3ffd86d0 0x400e4335:0x3ffd86f0 0x400e4394:0x3ffd8710 0x4020fd42:0x3ffd8730 0x400d5685:0x3ffd8750 0x400d573a:0x3ffd8770 0x400fb2fd:0x3ffd8790 0x400de3cd:0x3ffd87c0 0x4012f329:0x3ffd87e0

ELF file SHA256: a3d62f1cb6fab2f1

E (18665) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0

Rebooting...

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:13104

load:0x40080400,len:3036

entry 0x400805e4

E (791) esp_core_dump_flash: No core dump ?f????????found!

E (791) 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
caveman99 commented 1 year ago

this will be fixed in release 2.1.7

SCWhite commented 4 months ago

@caveman99
HI, Can you kindly explain how is this being fixed?

I'm building a diy hardware with :
Adafruit nRF52840 Feather + sx1262 Lora chip

Testing with Firmware Version:
2.3.4.ea61808

Description:
device will boot, but when I try to change reign setting with Meshtastic APP
it'll crash and reboot

Showing

DEBUG | ??:??:?? 21 [Router] SX126x standby failed with error -707
ERROR | ??:??:?? 21 [Router] assert failed src\mesh\SX126xInterface.cpp: 222, void SX126xInterface<T>::setStandby() [with T = SX1262], t

Firmware before 2.1.11 works fine, I'm guessing has something to do with new parameter in
RadioLibInterface(hal, cs, irq, rst, busy)

Any thing helps, thanks!

GUVWAF commented 4 months ago

@SCWhite

See: https://github.com/jgromes/RadioLib/blob/d77823375a3c4329a1a1182fcf4787f008878810/src/modules/SX126x/SX1262.h#L42

Do you have #define SX126X_DIO3_TCXO_VOLTAGE set in your variant file? Depending on whether you module has a TCXO or not, you should set this to the correct voltage.

SCWhite commented 4 months ago

@GUVWAF

Thanks for the fast reply, I've tried delete that define / set to 0 but I still get the same error
I'll try to ground DIO3, make sure TCXO isn't working.

Thanks, will report back soon!

SCWhite commented 4 months ago

HI @GUVWAF

So, this is what I find out.

According to the datasheet:
"set pin to HIGH to enable TCXO, LOW to put TCXO to sleep"

圖片

I followed most design by not connecting DIO3, hence #define SX126X_DIO3_TCXO_VOLTAGE should be 0V and to make sure I'm not using it, I even try to solder that pin directly to GND

but I still get

SX126x standby failed with error -707

it turns out, the TCXO was actually connected in the chip, internally.
so I had to do #define SX126X_DIO3_TCXO_VOLTAGE 1.8 to make it work.

never had thought of that.

Thanks for the advice, you saved me tons of time and brain cell. You're the best !