Dear All,
I have an older "smart lamp socket" with a BL602 chip in it. I managed to put OpenBeken on it, but I can't connect to my home wifi network with it.
This is the bootlog, that has a few attempts of trying to connect:
As you can see, it always arrives to [APP] [EVT] disconnect 15451, Reason: Association failure.
Of course the SSID and passwords are correct.
Here are the settings of DevCube:
I wasn't sure about all the options as the tutorial you guys have on youtube is seriously outdated. I'm happy to make a new tutorial on youtube once I figure this out.
This was the log from the flashing process:
Finally, this is the original bootlog, before "OpenBekenizing" the socket (It might help someone more knowledgeable than me):
So, any idea, why it may not be able to connect?
Added after 49 [minutes]:
Some more info I forgot to mention in the OP:
I have already tried other access points/wifi networks -> same results.
Other devices connect happily to the same access points/wifi networks.
I have also erased the chip, and reprogrammed it -> same results.
If I put the device in safe mode (i.e. restarting a few times quickly after power on) I can get to safe mode from my mobile (that's how I can set up the wifi in it)
I have an older "smart lamp socket" with a BL602 chip in it. I managed to put OpenBeken on it, but I can't connect to my home wifi network with it.
This is the bootlog, that has a few attempts of trying to connect:
[15:34:47.798] - C:BD:97:FB
[ 0][[32mINFO [0m: hal_board.c: 955] country_code : 86
[ 0][[32mINFO [0m: hal_board.c: 342] xtal_mode is MF
[ 0][[32mINFO [0m: hal_board.c: 363] get xtal from F ready 36 36 0 60 60
[ 0][[32mINFO [0m: hal_board.c: 851] pwr_table_11b :20 20 20 18
[ 0][[32mINFO [0m: hal_board.c: 869] pwr_table_11g :18 18 18 18 18 18 14 1
[15:34:47.800] - 4
[ 0][[32mINFO [0m: hal_board.c: 887] pwr_table_11n :18 18 18 18 18 16 14 14
[ 0][[36mBUF[0m: hal_board.c: 606] 10 10 10 10 10 10 10 10 10 10 10 10 10 10
[ 0][[32mINFO [0m: hal_board.c: 902] set pwr_table_ble = 13 in dts
[ 0][[32mINFO [0m: hal_board.c: 687] ap_ssid string[0] = bl_test_005, ap_ssid_len = 11
[ 0][[32mINFO [0m: hal_board.c: 698] ap_psk string[0] = 12345678, ap_psk_len = 8
[ 0][[32mINFO [0m: hal_board.c: 707] ap_channel = 11
[ 0][[32mINFO [0m: hal_board.c: 635] [STA] ap_ssid string[0] = yourssid, ap_ssid_len = 8
[ 0][[32mINFO [0m: hal_board.c: 646] [STA] ap_psk string[0] = yourapssword, ap_psk_len = 12
[ 0][[32mINFO [0m: hal_board.c: 654] auto_connect_enable = 0
[ 0][[32mINFO [0m: hal_board.c: 749] Troom_os = -1, lentmp = 4
[ 0][[32mINFO [0m: hal_board.c: 758] linear_or_follow = 1, lentmp = 4
[ 0][[32mINFO [0m: hal_board.c: 767] Tchannels:2412,2427,2442,2457,2472,
[ 0][[32mINFO [0m: hal_board.c: 781] Tchannel_os:180,168,163,160,157,
[ 0][[32mINFO [0m: hal_board.c: 795] Tchannel_os_low:199,186,170,165,160,
[ 0][[32mINFO [0m: hal_board.c: 808] en_tcal = 0, lentmp = 4
sizeof(StackType_t)=4
[OS] Starting aos_loop_proc task...
[OS] Starting TCP/IP Stack...
-------------------->>>>>>>> LWIP tcp_port 50622
[OS] Starting OS Scheduler...
[BL] [SEC] TRNG Handler
=== 32 task inited
====== bloop dump ======
bitmap_evt 0
bitmap_msg 0
--->>> timer list:
32 task:
task[31] : SYS [built-in]
evt handler 0x2306b356, msg handler 0x2306b326, trigged cnt 0, bitmap async 0 sync 0, time consumed 0us acc 0ms, max 0us
task[30] : empty
task[29] : empty
task[28] : empty
task[27] : empty
task[26] : empty
task[25] : empty
task[24] : empty
task[23] : empty
task[22] : empty
task[21] : empty
task[20] : empty
task[19] : empty
task[18] : empty
task[17] : empty
task[16] : empty
task[15] : empty
task[14] : empty
task[13] : empty
task[12] : empty
task[11] : empty
task[10] : empty
task[09] : empty
task[08] : empty
task[07] : empty
task[06] : empty
task[05] : empty
task[04] : empty
task[03] : empty
task[02] : empty
task[01] : empty
task[00] : empty
[MTD] >>>>>> Hanlde info Dump >>>>>>
name PSM
id 0
offset 0x001e9000(2002944)
size 0x00008000(32Kbytes)
xip_addr 0x231d8000
[MTD] <<<<<< Hanlde info End <<<<<<
[EF] Found Valid PSM partition, XIP Addr 231d8000, flash addr 001e9000
*default_env_size = 0x00000001
ENV start address is 0x00000000, size is 32768 bytes.
[15:34:47.865] - EasyFlash V4.0.99 is initialize success.
You can get the latest version on https://github.com/armink/EasyFlash .
[ 59][[32mINFO [0m: hal_uart.c: 364] uart[0] rx_buf_size 512, tx_buf_size 512
[ 60][[32mINFO [0m: hal_uart.c: 37
[15:34:47.869] - 9] uart[0] cts status = disable lentmp = 7
[ 61][[32mINFO [0m: hal_uart.c: 379] uart[0] rts status = disable lentmp = 7
[ 61][[32mINFO [0m: hal_uart.c: 402] id = 0, tx = 16, rx = 7, cts = 255, rts = 255 baudrate = 2000000.
[ 62][[32mINFO [0m: hal_uart.c: 410] bl_uart_init 0 ok.
[ 62][[32mINFO [0m: hal_uart.c: 411] bl_uart_init 0 baudrate = 2000000 ok.
[ 63][[32mINFO [0m: hal_uart.c: 364] uart[1] rx_buf_size 512, tx_buf_size 512
[ 65][[32mINFO [0m: hal_uart.c: 379] uart[1] cts status = disable lentmp = 7
[ 65][[32mINFO [0m: hal_uart.c: 379] uart[1] rts status = disable lentmp = 7
[ 66][[32mINFO [0m: hal_uart.c: 402] id = 1, tx = 4, rx = 3, cts = 255, rts = 255 baudrate = 115200.
[ 66][[32mINFO [0m: hal_uart.c: 410] bl_uart_init 1 ok.
[ 67][[32mINFO [0m: hal_uart.c: 411] bl_uart_init 1 baudrate = 115200 ok.
[ 67][[32mINFO [0m: hal_gpio.c: 202] [HAL] [GPIO] Max num is 40
[ 68][[32mINFO [0m: hal_gpio.c: 177] New CONF: GPIO05: feature 0, active 1, mode 0, time 100
[ 69][[32mINFO [0m: loopset_led.c: 75] [LED] New Trigger: PIN 5, active level Lo, type Blink
[ 70][[32mINFO [0m: hal_gpio.c: 115] [gpio1] status = disable
[ 70][[31mERROR [0m: hal_gpio.c: 216] gpio1: unvalid GPIO config
[ 71][[31mERROR [0m: hal_gpio.c: 130] gpio2: unvalid GPIO config button
[ 71][[31mERROR [0m: hal_gpio.c: 216] gpio2: unvalid GPIO config
[ 72][[32mINFO [0m: hal_gpio.c: 106] gpio3 NOT found
[MTD] >>>>>> Hanlde info Dump >>>>>>
name media
id 0
offset 0x001a2000(1712128)
size 0x00047000(284Kbytes)
xip_addr 0x23191000
[MTD] <<<<<< Hanlde info End <<<<<<
[ 73][[31mERROR [0m: bl_romfs.c: 146] romfs magic is NOT correct
Start Wi-Fi fw @132ms
[15:34:47.917] - 1th channel,lo_vco_freq_cw=150
2th channel,lo_vco_freq_cw=149
3th channel,lo_vco_freq_cw=148
4th channel,lo_vco_freq_cw=146
5th channel,lo_vco_freq_cw=145
6th channel,lo_vco_freq_cw=144
7th channel,lo_vco_freq_cw=143
8th channel,lo_vco_freq_cw=141
9th channel,lo_vco_freq_cw=140
1
[15:34:47.921] - 0th channel,lo_vco_freq_cw=139
11th channel,lo_vco_freq_cw=138
12th channel,lo_vco_freq_cw=136
13th channel,lo_vco_freq_cw=135
14th channel,lo_vco_freq_cw=134
15th channel,lo_vco_freq_cw=133
16th channel,lo_vco_freq_cw=132
17th channel,lo_vco_freq_cw=130
18th channel,lo_vco_freq_cw=129
19th channel,lo_vco_freq_cw=128
20th channel,lo_vco_freq_cw=127
21th channel,lo_vco_freq_cw=126
0th channel,vco_idac_cw=9
1th channel,vco_idac_cw=9
2th channel,vco_idac_cw=9
3th channel,vco_idac_cw=9
4th channel,vco_idac_cw=9
5th channel,vco_idac_cw=9
6th channel,vco_idac_cw=8
7th channel,vco_idac_cw=8
8th channel,vco_idac_cw=8
9th channel,vco_idac_cw=8
10th channel,vco_idac_cw=8
11th channel,vco_idac_cw=8
12th channel,vco_idac_cw=8
13th channel,vco_idac_cw=8
14th channel,vco_idac_cw=8
15th channel,vco_idac_cw=8
16th channel,vco_idac_cw=8
17th channel,vco_idac_cw=8
18th channel,vco_idac_cw=8
19th channel,vco_idac_cw=7
20th channel,vco_idac_cw=7
LO locked 9 139
rosdac_i_gc3=29
rosdac_i_gc2=29
rosdac_i_gc1=29
rosdac_i_gc0=29
rosdac_q_gc3=32
rosdac_q_gc2=32
rosdac_q_gc1=32
rosdac_q_gc0=32
rbb_cap1_fc_i=25,rbb_cap2_fc_i=25,rbb_cap1_fc_q=25,rbb_cap2_fc_q=25
new rbb_cap1_fc_i=49,rbb_cap2_fc_i=49,rbb_cap1_fc_q=49,rbb_cap2_fc_q=49
LO locked 9 139
amp=128,step=32,adc_mean_i=31
amp=160,step=16,adc_mean_i=48
amp=176,step=8,adc_mean_i=57
amp=184,step=4,adc_mean_i=61
amp=188,step=2,adc_mean_i=63
amp=190,step=1,adc_mean_i=64
amp=191,step=0,adc_mean_i=65
tmx_cs=0, tmxcs_pwr_avg=17060, tmxcs_pwr_avg>>10=16
tmx_cs=1, tmxcs_pwr_avg=23021, tmxcs_pwr_avg>>10=22
tmx_cs=2, tmxcs_pwr_avg=31970, tmxcs_pwr_avg>>10=31
tmx_cs=3, tmxcs_pwr_avg=44241, tmxcs_pwr_avg>>10=43
tmx_cs=4, tmxcs_pwr_avg=57555, tmxcs_pwr_avg>>10=56
tmx_cs=5, tmxcs_pwr_avg=66012, tmxcs_pwr_avg>>10=64
tmx_cs=6, tmxcs_pwr_avg=62193, tmxcs_pwr_avg>>10=60
tmx_cs=7, tmxcs_pwr_avg=49020, tmxcs_pwr_avg>>10=47
tmx_cs_max=5, tmxcs_pwr_max=66012, tmxcs_pwr_max>>10=64
amp=256,step=64,adc_mean_i=-246
amp=320,step=32,adc_mean_i=-165
amp=352,step=16,adc_mean_i=-120
amp=368,step=8,adc_mean_i=-98
amp=376,step=4,adc_mean_i=-87
amp=380,step=2,adc_mean_i=-83
amp=382,step=1,adc_mean_i=-81
amp=383,step=0,adc_mean_i=-81
tosdac_i=32,tosdac_q=32,tx_iq_gain_comp=1029,tx_iq_phase_comp=-6
amp=256,step=64,adc_mean_i=4
amp=320,step=32,adc_mean_i=52
amp=352,step=16,adc_mean_i=78
amp=368,step=8,adc_mean_i=92
amp=376,step=4,adc_mean_i=99
amp=380,step=2,adc_mean_i=103
amp=382,step=1,adc_mean_i=104
amp=383,step=0,adc_mean_i=105
tosdac_i=35,tosdac_q=33,tx_iq_gain_comp=1030,tx_iq_phase_comp=-8
amp=256,step=64,adc_mean_i=67
amp=320,step=32,adc_mean_i=98
amp=352,step=16,adc_mean_i=115
amp=368,step=8,adc_mean_i=125
amp=376,step=4,adc_mean_i=128
amp=380,step=2,adc_mean_i=131
amp=382,step=1,adc_mean_i=131
amp=383,step=0,adc_mean_i=133
tosdac_i=22,tosdac_q=35,tx_iq_gain_comp=1019,tx_iq_phase_comp=-9
amp=272,step=68,adc_mean_i=-25
amp=340,step=34,adc_mean_i=56
amp=374,step=17,adc_mean_i=102
amp=391,step=8,adc_mean_i=125
amp=399,step=4,adc_mean_i=135
amp=403,step=2,adc_mean_i=141
amp=405,step=1,adc_mean_i=144
amp=406,step=0,adc_mean_i=144
tosdac_i=24,tosdac_q=32,tx_iq_gain_comp=1012,tx_iq_phase_comp=-7
amp=224,step=56,adc_mean_i=107
amp=280,step=28,adc_mean_i=155
amp=308,step=14,adc_mean_i=181
amp=322,step=7,adc_mean_i=195
tosdac_i=26,tosdac_q=34,tx_iq_gain_comp=1011,tx_iq_phase_comp=-11
amp=272,step=68,adc_mean_i=109
amp=340,step=34,adc_mean_i=157
amp=374,step=17,adc_mean_i=184
amp=391,step=8,adc_mean_i=197
tosdac_i=25,tosdac_q=34,tx_iq_gain_comp=1018,tx_iq_phase_comp=-14
amp=288,step=72,adc_mean_i=100
amp=360,step=36,adc
[15:34:48.013] - [APP] Empty Config
[APP] Try to set the following ENV with psm_set command, then reboot
[APP] NOTE: conf_ap_pmk MUST be psm_unset when conf is changed
[APP] env: conf_ap_ssid
[APP] env: conf_ap_psk
[APP] env(optinal): conf_ap_pmk
[15:34:48.449] - Entering initLog()...
Commands registered!
initLog() done!
[MTD] >>>>>> Hanlde info Dump >>>>>>
name PSM
id 0
offset 0x001e9000(2002944)
size 0x00008000(32Kbytes)
xip_addr 0x231d8000
[MTD] <<<<<< Hanlde info End <<<<<<
[EF] Found Valid PSM partition, XIP Addr 231d8000, flash addr 001e9000
*default_env_s
[15:34:48.451] - ize = 0x00000001
EasyFlash V4.0.99 is initialize success.
You can get the latest version on https://github.com/armink/EasyFlash .
[15:34:48.514] - [ 722][[33mWARN [0m: bl_mtd.c: 201] addr@0x230a3908 is xip flash, size 8
[15:34:48.626] - [MTD] >>>>>> Hanlde info Dump >>>>>>
name media
id 0
offset 0x001a2000(1712128)
size 0x00047000(284Kbytes)
xip_addr 0x23191000
[MTD] <<<<<< Hanlde info End <<<<<<
Main
[15:34:48.628] - _Init_Before_Delay done
Main_Init_Delay
Main_Init_Delay done
Info:MAIN:Main_Init_Before_Delay
Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 2 changes count.
Error:CMD:lfs is absent
Info:GEN:PIN_SetupPins pins have been set up.
Info:MAIN:Main_Init_Before_Delay done
Info:MAIN:Main_Init_Delay
Info:MAIN:Main_Init_Delay done
Info:MAIN:Main_Init_After_Delay
Info:MAIN:Using SSID [mySSID]
Info:MAIN:Using Pass [myPASSWORD]
Info:MQTT:MQTT_RegisterCallback called for bT obl4CBD97FB/ subT obl4CBD97FB/+/set
Info:MQTT:MQTT_RegisterCallback called for bT bl602s/ subT bl602s/+/set
Info:MQTT:MQTT_RegisterCallback called for bT cmnd/obl4CBD97FB/ subT cmnd/obl4CBD97FB/+
Info:MQTT:MQTT_RegisterCallback called for bT cmnd/bl602s/ subT cmnd/bl602s/+
Info:MQTT:MQTT_RegisterCallback called for bT obl4CBD97FB/ subT obl4CBD97FB/+/get
Error:CMD:LFS_ReadFile: lfs is absent
Info:CMD:CMD_StartScript: failed to get file autoexec.bat
Info:MAIN:Main_Init_After_Delay done
[15:34:49.656] - Info:MAIN:Time 1, idle 0/s, free 107080, MQTT 0(0), bWifi 0, sec
[15:34:49.657] - ondsWithNoPing -1, socks 2/21
[15:34:50.666] - Info:MAIN:Time 2, idle 0/s, free 107080, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:34:51.666] - Info:MAIN:Time 3, idle 0/s, free 107080, MQTT 0(0), bWi
[15:34:51.667] - fi 0, secondsWithNoPing -1, socks 2/21
[15:34:52.666] - Info:MAIN:Time 4, idle 0/s, free 107080, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:34:53.684] - mySSID
ssid len 7
psk myPASSWORD
psk len 13
pmk
pmk len 0
channel band 0
channel freq 0
mac 00:00:00:00:00:00
dhcp status: true
[WF][SM] State Action ###idle### --->>> ###connecting###
connecting using vif_idx 0
===start sm_get_bss_params===
bssid[0] = 0xffff
bssid[1] = 0xffff
bssid[2] = 0xffff
search ssid = mySSID
result ssid index = -1
===end sm_get_bss_params===
[WF][SM] Entering connecting state
Info:MAIN:Time 5, idle 0/s, free 107080, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
Info:MAIN:Registered for wifi c[APP] [EVT] Connecting 5884
[APP] [EVT] Connecting 5884
hanges
Info:MAIN:Connecting to SSID [mySSID]
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
[15:34:54.453] - Probe Response
timestamp = 0x3b084ed
[15:34:54.684] - [ 6890][[33mWARN [0m: bl_mtd.c: 201] addr@0x230a3908 is xip flash, size 8
Info:MAIN:Time 6, idle 0/s, free 105040, MQTT
[15:34:54.684] - 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
Info:MAIN:Boot complete time reached (5 seconds)
[15:34:55.693] - Info:MAIN:Time 7, idle 0/s, free 105040, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:34:56.693] - Info:MAIN:Time 8, idle 0/s, free 105040, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:34:56.934] - ===start sm_get_bss_params===
bssid[0] = 0xffff
bssid[1] = 0xffff
bssid[2] = 0xffff
search ssid = mySSID
result ssid index = 0
===end sm_get_bss_params===
[15:34:56.971] - wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 is_pmf_required:1
AP Secur
[15:34:56.973] - ity mode: wep:0,wpa:0,wpa2:1,wpa3:1
Probe Response
timestamp = 0x3d6cb6b
wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 is_pmf_required:1
AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1
[15:34:57.187] - wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 is_pmf_required:1
AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1
------ 247 set default key 0x42021130, key ptr 0x00000000
[15:34:57.458] - [APP] [EVT] SCAN On Join 9656
[APP] [EVT] Unknown code 10, 9656
Association failure, Wlan802.11 status code = 40
ind ix 0x42029914, chan_ctxt is 0x42022254
connect failure, ssid = mySSID, index = 0
from sm_connect_ind to scanu_rm_exist_ssid
[RX] Connection St
[15:34:57.460] - atus
[RX] status_code 5
[RX] connect result: Association failure
[RX] MAC 24:CF:24:CD:5D:C3
[RX] vif_idx 0
[RX] ap_idx 0
[RX] ch_idx 0
[RX] qos 1
[RX] acm 0
[RX] assoc_req_ie_len 92
[RX] assoc_rsp_ie_len 0
[RX] aid 0
[RX] band 0
[RX] center_freq 2427
[RX] width 0
[RX] center_freq1 2427
[RX] center_freq2 0
[WF][SM] Exiting connecting state
[WF][SM] State Action ###connecting### --->>> ###disconnect###
[WF][SM] Entering disconnect state
[WF][SM] Will retry in 2000 ticks
[APP] [EVT] disconnect 9665, Reason: Association failure
[APP] [EVT] disconnect 9665
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
[15:34:57.698] - Info:MAIN:Time 9, idle 0/s, free 107040, MQTT 0(0), bWifi 0, secondsWithNoPing -1,
[15:34:57.699] - socks 2/21
[15:34:58.698] - Info:MAIN:Time 10, idle 0/s, free 107040, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:34:59.461] - [WF][PF] Using profile, idx is @0
[WF][SM] Retry Again --->>> retry connect
[WF][SM] Exiting disconnect state
Delete Timer.
[WF][SM] State Action ###disconnect### --->>> ###connecting###
[WF][SM] Action Connect
ssid mySSID
ssid len 7
psk myPASSWORD
psk len 13
pmk
pmk len 0
mac 00:00:00:00:00:00
connecting using vif_idx 0
=
[15:34:59.465] - ==start sm_get_bss_params===
bssid[0] = 0xffff
bssid[1] = 0xffff
bssid[2] = 0xffff
search ssid = mySSID
result ssid index = -1
===end sm_get_bss_params===
[WF][SM] Entering connecting state
[APP] [EVT] Reconnect 11668
[APP] [EVT] Reconnect 11668
[APP] [EVT] Connecting 11668
[APP] [EVT] Connecting 11668
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
[15:34:59.701] - Info:MAIN:Time 11, idle 0/s, free 105000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:35:00.243] - Probe Response
timestamp = 0x408cb13
[15:35:00.704] - Info:MAIN:Time 12, idle 0/s, free 105000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:35:01.708] - Info:MAIN:Time 13, idle 0/s, free 105000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:35:02.720] - Info:MAIN:Time 14, i
[15:35:02.721] - dle 0/s, free 105000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
===start sm_get_bss_params===
bssid[0] = 0xffff
bssid[1] = 0xffff
bssid[2] = 0xffff
search ssid = mySSID
result ssid index = 0
===end sm_get_bss_params===
[15:35:02.755] - wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 is_pmf_required:1
AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1
Probe Response
timestamp = 0x42f148a
[15:35:02.910] - wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
wpa2/wpa3 is_pmf_required:1
AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1
[15:35:02.958] - ------ 247 set default key 0x42021268, key ptr 0x00000000
[15:35:03.245] - [APP] [EVT] SCAN On Join 15442
[APP] [EVT] Unknown code 10, 15442
Association failure, Wlan802.11 status code = 40
ind ix 0x4202995c, chan_ctxt is 0x42022270
connect failure, ssid = mySSID, index = 0
from sm_connect_ind to scanu_rm_exist_ssid
[RX] Connection Status
[RX] status_code 5
[RX] connect result: Association
[15:35:03.249] - failure
[RX] MAC 24:CF:24:CD:5D:C3
[RX] vif_idx 0
[RX] ap_idx 1
[RX] ch_idx 0
[RX] qos 1
[RX] acm 0
[RX] assoc_req_ie_len 92
[RX] assoc_rsp_ie_len 0
[RX] aid 0
[RX] band 0
[RX] center_freq 2427
[RX] width 0
[RX] center_freq1 2427
[RX] center_freq2 0
[WF][SM] Exiting connecting state
[WF][SM] State Action ###connecting### --->>> ###disconnect###
[WF][SM] Entering disconnect state
[WF][SM] Will retry in 2000 ticks
[APP] [EVT] disconnect 15451, Reason: Association failure
[APP] [EVT] disconnect 15451
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
[15:35:03.715] - Info:MAIN:Time 15, idle 0/s, free 107000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:35:04.716] - Info:MAIN:Time 16, idle 0/s, free 107000, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
[15:35:05.248] - [WF][PF] Using profile, idx is @0
[WF][SM] Retry Again --->>> retry connect
[WF][SM] Exiting disconnect state
Delete Timer.
[WF][SM] State Action ###disconnect### --->>> ###connecting###
As you can see, it always arrives to [APP] [EVT] disconnect 15451, Reason: Association failure.
Of course the SSID and passwords are correct.
Here are the settings of DevCube:

I wasn't sure about all the options as the tutorial you guys have on youtube is seriously outdated. I'm happy to make a new tutorial on youtube once I figure this out.
This was the log from the flashing process:
[15:22:29.451] - ========= Interface is Uart =========
[15:22:29.455] - eflash loader bin is eflash_loader_40m.bin
[15:22:29.457] - ========= chip flash id: ef4015 =========
[15:22:29.460] - create partition.bin, pt_new is True
[15:22:29.470] - fw_boot_head_gen xtal: 40M
[15:22:29.472] - Create bootheader using D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
[15:22:29.472] - Updating data according to <D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
[15:22:29.473] - Created file len:176
[15:22:29.475] - Create efuse using D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
[15:22:29.475] - Updating data according to <D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[EFUSE_CFG]>
[15:22:29.477] - Created file len:128
[15:22:29.484] - ========= sp image create =========
[15:22:29.485] - Image hash is b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
[15:22:29.486] - Hash ignored
[15:22:29.486] - Header crc ignored
[15:22:29.486] - Write flash img
[15:22:29.487] - Encrypt efuse data
[15:22:29.488] - fw_boot_head_gen xtal: 40M
[15:22:29.493] - Create bootheader using D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
[15:22:29.494] - Updating data according to <D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
[15:22:29.495] - Created file len:176
[15:22:29.497] - Create efuse using D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
[15:22:29.498] - Updating data according to <D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[EFUSE_CFG]>
[15:22:29.503] - Created file len:128
[15:22:29.506] - ========= sp image create =========
[15:22:29.507] - Image hash is b'83891c0734583b9209e28aeaba717f85657b94747f6c4f2cc1c71e7fd874b4e8'
[15:22:29.508] - Hash ignored
[15:22:29.508] - Header crc ignored
[15:22:29.508] - Write flash img
[15:22:29.509] - Encrypt efuse data
[15:22:29.514] - fw_boot_head_gen xtal: 40M
[15:22:29.516] - Create bootheader using D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
[15:22:29.516] - Updating data according to <D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
[15:22:29.518] - Created file len:176
[15:22:29.520] - Create efuse using D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
[15:22:29.521] - Updating data according to <D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[EFUSE_CFG]>
[15:22:29.522] - Created file len:128
[15:22:29.532] - ========= sp image create =========
[15:22:29.539] - Image hash is b'82fbcf5939a531bd30bac6815f8941daea6f99bcf3b1b10f2d646e342c18b281'
[15:22:29.539] - Header crc: b'260d5f0c'
[15:22:29.539] - Write flash img
[15:22:29.546] - Encrypt efuse data
[15:22:29.548] - FW Header is 176, 3920 still needed
[15:22:29.550] - FW OTA bin header is Done. Len is 4096
[15:22:29.620] - BL60X_OTA_Ver1.0
[15:22:29.693] - FW OTA bin is Done. Len is 792464
[15:22:30.088] - OTA XZ file len = 423672
[15:22:30.089] - Partiton len = 557056
[15:22:30.095] - BL60X_OTA_Ver1.0
[15:22:30.142] - FW OTA xz is Done
[15:22:30.142] - ========= eflash loader config =========
[15:22:30.143] - Image offset = 8192
[15:22:30.188] - =========D:/Non-Install/BouffaloLabDevCube-v1.9.0/chips/bl602/device_tree/bl_factory_params_IoTKitA_40M.dts ——> D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602/device_tree/ro_params.dtb=========
[15:22:30.321] - True
[15:22:30.326] - Version: eflash_loader_v2.5.1
[15:22:30.326] - Program Start
[15:22:30.326] - ========= eflash loader cmd arguments =========
[15:22:30.326] - Config file: D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\eflash_loader/eflash_loader_cfg.ini
[15:22:30.327] - serial port is COM5
[15:22:30.327] - cpu_reset=False
[15:22:30.327] - chiptype: bl602
[15:22:30.327] - ========= Interface is uart =========
[15:22:30.327] - com speed: 2000000
[15:22:30.328] - Eflash load helper file: D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\eflash_loader/eflash_loader_40m.bin
[15:22:30.328] - ========= load eflash_loader.bin =========
[15:22:30.328] - Load eflash_loader.bin via uart
[15:22:30.328] - ========= image load =========
[15:22:30.614] - Not ack OK
[15:22:30.614] - FL
[15:22:30.614] - result: FL
[15:22:30.917] - tx rx and power off, press the machine!
[15:22:30.918] - cutoff time is 0.1
[15:22:31.023] - power on tx and rx
[15:22:31.838] - reset cnt: 0, reset hold: 0.005, shake hand delay: 0.1
[15:22:31.839] - clean buf
[15:22:31.868] - send sync
[15:22:32.089] - ack is 4f4b
[15:22:32.135] - shake hand success
[15:22:32.151] - get_boot_info
[15:22:32.156] - data read is b'010000000000000003000000fb97bd4cb97c1100'
[15:22:32.156] - ========= chipid: 7cb94cbd97fb =========
[15:22:32.156] - last boot info: None
[15:22:32.156] - sign is 0 encrypt is 0
[15:22:32.161] - segcnt is 1
[15:22:32.187] - segdata_len is 38592
[15:22:32.284] - 4080/38592
[15:22:32.380] - 8160/38592
[15:22:32.475] - 12240/38592
[15:22:32.571] - 16320/38592
[15:22:32.667] - 20400/38592
[15:22:32.763] - 24480/38592
[15:22:32.858] - 28560/38592
[15:22:32.955] - 32640/38592
[15:22:33.051] - 36720/38592
[15:22:33.098] - 38592/38592
[15:22:33.114] - Run img
[15:22:33.246] - Load helper bin time cost(ms): 2917.216064453125
[15:22:33.356] - Flash load shake hand
[15:22:33.386] - default set DTR high
[15:22:33.495] - clean buf
[15:22:33.520] - send sync
[15:22:33.744] - ack is 4f4b
[15:22:33.791] - Read mac addr
[15:22:33.800] - macaddr: fb97bd4cb97c
[15:22:33.800] - flash set para
[15:22:33.800] - ========= flash read jedec ID =========
[15:22:33.816] - Read flash jedec ID
[15:22:33.816] - flash jedec id: ef401580
[15:22:33.816] - Finished
[15:22:33.830] - get flash size: 0x00200000
[15:22:33.830] - Program operation
[15:22:33.831] - Dealing Index 0
[15:22:33.831] - ========= programming D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\whole_img_boot2.bin to 0x00000000
[15:22:33.833] - ========= flash load =========
[15:22:33.834] - ========= flash erase =========
[15:22:33.834] - Erase flash from 0x0 to 0xbabf
[15:22:33.864] - erase pending
[15:22:34.024] - erase pending
[15:22:34.055] - erase pending
[15:22:34.087] - erase pending
[15:22:34.119] - erase pending
[15:22:34.184] - Erase time cost(ms): 349.608154296875
[15:22:34.196] - decompress write rx timeout: 24.576
[15:22:34.222] - decompress flash load 24060
[15:22:34.247] - Load 2048/24060 {"progress":8}
[15:22:34.279] - Load 4096/24060 {"progress":17}
[15:22:34.310] - Load 6144/24060 {"progress":25}
[15:22:34.342] - Load 8192/24060 {"progress":34}
[15:22:34.374] - Load 10240/24060 {"progress":42}
[15:22:34.407] - Load 12288/24060 {"progress":51}
[15:22:34.438] - Load 14336/24060 {"progress":59}
[15:22:34.470] - Load 16384/24060 {"progress":68}
[15:22:34.502] - Load 18432/24060 {"progress":76}
[15:22:34.534] - Load 20480/24060 {"progress":85}
[15:22:34.566] - Load 22528/24060 {"progress":93}
[15:22:34.582] - Load 24060/24060 {"progress":100}
[15:22:34.582] - Load 24060/24060 {"progress":100}
[15:22:34.582] - Write check
[15:22:34.610] - Flash load time cost(ms): 413.79150390625
[15:22:34.611] - Finished
[15:22:34.612] - Sha caled by host: 2f44f91873a18ff35cf93ab5a35dcde41ab8f075e21af450e904699bdabb0c01
[15:22:34.612] - xip mode Verify
[15:22:34.630] - Read Sha256/47808
[15:22:34.630] - Flash xip readsha time cost(ms): 15.989013671875
[15:22:34.631] - Finished
[15:22:34.646] - Sha caled by dev: 2f44f91873a18ff35cf93ab5a35dcde41ab8f075e21af450e904699bdabb0c01
[15:22:34.646] - Verify success
[15:22:34.658] - Dealing Index 1
[15:22:34.658] - ========= programming chips\bl602\partition\partition.bin to 0x0000E000
[15:22:34.660] - ========= flash load =========
[15:22:34.660] - ========= flash erase =========
[15:22:34.660] - Erase flash from 0xe000 to 0xe10f
[15:22:34.677] - erase pending
[15:22:34.745] - Erase time cost(ms): 84.871337890625
[15:22:34.773] - Load 272/272 {"progress":100}
[15:22:34.774] - Load 272/272 {"progress":100}
[15:22:34.774] - Write check
[15:22:34.802] - Flash load time cost(ms): 44.012939453125
[15:22:34.802] - Finished
[15:22:34.803] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[15:22:34.803] - xip mode Verify
[15:22:34.821] - Read Sha256/272
[15:22:34.822] - Flash xip readsha time cost(ms): 16.9990234375
[15:22:34.822] - Finished
[15:22:34.837] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[15:22:34.838] - Verify success
[15:22:34.850] - Dealing Index 2
[15:22:34.850] - ========= programming chips\bl602\partition\partition.bin to 0x0000F000
[15:22:34.852] - ========= flash load =========
[15:22:34.853] - ========= flash erase =========
[15:22:34.853] - Erase flash from 0xf000 to 0xf10f
[15:22:34.869] - erase pending
[15:22:34.948] - Erase time cost(ms): 95.60107421875
[15:22:34.965] - Load 272/272 {"progress":100}
[15:22:34.966] - Load 272/272 {"progress":100}
[15:22:34.966] - Write check
[15:22:34.994] - Flash load time cost(ms): 31.958984375
[15:22:34.994] - Finished
[15:22:34.995] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[15:22:34.995] - xip mode Verify
[15:22:35.013] - Read Sha256/272
[15:22:35.013] - Flash xip readsha time cost(ms): 15.9697265625
[15:22:35.013] - Finished
[15:22:35.028] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[15:22:35.029] - Verify success
[15:22:35.040] - Dealing Index 3
[15:22:35.041] - ========= programming D:\Non-Install\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\whole_img.bin to 0x00010000
[15:22:35.044] - ========= flash load =========
[15:22:35.045] - ========= flash erase =========
[15:22:35.045] - Erase flash from 0x10000 to 0xd178f
[15:22:35.077] - erase pending
[15:22:35.284] - erase pending
[15:22:35.507] - erase pending
[15:22:35.730] - erase pending
[15:22:35.938] - erase pending
[15:22:36.145] - erase pending
[15:22:36.353] - erase pending
[15:22:36.592] - erase pending
[15:22:36.815] - erase pending
[15:22:37.038] - erase pending
[15:22:37.230] - erase pending
[15:22:37.452] - erase pending
[15:22:37.660] - erase pending
[15:22:37.692] - erase pending
[15:22:37.777] - Erase time cost(ms): 2731.9482421875
[15:22:37.791] - decompress write rx timeout: 24.576
[15:22:38.090] - decompress flash load 423672
[15:22:38.123] - Load 2048/423672 {"progress":0}
[15:22:38.154] - Load 4096/423672 {"progress":0}
[15:22:38.187] - Load 6144/423672 {"progress":1}
[15:22:38.218] - Load 8192/423672 {"progress":1}
[15:22:38.251] - Load 10240/423672 {"progress":2}
[15:22:38.282] - Load 12288/423672 {"progress":2}
[15:22:38.315] - Load 14336/423672 {"progress":3}
[15:22:38.346] - Load 16384/423672 {"progress":3}
[15:22:38.378] - Load 18432/423672 {"progress":4}
[15:22:38.410] - Load 20480/423672 {"progress":4}
[15:22:38.442] - Load 22528/423672 {"progress":5}
[15:22:38.474] - Load 24576/423672 {"progress":5}
[15:22:38.506] - Load 26624/423672 {"progress":6}
[15:22:38.538] - Load 28672/423672 {"progress":6}
[15:22:38.569] - Load 30720/423672 {"progress":7}
[15:22:38.601] - Load 32768/423672 {"progress":7}
[15:22:38.633] - Load 34816/423672 {"progress":8}
[15:22:38.665] - Load 36864/423672 {"progress":8}
[15:22:38.697] - Load 38912/423672 {"progress":9}
[15:22:38.729] - Load 40960/423672 {"progress":9}
[15:22:38.761] - Load 43008/423672 {"progress":10}
[15:22:38.793] - Load 45056/423672 {"progress":10}
[15:22:38.825] - Load 47104/423672 {"progress":11}
[15:22:38.857] - Load 49152/423672 {"progress":11}
[15:22:38.889] - Load 51200/423672 {"progress":12}
[15:22:38.921] - Load 53248/423672 {"progress":12}
[15:22:38.953] - Load 55296/423672 {"progress":13}
[15:22:38.985] - Load 57344/423672 {"progress":13}
[15:22:39.016] - Load 59392/423672 {"progress":14}
[15:22:39.048] - Load 61440/423672 {"progress":14}
[15:22:39.081] - Load 63488/423672 {"progress":14}
[15:22:39.112] - Load 65536/423672 {"progress":15}
[15:22:39.144] - Load 67584/423672 {"progress":15}
[15:22:39.176] - Load 69632/423672 {"progress":16}
[15:22:39.208] - Load 71680/423672 {"progress":16}
[15:22:39.240] - Load 73728/423672 {"progress":17}
[15:22:39.272] - Load 75776/423672 {"progress":17}
[15:22:39.303] - Load 77824/423672 {"progress":18}
[15:22:39.336] - Load 79872/423672 {"progress":18}
[15:22:39.368] - Load 81920/423672 {"progress":19}
[15:22:39.399] - Load 83968/423672 {"progress":19}
[15:22:39.431] - Load 86016/423672 {"progress":20}
[15:22:39.464] - Load 88064/423672 {"progress":20}
[15:22:39.495] - Load 90112/423672 {"progress":21}
[15:22:39.527] - Load 92160/423672 {"progress":21}
[15:22:39.559] - Load 94208/423672 {"progress":22}
[15:22:39.590] - Load 96256/423672 {"progress":22}
[15:22:39.623] - Load 98304/423672 {"progress":23}
[15:22:39.655] - Load 100352/423672 {"progress":23}
[15:22:39.686] - Load 102400/423672 {"progress":24}
[15:22:39.719] - Load 104448/423672 {"progress":24}
[15:22:39.751] - Load 106496/423672 {"progress":25}
[15:22:39.783] - Load 108544/423672 {"progress":25}
[15:22:39.814] - Load 110592/423672 {"progress":26}
[15:22:39.846] - Load 112640/423672 {"progress":26}
[15:22:39.879] - Load 114688/423672 {"progress":27}
[15:22:39.911] - Load 116736/423672 {"progress":27}
[15:22:39.943] - Load 118784/423672 {"progress":28}
[15:22:39.975] - Load 120832/423672 {"progress":28}
[15:22:40.007] - Load 122880/423672 {"progress":29}
[15:22:40.039] - Load 124928/423672 {"progress":29}
[15:22:40.070] - Load 126976/423672 {"progress":29}
[15:22:40.103] - Load 129024/423672 {"progress":30}
[15:22:40.134] - Load 131072/423672 {"progress":30}
[15:22:40.166] - Load 133120/423672 {"progress":31}
[15:22:40.198] - Load 135168/423672 {"progress":31}
[15:22:40.230] - Load 137216/423672 {"progress":32}
[15:22:40.262] - Load 139264/423672 {"progress":32}
[15:22:40.294] - Load 141312/423672 {"progress":33}
[15:22:40.326] - Load 143360/423672 {"progress":33}
[15:22:40.358] - Load 145408/423672 {"progress":34}
[15:22:40.390] - Load 147456/423672 {"progress":34}
[15:22:40.422] - Load 149504/423672 {"progress":35}
[15:22:40.454] - Load 151552/423672 {"progress":35}
[15:22:40.486] - Load 153600/423672 {"progress":36}
[15:22:40.518] - Load 155648/423672 {"progress":36}
[15:22:40.549] - Load 157696/423672 {"progress":37}
[15:22:40.582] - Load 159744/423672 {"progress":37}
[15:22:40.614] - Load 161792/423672 {"progress":38}
[15:22:40.646] - Load 163840/423672 {"progress":38}
[15:22:40.678] - Load 165888/423672 {"progress":39}
[15:22:40.709] - Load 167936/423672 {"progress":39}
[15:22:40.742] - Load 169984/423672 {"progress":40}
[15:22:40.773] - Load 172032/423672 {"progress":40}
[15:22:40.805] - Load 174080/423672 {"progress":41}
[15:22:40.838] - Load 176128/423672 {"progress":41}
[15:22:40.870] - Load 178176/423672 {"progress":42}
[15:22:40.902] - Load 180224/423672 {"progress":42}
[15:22:40.933] - Load 182272/423672 {"progress":43}
[15:22:40.966] - Load 184320/423672 {"progress":43}
[15:22:40.998] - Load 186368/423672 {"progress":43}
[15:22:41.030] - Load 188416/423672 {"progress":44}
[15:22:41.061] - Load 190464/423672 {"progress":44}
[15:22:41.094] - Load 192512/423672 {"progress":45}
[15:22:41.126] - Load 194560/423672 {"progress":45}
[15:22:41.158] - Load 196608/423672 {"progress":46}
[15:22:41.189] - Load 198656/423672 {"progress":46}
[15:22:41.222] - Load 200704/423672 {"progress":47}
[15:22:41.253] - Load 202752/423672 {"progress":47}
[15:22:41.285] - Load 204800/423672 {"progress":48}
[15:22:41.317] - Load 206848/423672 {"progress":48}
[15:22:41.349] - Load 208896/423672 {"progress":49}
[15:22:41.381] - Load 210944/423672 {"progress":49}
[15:22:41.413] - Load 212992/423672 {"progress":50}
[15:22:41.445] - Load 215040/423672 {"progress":50}
[15:22:41.477] - Load 217088/423672 {"progress":51}
[15:22:41.509] - Load 219136/423672 {"progress":51}
[15:22:41.541] - Load 221184/423672 {"progress":52}
[15:22:41.573] - Load 223232/423672 {"progress":52}
[15:22:41.605] - Load 225280/423672 {"progress":53}
[15:22:41.637] - Load 227328/423672 {"progress":53}
[15:22:41.669] - Load 229376/423672 {"progress":54}
[15:22:41.701] - Load 231424/423672 {"progress":54}
[15:22:41.732] - Load 233472/423672 {"progress":55}
[15:22:41.765] - Load 235520/423672 {"progress":55}
[15:22:41.797] - Load 237568/423672 {"progress":56}
[15:22:41.828] - Load 239616/423672 {"progress":56}
[15:22:41.861] - Load 241664/423672 {"progress":57}
[15:22:41.893] - Load 243712/423672 {"progress":57}
[15:22:41.925] - Load 245760/423672 {"progress":58}
[15:22:41.957] - Load 247808/423672 {"progress":58}
[15:22:41.988] - Load 249856/423672 {"progress":58}
[15:22:42.021] - Load 251904/423672 {"progress":59}
[15:22:42.052] - Load 253952/423672 {"progress":59}
[15:22:42.084] - Load 256000/423672 {"progress":60}
[15:22:42.116] - Load 258048/423672 {"progress":60}
[15:22:42.149] - Load 260096/423672 {"progress":61}
[15:22:42.180] - Load 262144/423672 {"progress":61}
[15:22:42.212] - Load 264192/423672 {"progress":62}
[15:22:42.244] - Load 266240/423672 {"progress":62}
[15:22:42.276] - Load 268288/423672 {"progress":63}
[15:22:42.308] - Load 270336/423672 {"progress":63}
[15:22:42.340] - Load 272384/423672 {"progress":64}
[15:22:42.372] - Load 274432/423672 {"progress":64}
[15:22:42.404] - Load 276480/423672 {"progress":65}
[15:22:42.436] - Load 278528/423672 {"progress":65}
[15:22:42.468] - Load 280576/423672 {"progress":66}
[15:22:42.500] - Load 282624/423672 {"progress":66}
[15:22:42.532] - Load 284672/423672 {"progress":67}
[15:22:42.564] - Load 286720/423672 {"progress":67}
[15:22:42.596] - Load 288768/423672 {"progress":68}
[15:22:42.628] - Load 290816/423672 {"progress":68}
[15:22:42.659] - Load 292864/423672 {"progress":69}
[15:22:42.691] - Load 294912/423672 {"progress":69}
[15:22:42.724] - Load 296960/423672 {"progress":70}
[15:22:42.756] - Load 299008/423672 {"progress":70}
[15:22:42.787] - Load 301056/423672 {"progress":71}
[15:22:42.819] - Load 303104/423672 {"progress":71}
[15:22:42.852] - Load 305152/423672 {"progress":72}
[15:22:42.884] - Load 307200/423672 {"progress":72}
[15:22:42.915] - Load 309248/423672 {"progress":72}
[15:22:42.947] - Load 311296/423672 {"progress":73}
[15:22:42.979] - Load 313344/423672 {"progress":73}
[15:22:43.011] - Load 315392/423672 {"progress":74}
[15:22:43.043] - Load 317440/423672 {"progress":74}
[15:22:43.076] - Load 319488/423672 {"progress":75}
[15:22:43.107] - Load 321536/423672 {"progress":75}
[15:22:43.139] - Load 323584/423672 {"progress":76}
[15:22:43.171] - Load 325632/423672 {"progress":76}
[15:22:43.203] - Load 327680/423672 {"progress":77}
[15:22:43.235] - Load 329728/423672 {"progress":77}
[15:22:43.267] - Load 331776/423672 {"progress":78}
[15:22:43.300] - Load 333824/423672 {"progress":78}
[15:22:43.331] - Load 335872/423672 {"progress":79}
[15:22:43.363] - Load 337920/423672 {"progress":79}
[15:22:43.395] - Load 339968/423672 {"progress":80}
[15:22:43.427] - Load 342016/423672 {"progress":80}
[15:22:43.459] - Load 344064/423672 {"progress":81}
[15:22:43.491] - Load 346112/423672 {"progress":81}
[15:22:43.523] - Load 348160/423672 {"progress":82}
[15:22:43.554] - Load 350208/423672 {"progress":82}
[15:22:43.586] - Load 352256/423672 {"progress":83}
[15:22:43.619] - Load 354304/423672 {"progress":83}
[15:22:43.651] - Load 356352/423672 {"progress":84}
[15:22:43.683] - Load 358400/423672 {"progress":84}
[15:22:43.715] - Load 360448/423672 {"progress":85}
[15:22:43.746] - Load 362496/423672 {"progress":85}
[15:22:43.778] - Load 364544/423672 {"progress":86}
[15:22:43.811] - Load 366592/423672 {"progress":86}
[15:22:43.843] - Load 368640/423672 {"progress":87}
[15:22:43.875] - Load 370688/423672 {"progress":87}
[15:22:43.906] - Load 372736/423672 {"progress":87}
[15:22:43.938] - Load 374784/423672 {"progress":88}
[15:22:43.970] - Load 376832/423672 {"progress":88}
[15:22:44.003] - Load 378880/423672 {"progress":89}
[15:22:44.034] - Load 380928/423672 {"progress":89}
[15:22:44.066] - Load 382976/423672 {"progress":90}
[15:22:44.098] - Load 385024/423672 {"progress":90}
[15:22:44.130] - Load 387072/423672 {"progress":91}
[15:22:44.162] - Load 389120/423672 {"progress":91}
[15:22:44.194] - Load 391168/423672 {"progress":92}
[15:22:44.226] - Load 393216/423672 {"progress":92}
[15:22:44.258] - Load 395264/423672 {"progress":93}
[15:22:44.290] - Load 397312/423672 {"progress":93}
[15:22:44.322] - Load 399360/423672 {"progress":94}
[15:22:44.354] - Load 401408/423672 {"progress":94}
[15:22:44.386] - Load 403456/423672 {"progress":95}
[15:22:44.417] - Load 405504/423672 {"progress":95}
[15:22:44.450] - Load 407552/423672 {"progress":96}
[15:22:44.482] - Load 409600/423672 {"progress":96}
[15:22:44.513] - Load 411648/423672 {"progress":97}
[15:22:44.546] - Load 413696/423672 {"progress":97}
[15:22:44.578] - Load 415744/423672 {"progress":98}
[15:22:44.609] - Load 417792/423672 {"progress":98}
[15:22:44.642] - Load 419840/423672 {"progress":99}
[15:22:44.674] - Load 421888/423672 {"progress":99}
[15:22:44.690] - Load 423672/423672 {"progress":100}
[15:22:44.690] - Load 423672/423672 {"progress":100}
[15:22:44.690] - Write check
[15:22:44.733] - Flash load time cost(ms): 6942.024169921875
[15:22:44.734] - Finished
[15:22:44.739] - Sha caled by host: ca78d003413266f51fee22f43dbaa860d5443b20eb05fb71dff1287e2a89c7b9
[15:22:44.739] - xip mode Verify
[15:22:44.977] - Read Sha256/792464
[15:22:44.978] - Flash xip readsha time cost(ms): 224.471923828125
[15:22:44.978] - Finished
[15:22:44.992] - Sha caled by dev: ca78d003413266f51fee22f43dbaa860d5443b20eb05fb71dff1287e2a89c7b9
[15:22:44.992] - Verify success
[15:22:45.005] - Dealing Index 4
[15:22:45.006] - ========= programming chips\bl602\device_tree\ro_params.dtb to 0x001F8000
[15:22:45.008] - ========= flash load =========
[15:22:45.008] - ========= flash erase =========
[15:22:45.008] - Erase flash from 0x1f8000 to 0x1f975d
[15:22:45.025] - erase pending
[15:22:45.057] - erase pending
[15:22:45.135] - Erase time cost(ms): 126.896728515625
[15:22:45.147] - decompress write rx timeout: 24.576
[15:22:45.164] - decompress flash load 1584
[15:22:45.185] - Load 1584/1584 {"progress":100}
[15:22:45.186] - Load 1584/1584 {"progress":100}
[15:22:45.186] - Write check
[15:22:45.212] - Flash load time cost(ms): 64.881591796875
[15:22:45.213] - Finished
[15:22:45.214] - Sha caled by host: 2030ce2a98174d1e1bc02905472a5c55ff0df9d7274c49efd787982af2430e58
[15:22:45.214] - xip mode Verify
[15:22:45.233] - Read Sha256/5982
[15:22:45.233] - Flash xip readsha time cost(ms): 15.998779296875
[15:22:45.233] - Finished
[15:22:45.249] - Sha caled by dev: 2030ce2a98174d1e1bc02905472a5c55ff0df9d7274c49efd787982af2430e58
[15:22:45.249] - Verify success
[15:22:45.262] - Program Finished
[15:22:45.262] - All time cost(ms): 14935.265869140625
[15:22:45.493] - close interface
[15:22:45.493] - [All Success]
Finally, this is the original bootlog, before "OpenBekenizing" the socket (It might help someone more knowledgeable than me):
[14:57:18.984] - Starting bl602 now....
############################## system init ##################################
Device Info:[Firmware Name:<FWSW-HSBL602-SWITCH-BL602L_v1.3.3>,Build Time:<20220614.144049.148>,Boot Reason:<BL_RST_POWER_OFF>]
[14:57:19.521] - cfg->led_status = 0
Reading the dts file...
And the GPIO config is
[14:57:19.522] - :
cfg->wifi_led = 22
cfg->all_on_off = 200
cfg->relay0 = 20
cfg->relay1 = 200
cfg->relay2 = 200
cfg->relay3 = 200
cfg->key0 = 14
cfg->key1 = 200
cfg->key2 = 200
cfg->key3 = 200
cfg.led_status = 0
cfg->led_status = 0
Reading the dts file...
And the GPIO config is :
cfg->wifi_led = 22
cfg->all_on_off = 200
cfg->relay0 = 20
cfg->relay1 = 200
cfg->relay2 = 200
cfg->relay3 = 200
cfg->key0 = 14
cfg->key1 = 200
cfg->key2 = 200
cfg->key3 = 200
cfg.led_status = 0
So, any idea, why it may not be able to connect?
Added after 49 [minutes]:
Some more info I forgot to mention in the OP:
I have already tried other access points/wifi networks -> same results.
Other devices connect happily to the same access points/wifi networks.
I have also erased the chip, and reprogrammed it -> same results.
If I put the device in safe mode (i.e. restarting a few times quickly after power on) I can get to safe mode from my mobile (that's how I can set up the wifi in it)