albsod/pinetime-hypnos

bt_connect: Unable to allocate buffer

Closed this issue · 2 comments

This bug sometimes gets triggered when attempting a date and time syncronization. It seems to have been fixed upstream here.

From the RTT log:

[00:02:05.666,015] <wrn> bt_conn: Unable to allocate buffer: timeout 30000
[00:02:05.666,015] <err> bt_att: Unable to allocate buffer for op 0x05
[00:02:05.714,141] <err> bt_att: ATT Timeout
[00:02:05.714,172] <err> bt_gatt: Invalid data len 176
[00:02:05.714,202] <err> os: ***** Reserved Exception ( -16) *****
[00:02:05.714,202] <err> os: r0/a1:  0x2000ba38  r1/a2:  0x00010bf9  r2/a3:  0x00026b9f
[00:02:05.714,202] <err> os: r3/a4:  0x00010acd r12/ip:  0x00010acd r14/lr:  0x00010acd
[00:02:05.714,202] <err> os:  xpsr:  0x00010a00
[00:02:05.714,233] <err> os: Faulting instruction address (r15/pc): 0x00010acd
[00:02:05.714,233] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:02:05.714,233] <err> os: Current thread: 0x20005ee8 (unknown)
[00:02:06.078,979] <err> fatal_error: Resetting system

Updating Zephyr seems to have fixed this. I'll close this when the Zephyr rebase has been completed.

The bug i still there, unfortunately:

[00:02:09.486,022] <wrn> bt_conn: Unable to allocate buffer: timeout 30000
Transfer rate: 0 KByte/s Bytes written: 24 KByte  bt_att: Unable to allocate buffer for op 0x11
[00:02:09.582,672] <err> bt_att: ATT Timeout
[00:02:09.582,702] <err> bt_gatt: Invalid data len 176
[00:02:09.582,702] <err> os: ***** MPU FAULT *****
[00:02:09.582,702] <err> os:   Instruction Access Violation
[00:02:09.582,733] <err> os: r0/a1:  0x00000000  r1/a2:  0x00000000  r2/a3:  0x20005fec
[00:02:09.582,733] <err> os: r3/a4:  0x20005fc8 r12/ip:  0x00000000 r14/lr:  0x0000a581
[00:02:09.582,733] <err> os:  xpsr:  0x40000000
[00:02:09.582,733] <err> os: Faulting instruction address (r15/pc): 0x20005fc8
[00:02:09.582,733] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:02:09.582,763] <err> os: Current thread: 0x20005fec (unknown)
[00:02:09.955,474] <err> os: Halting system