Jieli-Tech / fw-AC63_BT_SDK

Firmware for Generic Bluetooth SDK(AC63 series), Support AC631N/AC635N/AC636N/AC637N/AC632N, compatible with AC69 series without audio support.
Apache License 2.0
172 stars 99 forks source link

ac6329f模组在开启日志打印后,程序在某些情况下崩溃 #138

Closed jason-kd closed 2 years ago

jason-kd commented 2 years ago

问题描述

  1. 将app_config.h的CONFIG_DEBUG_ENABLE 打开,即开启日志打印后,程序在跑一到一段代码的时候,总是崩溃。崩溃后的日志信息如下: [15:33:12.126]收←◆ [00:00:00.100][Debug]: [CLOCK][-------------Clock Dump-----------] [00:00:00.101][Debug]: [CLOCK]---ID 6b01 Ver B [00:00:00.101][Debug]: [CLOCK]--Internal OSC CLK : 24000000 [00:00:00.102][Debug]: [CLOCK]--OSC CLK : 0 [00:00:00.103][Debug]: [CLOCK]-PLL TARGET CLOCK 192 MHz [00:00:00.104][Debug]: [CLOCK]--PLL SYS SEL : PLL_SYS_SEL_1DIV1 [00:00:00.104][Debug]: [CLOCK]--PLL SYS CLK : 48000000 [00:00:00.105][Debug]: [CLOCK]--PLL 96M SEL : PLL_96M_SEL_1DIV2 [00:00:00.106][Debug]: [CLOCK]--PLL 48M SEL : 0 [00:00:00.107][Debug]: [CLOCK]--PLL ALNK CLK : 0 [00:00:00.107][Debug]: [CLOCK]---SFC CLK : 48000000 [00:00:00.108][Debug]: [CLOCK]---SPI CLK : 48000000 [00:00:00.109][Debug]: [CLOCK]---HSB CLK : 24000000 [00:00:00.109][Debug]: [CLOCK]---LSB CLK : 12000000 [00:00:00.110][Debug]: [CLOCK]---P33 CLK : 12000000 [00:00:00.111][Debug]: [CLOCK]--USB CLK : 48000000 [00:00:00.112][Debug]: [CLOCK]--AUDIO CLK : 0 [00:00:00.112][Debug]: [CLOCK]--UART CLK : 24000000 [00:00:00.113][Debug]: [CLOCK]--BT CLK : 48000000 [00:00:00.114][Debug]: [CLOCK]---SYS DVDD : 5 [00:00:00.114][Debug]: [CLOCK]---RAM DVDD : 8 [00:00:00.115][Debug]: [CLOCK]---VDC13 : 6 [00:00:00.116][Debug]: [CLOCK]---RANGE : 0 [00:00:00.116][Debug]: [CLOCK]SFC_CON : 001802b5 [00:00:00.117][Debug]: [CLOCK]SFC_QCNT : 0000001f [00:00:00.118][Debug]: [CLOCK]SYS_DIV : 00000101 [00:00:00.118][Debug]: [CLOCK]CLK_CON0 : 00000151 [00:00:00.119][Debug]: [CLOCK]CLK_CON1 : 00001685 [00:00:00.119][Debug]: [CLOCK]CLK_CON2 : 00000000 [00:00:00.120][Debug]: [CLOCK]PLL_CON : 00091d8b [00:00:00.121][Debug]: [CLOCK]PLL_CON1 : 00000800 [00:00:00.122][Debug]: [CLOCK]PLL_CON2 : 0000000e [00:00:00.122][Debug]: [CLOCK]PLL_CON3 : 00000301 [00:00:00.123][Debug]: [CLOCK]PLL_CON4 : 00000000 [00:00:00.124][Debug]: [CLOCK]FTMODE : 0x7 [FTCS 3 / FTIS 15] [00:00:00.125]get_chip_id: 5f0f [00:00:00.125]get_vbat_trim: 7 [00:00:00.126]get_vbg_trim: 12 [00:00:00.126][0-MSYS]--Reset Source : 0x1 [00:00:00.127]P11 SYS RESET [00:00:00.127][1-P11]--Reset Source : 0x4 [00:00:00.128]P33 SYS RESET [00:00:00.129][2-P33]--Reset Source : 0x20 [00:00:00.129]P33 SYS SOFT RESET : P3_PR_PWR[4]=1 [00:00:00.129]soft_reset_exception [00:00:00.132]=================Version=============== [00:00:00.132]BTCTRLER-@20210611-$071ffa2 [00:00:00.133]UPDATE-@20210611-$6db99fe [00:00:00.133]======================================= [00:00:00.135][Info]: [SDFILE]VM size: 0x6000 @ 0x77000 [00:00:00.136][Info]: [VM]norflash_open() (null) 0 0

[00:00:00.136][Info]: [VM]5c74 <------> 5c74

[00:00:00.137][Info]: [SDFILE]disk capacity 512 KB [00:00:00.138]last file_addr:31e8a 1020 [00:00:00.139]end_addr:33000 49 53 44 55 04 02 05 FF 6F CD FA ED 40 F4 FF FF [00:00:00.140][Debug]: [SDFILE]sdfile mount succ [00:00:00.142][Info]: [VM]vm_info:addr:0x77000, len:0x4000, mode:0x0 [00:00:00.152][Info]: [BOARD]Power init : D:\projects\jieli\source_git\chuang_rui_wu_lian\jieli_ac63x_sdk\apps\spp_and_le\board\bd19\board_ac6329c_demo.c [00:00:00.159]P3_WKUP_EN0 is 0x2 [00:00:00.160]P3_WKUP_EN1 is 0x0 [00:00:00.160]P3_WKUP_EDGE0 is 0xeb [00:00:00.161]P3_WKUP_EDGE1 is 0xd [00:00:00.162]P3_WKUP_LEVEL0 is 0xfd [00:00:00.162]P3_WKUP_LEVEL1 is 0xf [00:00:00.163]P3_WKUP_PND0 is 0x0 [00:00:00.163]P3_WKUP_PND1 is 0x0 [00:00:00.164]P3_AWKUP_EN is 0x0 [00:00:00.164]P3_AWKUP_P_IE is 0x2 [00:00:00.165]P3_AWKUP_N_IE is 0x7 [00:00:00.166]P3_AWKUP_LEVEL is 0x7 [00:00:00.166]P3_AWKUP_P_PND is 0x0 [00:00:00.167]P3_AWKUP_N_PND is 0x0 [00:00:00.167]P3_AWKUP_FLT0 is 0x7 [00:00:00.168]P3_AWKUP_FLT1 is 0x2 [00:00:00.168]P3_AWKUP_FLT2 is 0x5 [00:00:00.169]P3_AWKUP_INSEL is 0x0 [00:00:00.170]P3_PORT_SEL0 is 0xa [00:00:00.170]P3_PORT_SEL1 is 0x2 [00:00:00.171]P3_PORT_SEL2 is 0x1f [00:00:00.172]P3_PORT_SEL3 is 0x7 [00:00:00.172]P3_PORT_SEL4 is 0x1d [00:00:00.173]P3_PORT_SEL5 is 0x1e [00:00:00.173]P3_PORT_SEL6 is 0x15 [00:00:00.174]P3_PORT_SEL7 is 0x18 [00:00:00.174]P3_PORT_SEL8 is 0x1e [00:00:00.175]P3_PORT_SEL9 is 0x7 [00:00:00.176]P3_PORT_SEL10 is 0x1c [00:00:00.176]P3_PORT_SEL11 is 0x1a [00:00:00.177]P3_APORT_SEL0 is 0x1e [00:00:00.177]P3_APORT_SEL1 is 0x19 [00:00:00.178]P3_APORT_SEL2 is 0x1e

[15:33:12.379]收←◆[00:00:00.352]trim: 1, wvdd_lev: 8 [00:00:00.375]trim: 1, pvdd_lev: 15 373, pvdd_lev_l: 9 [00:00:00.377]adc_add_sample_ch() 0 5000d ffffffff [00:00:00.378]add sample ch 5000d [00:00:00.379]adc_add_sample_ch() 0 d 5000d [00:00:00.379]adc_add_sample_ch() 1 d ffffffff [00:00:00.380]add sample ch d [00:00:00.390]vbg_adc_value = 1023 [00:00:00.400]vbat_adc_value = 1023 [00:00:00.400]vbat = 3180 mv [00:00:00.401][Info]: [USER_CFG]bt name config:AC632N_1

[00:00:00.402][Info]: [USER_CFG]rf config:10

[00:00:00.403][Info]: [USER_CFG]warning_tone_v:340 poweroff_tone_v:330

FB EB 2C 3D 6F 42 [00:00:00.406][Info]: [USER_CFG]lrc cfg: E0 01 90 01 E0 01 8C 00 01 [00:00:00.407]irkey_init [00:00:00.407]IR_TIME_REG = 0x0 [00:00:00.408][Info]: [UPDATE]update module init ok

[00:00:00.409][Info]: [TEST-UPDATE]testbox msg handle reg:1e02180

[00:00:00.410][Info]: [APP-UPDATE]<--------update_result_deal=0x0 0--------->

[00:00:00.411]=================update_param_len:900

[00:00:00.414][Info]: [MULTI_CONN]-----------multi_conn demo-------------

[00:00:00.420][Debug]: [CLOCK][-------------Clock Dump-----------] [00:00:00.420][Debug]: [CLOCK]---ID 6b01 Ver B [00:00:00.421][Debug]: [CLOCK]--Internal OSC CLK : 24000000 [00:00:00.422][Debug]: [CLOCK]--OSC CLK : 0 [00:00:00.422][Debug]: [CLOCK]-PLL TARGET CLOCK 192 MHz [00:00:00.423][Debug]: [CLOCK]--PLL SYS SEL : PLL_SYS_SEL_1DIV1 [00:00:00.423][Debug]: [CLOCK]--PLL SYS CLK : 48000000 [00:00:00.424][Debug]: [CLOCK]--PLL 96M SEL : PLL_96M_SEL_1DIV2 [00:00:00.425][Debug]: [CLOCK]--PLL 48M SEL : 0 [00:00:00.425][Debug]: [CLOCK]--PLL ALNK CLK : 0 [00:00:00.426][Debug]: [CLOCK]---SFC CLK : 48000000 [00:00:00.427][Debug]: [CLOCK]---SPI CLK : 48000000 [00:00:00.427][Debug]: [CLOCK]---HSB CLK : 48000000 [00:00:00.428][Debug]: [CLOCK]---LSB CLK : 24000000 [00:00:00.428][Debug]: [CLOCK]---P33 CLK : 24000000 [00:00:00.429][Debug]: [CLOCK]--USB CLK : 48000000 [00:00:00.429][Debug]: [CLOCK]--AUDIO CLK : 0 [00:00:00.430][Debug]: [CLOCK]--UART CLK : 24000000 [00:00:00.431][Debug]: [CLOCK]--BT CLK : 48000000 [00:00:00.431][Debug]: [CLOCK]---SYS DVDD : 6 [00:00:00.432][Debug]: [CLOCK]---RAM DVDD : 8 [00:00:00.432][Debug]: [CLOCK]---VDC13 : 6 [00:00:00.433][Debug]: [CLOCK]---RANGE : 2 [00:00:00.433][Debug]: [CLOCK]SFC_CON : 001802b5 [00:00:00.434][Debug]: [CLOCK]SFC_QCNT : 0000001f [00:00:00.434][Debug]: [CLOCK]SYS_DIV : 00000100 [00:00:00.435][Debug]: [CLOCK]CLK_CON0 : 00000151 [00:00:00.436][Debug]: [CLOCK]CLK_CON1 : 00001685 [00:00:00.436][Debug]: [CLOCK]CLK_CON2 : 00000000 [00:00:00.437][Debug]: [CLOCK]PLL_CON : 00091d8b [00:00:00.437][Debug]: [CLOCK]PLL_CON1 : 00000800 [00:00:00.438][Debug]: [CLOCK]PLL_CON2 : 0000000e [00:00:00.438][Debug]: [CLOCK]PLL_CON3 : 00000301 [00:00:00.439][Debug]: [CLOCK]PLL_CON4 : 00000000 [00:00:00.439][Debug]: [CLOCK]FTMODE : 0x7 [FTCS 3 / FTIS 15] [00:00:00.440]-----edr + ble 's address----- FB EB 2C 3D 6F 42 F7 09 4B 3D 6F 42 [00:00:00.441][LE-MUL-CLIENT]client_init_config

[00:00:00.442]le_support:2 1 [00:00:00.442]le_config:2 1 1 0

[00:00:00.498][Debug]: [LBUF]lbuf misalgin : 0x210ae8 / 0xb72 [00:00:00.510][LE-MUL-COMM]ble_profile_init

[00:00:00.511][LE-MUL-COMM]ble_sm_setup_init

[00:00:00.511][LE-MUL-TRANS]server_profile_init

  1. 将app_config.h的CONFIG_DEBUG_ENABLE 注销掉,即去掉所有打印,程序就能正常跑。
  2. 崩溃代码里面没有打印日志,确认了代码里没有导致崩溃的地方。

麻烦看下上面这些日志提示是什么导致崩溃的?

JL-MinXian commented 2 years ago

更新到最新的sdk试试