使用bw16 SDK:开发ble 配网问题

在app_profile_callback中接收蓝牙发送的ssid和passwd,然后调用wifi_connect函数接口,总是出现如下错误:
Hard Fault Patch (Non-secure)

Usage Fault:
Secure State: 0

Stacked:
R0 = 0x1000b935
R1 = 0x0e05659f
R2 = 0x10110d2e
R3 = 0x81000000
R12 = 0xa5a5a5a5
LR = 0xa5a5a5a5
PC = 0xa5a5a5a5
PSR = 0xa5a5a5a5

Current:
EXC_RETURN = 0xffffffbc
MSP = 0x10049120
PSP = 0x10049120
xPSR = 0xa0000006
CFSR = 0x00100000
HFSR = 0x00000000
DFSR = 0x00000000
MMFAR = 0x00000000
BFAR = 0x00000000
AFSR = 0x00000000
PriMask = 0x00000000
SVC priority: 0x00
PendSVC priority: 0xe0
Systick priority: 0xe0

和ATWC函数对比了一下,我传入的参数都是完全一样的,不知道为什么出这个错误?麻烦知道的指导一下

Hi @feifeifei1986

如果是BLE配網的話,應該用另一個example,

而且,這裏的register value也説明你改的還是不對,導致了stack overflow的 Usage Fault

已解决。打开CONFIG_BT_CONFIG可以实现

感谢,已解决。通过改造example实现

1 Like