编译
./scripts/build/build_examples.py --target bouffalolab-bl602dk-light-wifi-littlefs-shell build
烧录
./out/bouffalolab-bl602dk-light-wifi-littlefs-shell/chip-bl602-lighting-example.flash.py --port /dev/ttyUSB0
启动日志
blog init set power on level 2, 2, 2.
[IRQ] Clearing and Disable all the pending IRQ...
Read slot:0
Read slot:1
No written slot found[ 0][BUF: hal_board.c: 577] 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Version of used components:
Version: lib_version_blecontroller_1.6.1
[MTD] >>>>>> Hanlde info Dump >>>>>>
name PSM
id 0
offset 0x003c3000(3944448)
size 0x00008000(32Kbytes)
xip_addr 0x233b2000
[MTD] <<<<<< Hanlde info End <<<<<<
[ 0][-][PROGR] ==================================================
[ 0][-][PROGR] bouffalolab chip-lighting-example, built at Apr 16 2025 15:31:25
[ 0][-][PROGR] ==================================================
[ 0][-][PROGR] Init CHIP Memory
[ 0][-][PROGR] Starting App Task
[ 0][-][PROGR] Starting OS Scheduler...
[ 0][-][PROGR] Starting Platform Manager Event Loop
> [ 1][-][PROGR] Initializing CHIP stack
[ 19][DL][PROGR] BLE address: CC:5F:42:10:69:B3
1th channel,lo_vco_freq_cw=137
2th channel,lo_vco_freq_cw=136
3th channel,lo_vco_freq_cw=134
4th channel,lo_vco_freq_cw=133
5th channel,lo_vco_freq_cw=132
6th channel,lo_vco_freq_cw=131
7th channel,lo_vco_freq_cw=130
8th channel,lo_vco_freq_cw=129
9th channel,lo_vco_freq_cw=127
10th channel,lo_vco_freq_cw=126
11th channel,lo_vco_freq_cw=125
12th channel,lo_vco_freq_cw=124
13th channel,lo_vco_freq_cw=123
14th channel,lo_vco_freq_cw=122
15th channel,lo_vco_freq_cw=120
16th channel,lo_vco_freq_cw=119
17th channel,lo_vco_freq_cw=118
18th channel,lo_vco_freq_cw=117
19th channel,lo_vco_freq_cw=116
20th channel,lo_vco_freq_cw=115
21th channel,lo_vco_freq_cw=114
0th channel,vco_idac_cw=10
1th channel,vco_idac_cw=10
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=9
7th channel,vco_idac_cw=9
8th channel,vco_idac_cw=9
9th channel,vco_idac_cw=9
10th channel,vco_idac_cw=9
11th channel,vco_idac_cw=9
12th channel,vco_idac_cw=9
13th channel,vco_idac_cw=9
14th channel,vco_idac_cw=9
15th channel,vco_idac_cw=9
16th channel,vco_idac_cw=8
17th channel,vco_idac_cw=8
18th channel,vco_idac_cw=8
19th channel,vco_idac_cw=8
20th channel,vco_idac_cw=8
LO locked 9 127
rosdac_i_gc3=33
rosdac_i_gc2=33
rosdac_i_gc1=33
rosdac_i_gc0=33
rosdac_q_gc3=30
rosdac_q_gc2=30
rosdac_q_gc1=30
rosdac_q_gc0=30
rbb_cap1_fc_i=23,rbb_cap2_fc_i=23,rbb_cap1_fc_q=21,rbb_cap2_fc_q=21
new rbb_cap1_fc_i=47,rbb_cap2_fc_i=47,rbb_cap1_fc_q=47,rbb_cap2_fc_q=47
LO locked 9 127
amp=128,step=32,adc_mean_i=61
amp=160,step=16,adc_mean_i=87
amp=176,step=8,adc_mean_i=101
tmx_cs=0, tmxcs_pwr_avg=33095, tmxcs_pwr_avg>>10=32
tmx_cs=1, tmxcs_pwr_avg=42363, tmxcs_pwr_avg>>10=41
tmx_cs=2, tmxcs_pwr_avg=56409, tmxcs_pwr_avg>>10=55
tmx_cs=3, tmxcs_pwr_avg=76189, tmxcs_pwr_avg>>10=74
tmx_cs=4, tmxcs_pwr_avg=96674, tmxcs_pwr_avg>>10=94
tmx_cs=5, tmxcs_pwr_avg=102790, tmxcs_pwr_avg>>10=100
tmx_cs=6, tmxcs_pwr_avg=86894, tmxcs_pwr_avg>>10=84
tmx_cs=7, tmxcs_pwr_avg=65097, tmxcs_pwr_avg>>10=63
tmx_cs_max=5, tmxcs_pwr_max=102790, tmxcs_pwr_max>>10=100
amp=256,step=64,adc_mean_i=45
amp=320,step=32,adc_mean_i=161
amp=352,step=16,adc_mean_i=223
tosdac_i=30,tosdac_q=35,tx_iq_gain_comp=1004,tx_iq_phase_comp=-23
tosdac_i=29,tosdac_q=33,tx_iq_gain_comp=1006,tx_iq_phase_comp=-23
tosdac_i=32,tosdac_q=38,tx_iq_gain_comp=993,tx_iq_phase_comp=-28
tosdac_i=32,tosdac_q=38,tx_iq_gain_comp=998,tx_iq_phase_comp=-26
tosdac_i=30,tosdac_q=37,tx_iq_gain_comp=993,tx_iq_phase_comp=-25
tosdac_i=30,tosdac_q=37,tx_iq_gain_comp=992,tx_iq_phase_comp=-22
tosdac_i=31,tosdac_q=36,tx_iq_gain_comp=988,tx_iq_phase_comp=-25
tosdac_i=30,tosdac_q=36,tx_iq_gain_comp=1000,tx_iq_phase_comp=-25
ACL LE buffers: pkts 2 mtu 251,CONFIG_BT_L2CAP_TX_BUF_COUNT=2, le_read_buffer_size_complete
[ 101][DL][ERROR] Chip stack locking error at 'src/system/SystemLayerImplFreeRTOS.cpp:119'. Code is unsafe/racy
[ 102][-][ERROR] chipDie chipDie chipDie
vAssertCalled, ra = 0x2306ff20 in task CHIP
Exception Entry--->>>
msg: Environment call from M-mode
有没有大佬知道怎么解决