我在用BL602做开发,需要做AP配网,但是初始化wifi后,调用wifi_mgmr_ap_enable进行使能,但是执行到这就有问题了。log如下:请求有实现ap模式的朋友给个例程参考下。万分感谢!
wifi initStart Wi-Fi fw @973ms
1th channel,lo_vco_freq_cw=138
2th channel,lo_vco_freq_cw=137
3th channel,lo_vco_freq_cw=136
4th channel,lo_vco_freq_cw=134
5th channel,lo_vco_freq_cw=133
6th channel,lo_vco_freq_cw=132
7th channel,lo_vco_freq_cw=131
8th channel,lo_vco_freq_cw=130
9th channel,lo_vco_freq_cw=128
10th channel,lo_vco_freq_cw=127
11th channel,lo_vco_freq_cw=126
12th channel,lo_vco_freq_cw=125
13th channel,lo_vco_freq_cw=124
14th channel,lo_vco_freq_cw=123
15th channel,lo_vco_freq_cw=121
16th channel,lo_vco_freq_cw=120
17th channel,lo_vco_freq_cw=119
18th channel,lo_vco_freq_cw=118
19th channel,lo_vco_freq_cw=117
20th channel,lo_vco_freq_cw=116
21th channel,lo_vco_freq_cw=115
0th channel,vco_idac_cw=12
1th channel,vco_idac_cw=12
2th channel,vco_idac_cw=12
3th channel,vco_idac_cw=12
4th channel,vco_idac_cw=12
5th channel,vco_idac_cw=12
6th channel,vco_idac_cw=12
7th channel,vco_idac_cw=12
8th channel,vco_idac_cw=12
9th channel,vco_idac_cw=11
10th channel,vco_idac_cw=11
11th channel,vco_idac_cw=11
12th channel,vco_idac_cw=11
13th channel,vco_idac_cw=11
14th channel,vco_idac_cw=11
15th channel,vco_idac_cw=11
16th channel,vco_idac_cw=11
17th channel,vco_idac_cw=11
18th channel,vco_idac_cw=11
19th channel,vco_idac_cw=11
20th channel,vco_idac_cw=11
LO locked 9 127
rosdac_i_gc3=31
rosdac_i_gc2=31
rosdac_i_gc1=31
rosdac_i_gc0=31
rosdac_q_gc3=27
rosdac_q_gc2=27
rosdac_q_gc1=27
rosdac_q_gc0=27
rbb_cap1_fc_i=20,rbb_cap2_fc_i=20,rbb_cap1_fc_q=20,rbb_cap2_fc_q=20
new rbb_cap1_fc_i=44,rbb_cap2_fc_i=44,rbb_cap1_fc_q=44,rbb_cap2_fc_q=44
LO locked 9 127
amp=128,step=32,adc_mean_i=35
amp=160,step=16,adc_mean_i=54
amp=176,step=8,adc_mean_i=64
amp=184,step=4,adc_mean_i=68
amp=188,step=2,adc_mean_i=71
amp=190,step=1,adc_mean_i=73
amp=191,step=0,adc_mean_i=73
tmx_cs=0, tmxcs_pwr_avg=18390, tmxcs_pwr_avg>>10=17
tmx_cs=1, tmxcs_pwr_avg=26061, tmxcs_pwr_avg>>10=25
tmx_cs=2, tmxcs_pwr_avg=37001, tmxcs_pwr_avg>>10=36
tmx_cs=3, tmxcs_pwr_avg=52047, tmxcs_pwr_avg>>10=50
tmx_cs=4, tmxcs_pwr_avg=67829, tmxcs_pwr_avg>>10=66
tmx_cs=5, tmxcs_pwr_avg=75241, tmxcs_pwr_avg>>10=73
tmx_cs=6, tmxcs_pwr_avg=65973, tmxcs_pwr_avg>>10=64
tmx_cs=7, tmxcs_pwr_avg=49020, tmxcs_pwr_avg>>10=47
tmx_cs_max=5, tmxcs_pwr_max=75241, tmxcs_pwr_max>>10=73
amp=256,step=64,adc_mean_i=-229
amp=320,step=32,adc_mean_i=-133
amp=352,step=16,adc_mean_i=-83
amp=368,step=8,adc_mean_i=-58
amp=376,step=4,adc_mean_i=-41
amp=380,step=2,adc_mean_i=-37
amp=382,step=1,adc_mean_i=-32
amp=383,step=0,adc_mean_i=-31
tosdac_i=39,tosdac_q=41,tx_iq_gain_comp=1024,tx_iq_phase_comp=-4
amp=256,step=64,adc_mean_i=22
amp=320,step=32,adc_mean_i=84
amp=352,step=16,adc_mean_i=115
amp=368,step=8,adc_mean_i=131
amp=376,step=4,adc_mean_i=139
amp=380,step=2,adc_mean_i=144
amp=382,step=1,adc_mean_i=146
amp=383,step=0,adc_mean_i=147
tosdac_i=34,tosdac_q=42,tx_iq_gain_comp=1021,tx_iq_phase_comp=-9
amp=256,step=64,adc_mean_i=75
amp=320,step=32,adc_mean_i=111
amp=352,step=16,adc_mean_i=130
amp=368,step=8,adc_mean_i=140
amp=376,step=4,adc_mean_i=144
amp=380,step=2,adc_mean_i=148
amp=382,step=1,adc_mean_i=149
amp=383,step=0,adc_mean_i=150
tosdac_i=38,tosdac_q=42,tx_iq_gain_comp=1021,tx_iq_phase_comp=-7
amp=272,step=68,adc_mean_i=13
amp=340,step=34,adc_mean_i=119
amp=374,step=17,adc_mean_i=174
amp=391,step=8,adc_mean_i=203
tosdac_i=42,tosdac_q=41,tx_iq_gain_comp=1015,tx_iq_phase_comp=-6
amp=224,step=56,adc_mean_i=119
amp=280,step=28,adc_mean_i=175
amp=308,step=14,adc_mean_i=207
tosdac_i=43,tosdac_q=41,tx_iq_gain_comp=1009,tx_iq_phase_comp=-9
amp=272,step=68,adc_mean_i=121
amp=340,step=34,adc_mean_i=177
amp=374,step=17,adc_mean_i=208
tosdac_i=44,tosdac_q=44,tx_iq_gain_comp=1005,tx_iq_phase_comp=-5
amp=288,step=72,adc_mean_i=112
amp=360,step=36,adc_mean_i=165
amp=396,step=18,adc_mean_i=191
amp=414,step=9,adc_mean_i=208
tosdac_i=32,tosdac_q=39,tx_iq_gain_comp=1008,tx_iq_phase_comp=-4
amp=304,step=76,adc_mean_i=123
amp=380,step=38,adc_mean_i=181
amp=418,step=19,adc_mean_i=211
tosdac_i=34,tosdac_q=40,tx_iq_gain_comp=1004,tx_iq_phase_comp=-1
[WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
td_init
td_reset idx=0
td_reset idx=1
Start Wi-Fi fw is Done @5374ms
[APP] [EVT] INIT DONE 5372
[BL] Initi Wi-Fi with MAC #### 7C:B9:4C:1D:BE:4D ####
hostname: Bouffalolab_BL602-1dbe4d
[WF] country code CN used, num of channel 13
[IPC] [TX] Low level size 204, driver size 100, total size 304
Enable BMX IRQ
[WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
td_init
td_reset idx=0
td_reset idx=1
[version] lmac 5.4.0.0
[version] version_machw_1 000055FB
[version] version_machw_2 000001B3
[version] version_phy_1 00822111
[version] version_phy_2 00000000
[version] features 001089DF
[ME] HT supp 1, VHT supp 0
[WF][SM] reload tsen
[WF][SM] Exiting ifaceDown state
[WF][SM] State Action ###ifaceDown### --->>> ###idle###
[WF][SM] Entering idle state
[APP] [EVT] MGMR DONE 6170, now 6205ms
wifi_setup_ap【此处调用了wifi_mgmr_ap_enable就崩溃了】
[ 6226][INFO: bl_irq.c: 352] Current task sp data:
[ 6226][INFO: bl_irq.c: 354] RA:23005894, mstatus:80007880
[ 6226][INFO: bl_irq.c: 357] A0:00000002 A1:4201778c A2:ffffffff A3:00000000 A4:00000000 A5:2304210c A6:2304210c A7:420144ff
[ 6226][INFO: bl_irq.c: 361] T0:00000020 T1:60000000 T2:ffffffff T3:4200f278 T4:420178b0 T5:4200f280 T6:000016a3
[ 6226][INFO: bl_irq.c: 364] S0:00000000 S1:00000001 S2:00000000 S3:4200e000 S4:4201778c S5:00000004 S6:00000001 S7:a5a5a5a5
[ 6226][INFO: bl_irq.c: 368] S8:a5a5a5a5 S9:a5a5a5a5 S10:a5a5a5a5 S11:a5a5a5a5
Exception Entry--->>>
[ 6226][INFO: bl_irq.c: 388] mcause 3800000b, mepc 23008700, mtval 00000000
[ 6226][INFO: bl_irq.c: 202] Exception code: 11
msg: Environment call from M-mode
-+-+-+- BFLB COREDUMP v0.0.1 +-+-+-+
------ DATA BEGIN 4200C000@00036000@ram ------
C1h5oKboPouyeXokw9eeMH6NRokQcAETeTmWJllQUZQooJm5U8F0TOoWorqLmq1z46XlZN+6Nmr+NIGVr3AzxrpoV5xMo7FQdj5X8Y6c
JLdXd3sXlN0iJnzuml3wtTT0qJwjiW3wWlMLWo+yloX4OJzwa/C/YfxE+1uYZHLtE2yUSkm5iBvaM6Yhu8KGYaPeXvvvFaUeqQYXh6tI
kk8yncboYU8ZAsjni8r6kytv6DmELUBjv1R1xqd+UgO0wAjrxdSdudDWqkTjG7wyIpb+6Cg0Rau8ga11dCcZYObktO7HuRPBjk9idhjs
YZoAuPZGHSjotzpX3FvFhHVZBGIkYVJJDm/UZ9zVWYrxdyb2XU6vU15nsMFM61FS0ZbtFwToqeLhD7IuohAX0j/paTfaLEu5QaekcGm/
UksWmINKIfoz7+zIMVTgNnQsvJncdr2mHScON4ldpA1G7AMZM0a6jg8QrXickTfrGvVin8WFZ+/LWq7XI8oGdw8t3xU4o+OrX7XKwQqR