zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

[ble] BUS fault error occurs when connecting on 96b_carbon

Open cuiyanx opened this issue 8 years ago • 5 comments

Description

When I test ble case on 96b_carbon with multiple connection and disconnection, bus fault error occurs sometimes.

Test Code

/samples/BLE.js

Steps to Reproduction

Actual Result

Bus fault:

BLE sample...
Accepted Connection: 62:54:6b:e1:00:58 (random)
RSSI value: -50dBm
Disconnected Connection: 62:54:6b:e1:00:58 (random)
Accepted Connection: 62:54:6b:e1:00:58 (random)
RSSI value: -50dBm
***** BUS FAULT *****
  Executing thread ID (thread): 0x20000558
  Faulting instruction address:  0x8010e52
  Precise data bus error
  Address: 0x748700
Fatal fault in thread 0x20000558! Aborting.

Expected Result

No error.

Test Builds

Branch Commit Id Target Device Test Date Result
master 1b970c822 96b_carbon Dec 12, 2017 Fail

Additional Information

cuiyanx avatar Dec 12 '17 04:12 cuiyanx

@cuiyanx did you have to update the bluetooth driver using an external SWD debugger? I just flashed the app and when I scan I do see it showed up:

11:5B:5C:46:1A:43 96boards Test beacon

But I can't connect to it.

jimmy-huang avatar Jan 17 '18 22:01 jimmy-huang

@jimmy-huang Yes, I update the BLE driver with 96b_carbon_nrf51. If not, you can't connect to 96 board.

cuiyanx avatar Jan 18 '18 01:01 cuiyanx

@jimmy-huang I test this issue again with ble adapter on master by commit 4b23a47 and get log:

Log:

BLE sample...
Accepted Connection: 00:19:86:00:0b:0e (public)
RSSI value: -50dBm
Disconnected Connection: 00:19:86:00:0b:0e (public)
Accepted Connection: 00:19:86:00:0b:0e (public)
RSSI value: -50dBm
***** BUS FAULT *****
  Executing thread ID (thread): 0x20000558
  Faulting instruction address:  0x8010e62
  Precise data bus error
  Address: 0x748700
Fatal fault in thread 0x20000558! Aborting.
***** BUS FAULT *****
  Executing thread ID (thread): 0x20001b10
  Faulting instruction address:  0x8010e62
  Precise data bus error
  Address: 0x748700
Fatal fault in thread 0x20001b10! Aborting.

cuiyanx avatar Jan 18 '18 07:01 cuiyanx

@cuiyanx did you flash it with one of these? https://github.com/blacksphere/blackmagic/wiki, I think we don't have one laying around so we might have to buy one.

jimmy-huang avatar Jan 18 '18 21:01 jimmy-huang

@jimmy-huang No, I just have Flyswatter2 JTAG Debugger using Openocd and telnet to flash. And the url may be helpful: https://wiki.ith.intel.com/display/OTCWebQA/ZephyrJS+BKMs

cuiyanx avatar Jan 19 '18 01:01 cuiyanx