Hi David,

can you get a backtrace of that crash?

Develop branch and the 1.0.0 beta2 release branches have diverged a bit, so we
should see what this assert() is about.

One issue I ran across a month back with nrf52 and sys/reboot package. The 
flash area
containing FCB was holding some other data. This was causing fcb_init() on that 
region to
return non-zero. Thereby causing sys/reboot package init to assert() during 
sysinit().
I think I had been playing around with boot loader with was bigger in size, and
had trailing part of my big bootloader in that area.

The way I sorted that out was by erasing the flash, and then reinstalled 
bootloader
and my app again.

> On Feb 7, 2017, at 6:43 AM, David G. Simmons <[email protected]> wrote:
> 
> Having some trouble this morning with the nrf52dk board. 
> 
> 389       sysinit();
> (gdb) n
> 
> 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:125
> 125          asm("bkpt");
> 
> I've updated both mynewt_nordic and apache-mynewt-core to the latest develop 
> branches, and 
> 
> int
> main(int argc, char **argv)
> {
>     int rc;
> 
>     /* Initialize OS */
>     sysinit();
>     
> ...
> 
> Fails at sysinit()
> 
> I've built a new bootloader (just in case). I thought maybe it was something 
> I was doing in my app, so I built and loaded core/apps/bleprph and 
> 
> 259       sysinit();
> (gdb) n
> 
> 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:125
> 125          asm("bkpt");
> 
> So it appears that something is broken for at least the nrf52dk dev board ... 
> 
> cd repos/apache-mynewt-core/
> DSimmons-Pro:apache-mynewt-core dsimmons$ git status -v
> On branch develop
> Your branch is up-to-date with 'origin/develop'.
> cd ../mynewt_nordic/
> DSimmons-Pro:mynewt_nordic dsimmons$ git status -v
> On branch develop
> Your branch is up-to-date with 'origin/develop'.
> nothing to commit, working tree clean
> 
> dg
> --
> David G. Simmons
> (919) 534-5099
> Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • 
> Linkedin <http://linkedin.com/in/davidgsimmons> • Twitter 
> <http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
> /** Message digitally signed for security and authenticity.  
> * If you cannot read the PGP.sig attachment, please go to 
>  * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
>  * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
> **/
> ♺ This email uses 100% recycled electrons. Don't blow it by printing!
> 
> There are only 2 hard things in computer science: Cache invalidation, naming 
> things, and off-by-one errors.
> 
> 

Reply via email to