Re: Blinky on nRF52 DEV via Black Magic Probe: SIGSEGV in os_pkg_init

2017-06-16 Thread Christopher Collins
Hi Peter, On Fri, Jun 16, 2017 at 04:10:52PM -0700, Peter Jones wrote: > It's very likely that I'm doing something wrong so I'm reaching out for > help. All I want to do right now is to get Blinky working on an nRF52. > > I followed the tutorial and built the boot loader and blinky. I then >

Blinky on nRF52 DEV via Black Magic Probe: SIGSEGV in os_pkg_init

2017-06-16 Thread Peter Jones
It's very likely that I'm doing something wrong so I'm reaching out for help. All I want to do right now is to get Blinky working on an nRF52. I followed the tutorial and built the boot loader and blinky. I then created an image so the boot loader would be happy about the magic number. I used

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread marko kiiskila
> On Jun 16, 2017, at 1:56 PM, marko kiiskila wrote: > > > and the target I had: > newt target create native-blehostd > newt target set native-blehostd app="@apache-mynewt-core/apps/blehostd" > newt target set native-blehostd bsp="@apache-mynewt-core/hw/bsp/native" > newt

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Christopher Collins
On Fri, Jun 16, 2017 at 10:08:21PM +0200, Alfred Schilken wrote: > BTW: > every now and then I get this timeout error: > > newtmgr -c ble0c stat ble_gattc > Error: Timeout waiting for host <-> controller sync > > I’m using a microbit running the blehci, connected via adafruit FT232H with >

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread marko kiiskila
> On Jun 16, 2017, at 1:08 PM, Alfred Schilken wrote: > ... > As an alternative, I tried to use the blehostd on a Raspberry Pi zero W with > these settings: > > syscfg.vals: >OS_MAIN_TASK_PRIO: 1 > ># Disable logging. Writing lots of log output to the UART seems

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Alfred Schilken
Hi Will, hi Chris, thanks for your hints. I thought it would be less risky only to reduce the counts and not the size of the buffers. I tweaked a bit with the values of MSYS_1 and found this is working for my current app: MSYS_1_BLOCK_COUNT: 10 # was 12 MSYS_1_BLOCK_SIZE: 180 # was

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread will sanfilippo
Alfred: Another thing with the nimble stack. The mbuf block size of 292, which Chris shows reduced to 200, is much larger than it needs to be. I am not sure what the smallest size actually is, but you can set it to 100 bytes and it should work. This can get you more buffers and/or reduce your

Re: What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Christopher Collins
Hi Alfred, On Fri, Jun 16, 2017 at 07:02:47PM +0200, Alfred Schilken wrote: > Hello all, I’m experimenting with mynewt for several weeks now and I’m > especially impressed by the statistics, logging and image update > functionality. > I’m having problems with getting all the statistics using

What are the best config settings to reduce ram usage, so that an app runs in 16 kb with least impact on functionality?

2017-06-16 Thread Alfred Schilken
Hello all, I’m experimenting with mynewt for several weeks now and I’m especially impressed by the statistics, logging and image update functionality. I’m having problems with getting all the statistics using newtmgr via BLE. I took bleprph as base, added ADC and enabled several stats, logs and

Re: [JIRA-MYNEWT-384] Query

2017-06-16 Thread Fabio Utzig
On Fri, Jun 16, 2017, at 08:08 AM, amit mehta wrote: > On Sun, Jun 11, 2017 at 9:30 PM, amit mehta wrote: > > Eclipse Paho has multiple implementation of MQTT client. I have > > tried integrating the one [1], for the embedded targets, which works > > fine (Build works fine).

Re: [JIRA-MYNEWT-384] Query

2017-06-16 Thread amit mehta
On Sun, Jun 11, 2017 at 9:30 PM, amit mehta wrote: > Eclipse Paho has multiple implementation of MQTT client. I have > tried integrating the one [1], for the embedded targets, which works > fine (Build works fine). If this is okay, then I was wondering, if I > should send a