On Thu, Jan 04, 2018 at 08:02:20PM -0500, Abderrezak Mekkaoui wrote:
> Hi Chris
> 
> The result is as follows:
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> __assert_func (file=file@entry=0x0, line=line@entry=0, 
> func=func@entry=0x0, e=e@entry=0x0) at 
> repos/apache-mynewt-core/kernel/os/src/arch/cortex_m4/os_fault.c:137
> 137            asm("bkpt");
> (gdb) bt
> #0  __assert_func (file=file@entry=0x0, line=line@entry=0, 
> func=func@entry=0x0, e=e@entry=0x0) at 
> repos/apache-mynewt-core/kernel/os/src/arch/cortex_m4/os_fault.c:137
> #1  0x00016ae0 in ble_hs_event_start (ev=<optimized out>) at 
> repos/apache-mynewt-core/net/nimble/host/src/ble_hs.c:474
> #2  0x00016b0c in ble_hs_sync () at 
> repos/apache-mynewt-core/net/nimble/host/src/ble_hs.c:316
> #3  0x00016cfc in ble_hs_start () at 
> repos/apache-mynewt-core/net/nimble/host/src/ble_hs.c:560
> #4  0x00016d16 in ble_hs_event_start (ev=<optimized out>) at 
> repos/apache-mynewt-core/net/nimble/host/src/ble_hs.c:473
> #5  0x0000c322 in main (argc=<optimized out>, argv=<optimized out>) at 
> apps/ble_app/src/main.c:36

Darn... I see what the problem is.  This bug was fixed after the
1.3 release: https://github.com/apache/mynewt-core/pull/704.  I didn't
realize the BLE tutorial was broken, though!

The easiest fix is probably to add a store package to the app.  You can
do this by adding the following dependency to your app's pkg.yml file:

    - "@apache-mynewt-core/net/nimble/host/store/config"

Thanks for the heads up!  I will submit a fix for the BLE tutorial to
include this change.

Chris

Reply via email to