Hi Chris,
Thanks, now it no longer get the crash message. 0:[ts=0ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x03 ocf=0x0003 len=0 2:[ts=15624ssb, mod=4 level=0] 0x03 0x0c 0x00 3:[ts=23436ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x3 ocf=0x3 sta 5:[ts=39060ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x03 ocf=0x0001 len=8 7:[ts=54684ssb, mod=4 level=0] 0x01 0x0c 0x08 0xff 0xff 0xff 0xff 0xff 0x9f 0x0 10:[ts=78120ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x3 ocf=0x1 st 12:[ts=93744ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x03 ocf=0x0063 len=8 14:[ts=109368ssb, mod=4 level=0] 0x63 0x0c 0x08 0x00 0x00 0x80 0x00 0x00 0x00 0 16:[ts=124992ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x3 ocf=0x63 18:[ts=140616ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x0001 len=8 21:[ts=164052ssb, mod=4 level=0] 0x01 0x20 0x08 0x7f 0x02 0x00 0x00 0x00 0x00 0 23:[ts=179676ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x1 s 25:[ts=195300ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x0002 len=0 28:[ts=218736ssb, mod=4 level=0] 0x02 0x20 0x00 29:[ts=226548ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x2 s 31:[ts=242172ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x0003 len=0 33:[ts=257796ssb, mod=4 level=0] 0x03 0x20 0x00 34:[ts=265608ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x3 s 37:[ts=289044ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x04 ocf=0x0009 len=0 39:[ts=304668ssb, mod=4 level=0] 0x09 0x10 0x00 40:[ts=312480ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x4 ocf=0x9 s0 43:[ts=335916ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x002d len=1 45:[ts=351540ssb, mod=4 level=0] 0x2d 0x20 0x01 0x00 46:[ts=359352ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x2d 49:[ts=382788ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x0029 len=0 51:[ts=398412ssb, mod=4 level=0] 0x29 0x20 0x00 52:[ts=406224ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x29 55:[ts=429660ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x002d len=1 57:[ts=445284ssb, mod=4 level=0] 0x2d 0x20 0x01 0x01 58:[ts=453096ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x2d 61:[ts=476532ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x0027 len=39 63:[ts=492156ssb, mod=4 level=0] 0x27 0x20 0x27 0x00 0x00 0x00 0x00 0x00 0x00 0 69:[ts=539028ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x27 71:[ts=554652ssb, mod=4 level=0] ble_hs_hci_cmd_send: ogf=0x08 ocf=0x0007 len=0 74:[ts=578088ssb, mod=4 level=0] 0x07 0x20 0x00 75:[ts=585900ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x8 ocf=0x7 s 77:[ts=601524ssb, mod=4 level=0] Command complete: cmd_pkts=1 ogf=0x0 ocf=0x0 But even so I don't see any Advertising packet being send from it on my phone. Best Regards, Chew ________________________________ From: Christopher Collins <[email protected]> Sent: Tuesday, 24 January, 2017 8:12:09 AM To: [email protected] Subject: Re: bleuart example causes crash Hi Chew, It looks like the problem is a broken task handler. In bleuart's main.c, the bleuart_task_handler() function should call os_eventq_run() in an infinite loop, but it only calls it once. Marko just fixed this bug in develop with his default task changes. Chris On Fri, Jan 20, 2017 at 06:00:45PM +0000, Lm Chew wrote: > [https://tr.cloudmagic.com/h/v6/emailtag/tag/1484935225/e07327a00ce48c6feaf5c6318fd5666d/98148963e301c00d168ac75868cda51d/89bf195313601b8fc94e962f71ed9d07/7d73f5719844943a877cfefbca240ecc/newton.gif] > > Hi Chris, > > Thanks. > > Yeah, it is good to have for sending debug messages and receiving command > wirelessly for device that doesn't have physical UART interface built into > the design. > > Best Regards, > Chew > > > On Sat, Jan 21, 2017 at 12:34am, Christopher Collins > <[email protected]<mailto:[email protected]>> wrote: > > On Fri, Jan 20, 2017 at 09:41:24AM +0000, Lm Chew wrote: > > Hi, > > > > > > Does any one have problem running the bleuart example? > > > > When I run it, it crashes in the end with Unhandled interrupt error. (I am > > using bmd300eval) > > I got the following debug output: > > It has been quite a while since I have run bleuart. I'll take a look at > it today. In the meantime, are you sure you need the bleuart > functionality? Just to be cler, this app implements a somewhat scaled > down version of the Nordic BLE serial port emulation service. > > Chris
