Closed dallonby closed 5 years ago
@dallonby see https://github.com/zephyrproject-rtos/zephyr/pull/18294
thanks, confirmed fixed.
@carlescufi Hi, I just moved to v2.0 rc1 and built my app on the M-Bit and getting hard fault. So I turned to the Mesh Demo to test and double check changes, unfortunately if I set the address to 0x000F therefore invoking Heartbeat via Health Server it crashes often on boot.
Sometimes after a reset it will last a few seconds which may correspond to a heartbeat message.
I tried changing buffer sizes but no luck. Sorry but debugging no easy on these things
@WilliamGFish
can you try obtaining a backtrace or an addr2line
on those crashes? We need a bit more info to reproduce. Maybe @jhedberg can give the mesh demo a go on the micro:bit.
Okay, I'll look over the weekend. On 16 Aug 2019 10:45, Carles Cufí notifications@github.com wrote:@WilliamGFish can you try obtaining a backtrace or an addr2line on those crashes? We need a bit more info to reproduce. Maybe @jhedberg can give the mesh demo a go on the micro:bit.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
Ok, Attempted to trace (using windows so harder) used OZone to do reverse lookup on following error:
Bluetooth initialized
Mesh initialized
Loading stored settings
Using stored settings
Subscribing to heartbeat messages
FATAL: ***** HARD FAULT *****
FATAL: r0/a1: 0x20000bb4 r1/a2: 0x00000000 r2/a3: 0x00000002
FATAL: r3/a4: 0x000122cd r12/ip: 0x20000bb4 r14/lr: 0x000096af
FATAL: xpsr: 0x00000000
FATAL: Faulting instruction address (r15/pc): 0x000000fe
FATAL: >>> ZEPHYR FATAL ERROR 0: CPU exception
FATAL: Current thread: 0x20000e48 (unknown)
FATAL: Halting system
__aeabi_uidiv
__udivsi3
$Thumb
000000D0 MOVS R2, #0
000000D2 LSRS R3, R0, #1
000000D4 CMP R3, R1
000000D6 BCC 0x000001C2
000000D8 LSRS R3, R0, #4
000000DA CMP R3, R1
000000DC BCC 0x0000019E
000000DE LSRS R3, R0, #8
000000E0 CMP R3, R1
000000E2 BCC 0x0000016E
000000E4 LSRS R3, R0, #12
000000E6 CMP R3, R1
000000E8 BCC 0x0000013C
000000EA LSRS R3, R0, #16
000000EC CMP R3, R1
000000EE BCC 0x0000010C
000000F0 MOVS R2, #0xFF
000000F2 LSLS R1, R1, #8
000000F4 REV R2, R2
000000F6 LSRS R3, R0, #16
000000F8 CMP R3, R1
000000FA BCC 0x00000102
000000FC ASRS R2, R2, #8
**000000FE LSLS R1, R1, #8**
If i look at the zephyr.lst file i can see this:
fa: d302 bcc.n 102 <CONFIG_FLASH_SIZE+0x2> fc: 1212 asrs r2, r2, #8 fe: 0209 lsls r1, r1, #8
Hopefully this is of some use.
@carlescufi Update:
$ addr2line -e zephyr.elf 0x000000fe
??:?
Other intermittent errors
$ addr2line -e zephyr.elf 0x20000b1c
C:/Users/BillyBob/zephyrGoodX/zephyrNew/subsys/bluetooth/controller/ll_sw/ull.c:111
$ addr2line -e zephyr.elf 0x200003bc
C:/Users/BillyBob/zephyrGoodX/zephyrNew/subsys/bluetooth/controller/ticker/ticker.c:223
$ addr2line -e zephyr.elf 0x00000002
C:/Users/BillyBob/zephyrGoodX/zephyrNew/lib/os/fdtable.c:116
@WilliamGFish thank you very much for the report. We are still debugging issues with the new Link Layer, and so I will ask you for some patience until we have fixed those and can then start analyzing further issues that might not be related to the current issue set. @cvinayak is in charge of this process and we will update as appropriate. Our target is to have all those bug fixed by the release of 2.0.
@WilliamGFish
We have fixed a couple of critical bugs:
https://github.com/zephyrproject-rtos/zephyr/pull/18569 https://github.com/zephyrproject-rtos/zephyr/pull/18578
Could you test again once both are merged?
So I turned to the Mesh Demo to test and double check changes, unfortunately if I set the address to 0x000F therefore invoking Heartbeat via Health Server it crashes often on boot.
This sounds like it's unrelated to Bluetooth. Maybe @jhedberg can take a quick look since it's the mesh demo on micro:bit.
I've fetched the changes and now consistently fails at ull.c:111
This can be generated by using button B repeatedly post boot without being the Heartbeat server. Often only takes 5-6 presses.
I have tried all sorts of different memory configurations but little effect. Even Logging a DBG level yielded little useful info.
I then used other BLE Mesh programs and they too fail at ull.c:111
name: Unable to build mesh-demo for BBC micro:bit about: SRAM exceeded by 64 bytes labels: bug
Bug Using both the GNU gcc toolchain, and the Zephyr 0.10.2 SDK, attempting to build this firmware fails with the following:
Tested using both Ninja and make.
To Reproduce Steps to reproduce the behavior:
Impact showstopper
Environment (please complete the following information):