Re: [VOTE] Release Apache Mynewt 1.1.0-rc2

2017-07-29 Thread Christopher Collins
On Fri, Jul 28, 2017 at 12:47:11AM +0200, Szymon Janc wrote: > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package because... +1 (binding) Chris

Newtmgr moved to new repo

2017-07-10 Thread Christopher Collins
Hello all, The newtmgr tool location has changed: From: https://github.com/apache/mynewt-newt/tree/master/newtmgr To: https://github.com/apache/mynewt-newtmgr/tree/master/newtmgr To download the latest newtmgr, use the following command: go get mynewt.apache.org/newtmgr/... The

Re: Newtmgr moved to new repo

2017-07-10 Thread Christopher Collins
Hi Paul, On Mon, Jul 10, 2017 at 04:13:30PM -0400, Paul LaCrosse wrote: > Pauls-MacBook-Pro-2:testgoget paul$ go get mynewt.apache.org/newtmgr/... > > # cd /Users/paul/dev/go/src/mynewt.apache.org/newt; git pull --ff-only > > fatal: repository ' >

Re: console_queue_char() in interrupt context

2017-07-19 Thread Christopher Collins
On Wed, Jul 19, 2017 at 09:00:16AM -0700, will sanfilippo wrote: > I dont know enough about the console code to make an intelligent suggestion. > There is no task associated with the console, right? If not, and the purpose > of this is to wait some time maybe the only thing to do is set a timer

Re: Question regarding exchanging long characteristic values over BLE

2017-07-25 Thread Christopher Collins
On Tue, Jul 25, 2017 at 10:46:32AM -0700, Pritish Gandhi wrote: [...] > Ah I see! I was assuming a call to access_cb() on a read to completely read > the value of a characteristic so I was using that to trigger an event which > would change the value of that characteristic again. I guess that >

Re: Changing eventq for a package

2017-07-25 Thread Christopher Collins
On Tue, Jul 25, 2017 at 03:20:46PM -0700, Vipul Rahane wrote: > Hello, > > While working on the sensors framework, I found a limitation which > seems to be system wide and should be discussed before coming to a > consensus. > > By default all packages run on the default eventq. Generally, >

Re: Question regarding exchanging long characteristic values over BLE

2017-07-24 Thread Christopher Collins
Hi Pritish, On Mon, Jul 24, 2017 at 04:25:30PM -0700, Pritish Gandhi wrote: > Hi All, > So I'm trying to understand who is responsible for handling chunking the > characteristic value in case the MTU of the connection is smaller than the > characters ic value size. > > So for example, if I have

Re: [VOTE] Release Apache Mynewt 1.1.0-rc1

2017-07-26 Thread Christopher Collins
On Wed, Jul 26, 2017 at 02:03:43AM +0200, Szymon Janc wrote: > Hello all, > > I am pleased to be calling this vote for the source release of > Apache Mynewt 1.1.0. > The vote is open for at least 72 hours and passes if a majority of at > least three +1 PPMC votes are cast. > > [X] +1 Release

Re: ReadDesc: No matching branch for apache-mynewt-core repo

2017-07-04 Thread Christopher Collins
nky1.0 so who ever is downloading > version1.0 might still have to manually change the project.yml and remove > “incubator”? > > > > > On Jul 4, 2017, at 8:55 AM, Christopher Collins <ch...@runtime.io> wrote: > > > > Li-Chun, could you try again? Delete y

Re: Why not use -std=gnu99?

2017-07-06 Thread Christopher Collins
Hi Alfred, On Thu, Jul 06, 2017 at 04:07:17PM +0200, Alfred Schilken wrote: [...] > My question: > > Is the mynewt documentation outdated and I should use a newer version of > arm-none-eabi-gcc, which maybe has gnu99 (or gnu11) as default? I believe most of us at Runtime use the same compiler

Re: Why not use -std=gnu99?

2017-07-06 Thread Christopher Collins
On Thu, Jul 06, 2017 at 06:41:12PM +0100, Jonathan Pallant wrote: > Hi, I just wanted to jump in here and suggest that -std=c11 is a better > choice than -std=gnuXX. If you allow GNU specific extensions then you > might have issues using other compilers - certainly I would be surprised > to see

Re: newtmgr 'image confirm' returns 'Error: 1'

2017-08-22 Thread Christopher Collins
Hi Kevin, On Wed, Aug 16, 2017 at 11:45:52PM +0200, Kevin Townsend wrote: > I'm doing some tests with newtmgr over serial since this is the lowest > cost mechanism for many users (no J-Link required), and the update > process as I understand it is as follows: > > - $ newtmgr -c serial1 image

Re: How to use a single image setup?

2017-09-18 Thread Christopher Collins
Hi Alfred, On Mon, Sep 18, 2017 at 06:26:32PM +0200, Alfred Schilken wrote: > The mynewt documentaion says it supports also a single image setup without a > bootloader. > > I would like to use more flash in apps on calliope or microbit but without > the complication of split images. > > How

BLE Host - Removing the BLE_GAP_EVENT_CONN_CANCEL event type

2017-10-13 Thread Christopher Collins
Hello all, *** Background When the application initiates a BLE connection, it specifies a callback to associate with the connection attempt. The host reports the result of the connect attempt to the application via a call to this callback. After a connection is successfully established, the

Re: [VOTE] Release Apache Mynewt 1.2.0-rc1

2017-09-11 Thread Christopher Collins
On Fri, Sep 08, 2017 at 08:54:53PM +0200, Szymon Janc wrote: > [X] +1 Release this package +1 (binding) Thanks, Chris

Re: Priority violation in syscfg building 1_2_0_dev

2017-09-05 Thread Christopher Collins
I think you need a newer version of newt. The syscfg override rules were relaxed in newt 1.1. Now, a package can override its own settings. Unfortunately, it looks like we failed to add the necessary newt compatibility rules to the core repo in 1.1. You should have gotten a clearer error

Re: BBC micro:bit

2017-08-21 Thread Christopher Collins
Hi Amen, On Mon, Aug 21, 2017 at 08:18:42PM -0400, Amen Zwa wrote: > Hello Devs, > > Is there any documentation on how to install and run Mynewt on the BBC > micro:bit? There isn't any documentation specific to the BSP, but hopefully you won't have much trouble working from a tutorial for a

Re: Regarding Arduino M0 zero serial communication implementation

2017-08-25 Thread Christopher Collins
Hi Jyothi, On Fri, Aug 25, 2017 at 12:10:50PM +, jyoth...@aritron.com wrote: [...] > After we run the application, cant able to get the shell prompt as > mentioned by you through minicom. With Arduino IDE and the arduino > EDBG boot loader we can able to communicate with the board. But with

Re: Regarding Arduino M0 zero serial communication implementation

2017-08-25 Thread Christopher Collins
On Fri, Aug 25, 2017 at 09:53:26AM -0700, marko kiiskila wrote: > Also note that blinky does not have shell compiled in. It’s a very simple > app which just blinks an LED. Try the app slinky instead; that one has shell > enabled. I believe Jyothi is following this tutorial which adds console and

BSP settings moved from bsp.h to syscfg.yml

2017-08-31 Thread Christopher Collins
Hello all, Just a heads up- I will be merging a pull request which moves some BSP settings from `bsp.h` to `syscfg.yml` (https://github.com/apache/mynewt-core/pull/499). If your BSP uses non-default values for these settings, you'll need to add overrides to your BSP's `syscfg.yml` file. The new

Re: Cannot build lora_app_shell

2017-11-29 Thread Christopher Collins
On Wed, Nov 29, 2017 at 07:43:20AM -0800, will sanfilippo wrote: > I doubt it was ever tested with no sx1276 actually connected. Where is it > crashing? What function is at 0x81bc? > > > On Nov 29, 2017, at 6:20 AM, K Dmitry wrote: > > > > Thanks! That helped. I had to

Inconsistent HAL GPIO semantics

2017-11-13 Thread Christopher Collins
Hello all, It appears there is some inconsistency among implementations of the `hal_gpio_irq_enable()` function. There are two behaviors associated with this function: (1) Enable the interrupt associated with the specified pin. (2) Clear any pending interrupt associated with the

Re: Inconsistent HAL GPIO semantics

2017-11-13 Thread Christopher Collins
On Mon, Nov 13, 2017 at 04:32:58PM -0800, will sanfilippo wrote: > Chris: > > Personally, I think there should be separate API as it is more flexible and > the API names more accurately describe what the API is doing. > > I do realize that this is more work and given that there currently is no

Re: How hard to do the following....

2017-11-03 Thread Christopher Collins
On Fri, Nov 03, 2017 at 01:56:15PM +0100, Szymon Janc wrote: > Hi, > > On Thursday, 2 November 2017 18:07:00 CET Greg Strange wrote: > > To clarify, we don't need to advertise and scan at the same time. We will > > have multiple radios with dedicated tasks. So we could have one radio > > scanning

Re: Detecting gatt service discovery from app

2017-11-06 Thread Christopher Collins
Hi Simon, On Mon, Nov 06, 2017 at 12:17:24PM -0800, Simon Ratner wrote: > Hi devs, > > I am looking to detect when a gatt service discovery request (a.k.a. find > information 0x04) is received / processed by nimble. Any pointers? I assume > the host is responsible for formulating the response to

Re: Mutex oddities with v1.0.0

2017-11-06 Thread Christopher Collins
I agree that a mutex should never have a null owner and a nonzero level. Unfortunately, my first guess is some form of memory corruption: it seems like a null value accidentally got written to `mu_owner`. I could be missing it, but I don't see any logic error in the mutex code which could cause

Re: How hard to do the following....

2017-11-02 Thread Christopher Collins
On Thu, Nov 02, 2017 at 09:10:59AM -0700, will sanfilippo wrote: > Others can correct me if I am wrong but I will attempt to answer some of > these: > > 1. Yes, the current code supports this. I know the controller supports multiple advertisers, but I don't believe this functionality is

Re: [RFC] Deprecation of bletiny application

2017-11-08 Thread Christopher Collins
On Wed, Nov 08, 2017 at 10:14:32AM +0100, Szymon Janc wrote: > Hello, > > This was vaguely discussed in the past when btshell was introduced but I > wanted to bring it up again. > > In short: I propose to deprecate bletiny application (which is no longer > tiny:) in favour of using btshell.

Re: newt load hang

2017-12-06 Thread Christopher Collins
Hi Mostafa, On Wed, Dec 06, 2017 at 10:45:16AM -0500, Mostafa Abdulla Uddin wrote: > Hello, > > I have install mynewt 1.2.0 in my Mac OS 10.11.6. > I am using Nordic Board > nRF52 Development Kit (for nRF52832) > > I am trying do load blinky project with shell enable. Unfortunately, my > load

Re: [VOTE] Release Apache Mynewt 1.3.0-rc3

2017-12-10 Thread Christopher Collins
On Thu, Dec 07, 2017 at 07:27:45PM -0200, Fabio Utzig wrote: > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package because... +1 (binding). Chris

Re: [VOTE] Release Apache Mynewt 1.3.0-rc1

2017-12-01 Thread Christopher Collins
On Thu, Nov 30, 2017 at 10:10:00PM -0200, Fabio Utzig wrote: [...] > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package because... +1 (binding) Chris

Re: BLE Host - Removing the BLE_GAP_EVENT_CONN_CANCEL event type

2017-10-25 Thread Christopher Collins
On Thu, Oct 19, 2017 at 12:07:58PM -0700, Christopher Collins wrote: > On Fri, Oct 13, 2017 at 10:18:14AM -0700, Christopher Collins wrote: > > * Because this is an API change, it would be best to introduce it > > slowly. The `BLE_GAP_CONN_CANCEL` event would be ma

Re: LORA api changes for transmit data rate

2017-10-24 Thread Christopher Collins
On Tue, Oct 24, 2017 at 01:56:22PM -0700, will sanfilippo wrote: > Hello: > > I would like to propose some changes to the lora api and I want to see if > folks had any comments or issues with the following proposal. [...] It sounds reasonable to me. There is just one thing that stuck out for

No longer need to call `conf_load()`

2018-05-16 Thread Christopher Collins
Hello all, I am about to merge a PR (https://github.com/apache/mynewt-core/pull/1075) which eliminates the need to explicitly call `conf_load()`. Nothing bad will happen if your app continues to call `conf_load()`, but the call can be safely removed after the PR is merged. Background- The

Re: [VOTE] Release Apache Mynewt 1.4.0-rc1 and Apache NimBLE 1.0.0-rc1

2018-06-11 Thread Christopher Collins
On Wed, Jun 06, 2018 at 09:45:38PM +0200, Szymon Janc wrote: > Hello all, > > I am pleased to be calling this vote for the source release of > Apache Mynewt 1.4.0 and Apache NimBLE 1.0.0. [...] > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not

Re: HCI comms

2018-06-19 Thread Christopher Collins
Hi Jeff, On Tue, Jun 19, 2018 at 06:42:25PM +, Jeff Belz wrote: > All: > > I'm using a BroadCom(Cypress)43438 Bluetooth chip that receives a 4 > wire HCI. What would be a good example tutorial to use to just get > my BT actually advertising. I would start with the "bleprph" app. This is

Logging changes, part 1 - Separate header and body

2018-06-19 Thread Christopher Collins
Hello all, I have submitted a few logging related PRs to the core repos. I think I like the changes, but I have a nagging feeling they miss the point somehow. I wanted to get the community's opinion on these changes as well as start a discussion on minimizing backwards compatibility breakage.

Logging changes, part 2 - Module-mapped logging

2018-06-19 Thread Christopher Collins
Hello all, In my previous email, I mentioned some proposed logging changes that I was less sure of. In particular, there are these two PRs that I submitted: (1) log/modlog - Module-mapped logging (https://github.com/apache/mynewt-core/pull/1174) (2) sys/log/full: Allow

Re: ADC device not allowed multiple opens

2018-06-06 Thread Christopher Collins
On Wed, Jun 06, 2018 at 08:50:34AM -0700, will sanfilippo wrote: > Hello: > > I am not the most familiar with the ADC device so it is possible that it was > being used incorrectly but in any event I ran across something I wanted to > discuss. The call to os_dev_open() allows a device to be

Re: ADC device not allowed multiple opens

2018-06-06 Thread Christopher Collins
you aren't missing anything; I just misunderstood the os_dev reference counting. Thanks for setting me straight :). Another option: the ADC open function checks its os_dev's reference count. If the value is greater than zero, then return without doing anything. Chris > > > > On Jun

Re: bleprph using HCI 4 wire

2018-06-26 Thread Christopher Collins
t; > -Original Message- > From: Christopher Collins > Sent: Monday, June 25, 2018 11:25 PM > To: dev@mynewt.apache.org > Subject: Re: bleprph using HCI 4 wire > > Hi Jeff, > > My responses are inline. > > On Tue, Jun 26, 2018 at 02:11:46AM +, Jeff Belz wrote:

Re: [VOTE] Release Apache Mynewt 1.4.1-rc1

2018-06-26 Thread Christopher Collins
On Fri, Jun 22, 2018 at 04:14:37PM +0200, Szymon Janc wrote: > Hello all, > > I am pleased to be calling this vote for the source release of > Apache Mynewt 1.4.1. [...] > The vote is open for at least 72 hours and passes if a majority of at > least three +1 PMC votes are cast. > > [x] +1

Re: bleprph using HCI 4 wire

2018-06-27 Thread Christopher Collins
d_tx (cmd=cmd@entry=0x0) > at repos/apache-mynewt-nimble/nimble/transport/ram/src/ble_hci_ram.c:89 > 89 assert(ble_hci_ram_rx_cmd_ll_cb != NULL); > (gdb) > #0 __assert_func (file=file@entry=0x0, line=line@entry=0, > func=func@entry=0x0, e=e@entry=0x0) > at

Re: bleprph using HCI 4 wire

2018-06-25 Thread Christopher Collins
Hi Jeff, My responses are inline. On Tue, Jun 26, 2018 at 02:11:46AM +, Jeff Belz wrote: > All: > > > I'm using a BroadCom(Cypress)43438 Bluetooth chip that receives a 4 wire HCI. > I got one response that said I just have to change the syscfg setting in my > target to > > > >

Re: This is working nicely.....

2018-05-01 Thread Christopher Collins
Thanks for taking the time, David and Abderrezak. As a Mynewt contributor, messages like yours are gratifying to hear. I won't comment on the question of Mynewt vs. Zephyr! :) Chris On Thu, Apr 26, 2018 at 07:09:03PM -0400, Abderrezak Mekkaoui wrote: > Hi All, > > I would like to add my voice

Re: problem running the bare ble example on nrf52480

2018-01-04 Thread Christopher Collins
Hi Abderrezak, Could you please replicate the crash, then retrieve a back trace from gdb (type `bt` or `where` at the gdb prompt)? Thanks, Chris On Thu, Jan 04, 2018 at 06:09:16PM -0500, Abderrezak Mekkaoui wrote: > Dear All, > First I would like to congratulate and thank the people behind this

Re: problem running the bare ble example on nrf52480

2018-01-04 Thread Christopher Collins
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 >

Re: Having trouble with bletiny on ubuntu 17.10 arch X86_64

2018-02-05 Thread Christopher Collins
Hi Krishna, Thanks for the report; I see the same behavior. The problem is that both the BLE controller task and the UART poller task use the same task priority: 0. A few things: 1. The bletiny app has been superseded by the btshell app. Both apps serve the same purpose, but btshell is more

Re: Gatt client proc leak?

2018-02-05 Thread Christopher Collins
I agree with Łukasz - enabling `BLE_HS_DEBUG` is a good start. I spent some time looking at the code, but I'm afraid I don't see any possible culprits. I have a few requests: 1. Could you please send the full output of the `mpool` command (i.e., all the mempools, not just gattc_procs and

Re: Gatt client proc leak?

2018-02-06 Thread Christopher Collins
On Mon, Feb 05, 2018 at 09:58:27PM -0800, Simon Ratner wrote: > Thanks guys, I will try all of those and report back. > > First up, full mpool output. I just noticed ble_gap_update pool, which > I don't remember seeing before. How come there is only one of those - > is that per connection, or

Re: [DISCUSS] To track issues on Github for Apache Mynewt projects or not?

2018-02-06 Thread Christopher Collins
On Tue, Feb 06, 2018 at 12:26:17AM -0800, aditi hilbert wrote: > Hi, > > Multiple people have suggested that issues be tracked on Github close > to the code. The benefit is that contributors don’t have to switch > between two systems to raise and clear issues. Please let your > thoughts known

Re: Define __MYNEWT__ symbol for Mynewt build

2018-02-09 Thread Christopher Collins
Hi Andrzej, The newt tool already adds the `-DMYNEWT=1` compiler flag during builds. Mynewt and newt are not part of the C implementation, so in my opinion they should not introduce identifiers in the reserved namespace (leading underscore). I know opinions differ on this point, and I could

Re: Having trouble with bletiny on ubuntu 17.10 arch X86_64

2018-02-20 Thread Christopher Collins
Hi Krishna, Did you see my response on Feb 5? I am including here in case you didn't get it. Let me know if you still have questions. -- Hi Krishna, Thanks for the report; I see the same behavior. The problem is that both the BLE controller task and the UART poller task use the same

Re: Reducing GATT write attribute's timeout and read attribute's BLE_HS_ENOMEM

2018-08-06 Thread Christopher Collins
On Mon, Aug 06, 2018 at 02:03:22AM +0100, Lukasz Wolnik wrote: > Hi Chris, > > I have resolved the issue. It wasn't my mbuf structure but MSYS_1's pool > memory leak (caused by my app). [...] > > I finally have a stable Mynewt app <-> Android repeated communication even > on MSYS_1_BLOCK_COUNT

Re: debounce/debounce.h

2018-08-28 Thread Christopher Collins
I added the second one (util/debounce) without checking if another one already existed. I'll come up with a new name for util/debounce today and submit a PR. Chris On Tue, Aug 28, 2018 at 05:33:22PM +0300, marko kiiskila wrote: > mynewt-core has 2 debounce packages. Trying to include both

Re: newt build: error parsing setting SHELL_OS_SERIAL_BOOT_NVREG

2018-08-21 Thread Christopher Collins
Hi Александр, It looks like your `newt` tool is out of date. There were some backwards-compatibility breaking changes made in 1.4. I suggest downloading newt 1.4.1, as described here: http://mynewt.apache.org/latest/newt/install/index.html Chris On Tue, Aug 21, 2018 at 08:34:13AM +0300,

Re: os_time issues

2018-07-20 Thread Christopher Collins
Hi Jan, On Wed, Jul 18, 2018 at 06:54:01PM +0200, Jan Clement wrote: > Hello All, > > i tried to get sntp client from lwip stack up and running today and > stumbled over some little problems and questions i would like to share > with you: > > To start the sntp service I wrote: > >

Re: Conditional syscfg.yml restrictions

2018-07-16 Thread Christopher Collins
Hi Kevin, On Mon, Jul 16, 2018 at 10:57:32PM +0200, Kevin Townsend wrote: > I'm trying to add I2C support to the existing (SPI only) BME280 driver, > but I'm not sure how to enforce the following conditional restrictions > in the syscfg.yml file(s): > > * If BME280_SHELL_ITF_TYPE == 1, I2C_0

Re: I2C retries

2018-08-30 Thread Christopher Collins
On Thu, Aug 30, 2018 at 11:35:44AM -0700, Vipul Rahane wrote: > Hey, > > I think that’s a really great idea. One thing I would add is that we > definitely should honor timeouts in any of the retries. Also, a way to > disable the retries should be a good idea. Probably making it a syscfg > which

Re: I2C retries

2018-08-30 Thread Christopher Collins
On Thu, Aug 30, 2018 at 07:47:34PM +0300, marko kiiskila wrote: > > On Aug 30, 2018, at 7:21 PM, Christopher Collins wrote: > > [1] We should do the same for the other HAL APIs (i.e., non-I2C), but > > that can come later. > > Not sure this makes sense for other ones

Re: I2C retries

2018-08-30 Thread Christopher Collins
On Thu, Aug 30, 2018 at 09:48:32AM -0700, will sanfilippo wrote: > I think my only comment is tries vs retries. You always want to make > at least one try so you would have to set that to 1 every time right? > I like retries personally but that is just me. Mainly because you > would never allow

Re: I2C retries

2018-08-30 Thread Christopher Collins
On Wed, Aug 29, 2018 at 10:06:37PM -0500, Greg Stein wrote: > On Wed, Aug 29, 2018 at 8:59 PM Christopher Collins > wrote: > > > Hello all, > > > > I noticed the HAL master I2C API does not include any retry logic. As > > you probably know, in I2C, the defa

Re: I2C retries

2018-08-31 Thread Christopher Collins
; seems most people implement drivers with os dev functionality but I do not > think it is a requirement. > > > > On Aug 31, 2018, at 9:51 AM, Christopher Collins wrote: > > > > I do think that approach makes more sense than implementing retries in > > the HA

Re: how to print floating points in mynewt

2018-09-05 Thread Christopher Collins
Hi Rohit, baselibc does support floating point formatting, but it is not enabled by default. To enable it, set the following syscfg setting to 1 in your target: FLOAT_USER baselibc's float printf support is a bit limited. In particular, it ignores precision specifiers and always prints

NimBLE host GAP event listeners

2018-09-07 Thread Christopher Collins
Hello all, TL;DR: Proposal for registration of GAP event listeners in the NimBLE host. Currently, GAP event callbacks are specified by the code which creates a connection. This proposal allows code to listen for GAP events without creating a connection. The NimBLE host allows the application

Re: Unit Tests with newt pkg new

2018-09-10 Thread Christopher Collins
On Sun, Sep 09, 2018 at 01:04:35AM +0200, Kevin Townsend wrote: [...] > My +1 would be to have /test as a standard feature of any package, and you > can always delete it, but other people might find this delete burden > inappropriate? +1. I think that is a great idea. Chris

I2C retries

2018-08-29 Thread Christopher Collins
Hello all, I noticed the HAL master I2C API does not include any retry logic. As you probably know, in I2C, the default state of the SCL line is NACK. This means an unresponsive peripheral is indistinguishable from one that is actively nacking the master's writes. If the master's writes are

Logging (again!)

2018-07-05 Thread Christopher Collins
Hello all, My logging obsession continues. I have submitted a giant PR (https://github.com/apache/mynewt-core/pull/1249) which changes all existing packages to use the modlog facility rather than directly call into the `sys/log` API. I think this is the right direction, but it is a somewhat

Re: newtmgr fs command fails in sim

2018-07-06 Thread Christopher Collins
Hi Kevin, On Fri, Jul 06, 2018 at 02:41:17PM +0200, Kevin Townsend wrote: > I'm doing some initial development using only the simulator (for > convenience sake), and was testing out 'newtmgr fs' support to quickly > get data to and from the simulator. > > My sim target is setup to use NFFS

Re: Common CONFIG_* flag missing?

2018-07-07 Thread Christopher Collins
On Sat, Jul 07, 2018 at 06:13:22PM +0200, Kevin Townsend wrote: > In the sys/config package, there are two main flags to test against in > code, depending on your implementation: > > * CONFIG_FCB (storage in FCB) > * CONFIG_NFFS (storage in NFFS) > >

Re: Absolute path for newt image

2018-07-13 Thread Christopher Collins
Hi Simon, I have submitted a PR which hopefully fixes this issue. If you want to try it out, it is here: https://github.com/apache/mynewt-newt/pull/193 Chris On Fri, Jul 13, 2018 at 12:30:12AM -0700, Simon Ratner wrote: > Hi devs, > > At some point between 1.3.0 and 1.4.1, the `newt` tool

Re: Question regarding exchanging long characteristic values over BLE

2018-03-09 Thread Christopher Collins
t 12:19 PM, Andrzej Kaczmarek < > andrzej.kaczma...@codecoup.pl> wrote: > > > Hi, > > > > > > On Tue, Jul 25, 2017 at 8:14 PM, Christopher Collins <ch...@runtime.io> > > wrote: > > > > > On Tue, Jul 25, 2017 at 10:46:32AM -0700, Pr

Re: Device numbering clarification

2018-02-28 Thread Christopher Collins
Hi Markus, On Mon, Feb 26, 2018 at 11:36:41AM -0800, markus wrote: > Is there some documentation about the numbers, meanings and relationship (if > any) of the 3 different device numbers? > > -) syscfg, eg UART_0 > -) device name, eg "uart0" > -) mcu HW device, eg "USART2" The short answer

Re: [DISCUSSION] Moving NimBLE to separate project

2018-02-27 Thread Christopher Collins
I agree with others that the best option is 2a (@apache-mynewt-core/net/nimble* become empty packages that pull in the external nimble packages). However, newt doesn't currently support repo dependencies; if a repo is not specified in the user's `project.yml` file, then newt won't download it.

Re: Nimble Questions

2018-03-15 Thread Christopher Collins
Hi Ram, On Thu, Mar 15, 2018 at 12:07:55PM +0530, Sriram V wrote: > Hi, > > I have the following doubts on NimBle: > > The document says 32+ concurrent connections, multiple connections in > simultaneous central and peripheral roles. Does that mean the "device > running Nimble" can connect to

Re: MBUF behaviour

2018-04-06 Thread Christopher Collins
Hi Aditya, On Fri, Apr 06, 2018 at 07:36:41PM +0530, Aditya Xavier wrote: > Hi Mynewt Team, > > Please help me understand the behavior of MBUF. > > PFB the steps I did :- > > 1.os_mempool_init > 2.os_mbuf_pool_init > 3.Initialized a os_mbuf by os_mbuf_get > 4.Triggered Console

Re: MBUF behaviour

2018-04-06 Thread Christopher Collins
Hi Aditya, On Sat, Apr 07, 2018 at 07:59:44AM +0530, Aditya Xavier wrote: > Hi Christopher, > > That is the expected behaviour, however if you try running the sample app I > gave you would notice the following > After step 11, I.e initialise the os_mbuf by doing a os_mbuf_get from a >

Re: MBUF behaviour

2018-04-08 Thread Christopher Collins
ough. Would change the code accordingly. > > Thanks, > Aditya Xavier. > > > > On 07-Apr-2018, at 8:55 AM, Christopher Collins <ch...@runtime.io> wrote: > > > > Hi Aditya, > > > > On Sat, Apr 07, 2018 at 07:59:44AM +0530, Aditya Xavier wrote: >

Re: managing repository mirrors with the newt tool

2018-04-09 Thread Christopher Collins
Hi David, On Mon, Apr 09, 2018 at 09:29:34PM -0500, david zuhn wrote: > I'm trying to understand how the newt tool manages repository versions. > > Here's my situation -- I don't want to depend on github/master, yet I don't > want to introduce gratuitous incompatibility. > > So I would like to

Re: Debugging the mynewt bootloader

2018-04-19 Thread Christopher Collins
You might want to try: mon reset halt Some hardware seems to require the "halt" at the end. I am about the furthest one can get from being an OpenOCD expert, so I couldn't tell you what the difference is. Chris On Thu, Apr 19, 2018 at 03:52:39PM -0400, Niall Begley wrote: > Hi Marko, > >

Re: Convenience header: mynewt.h

2018-03-27 Thread Christopher Collins
FYI- I have filed a PR implementing this change: https://github.com/apache/mynewt-core/pull/969 Chris On Wed, Mar 21, 2018 at 10:47:14AM -0700, Christopher Collins wrote: > Hello all, > > I was thinking about adding a new header to the core repo that just > includes the (more or les

Re: CBOR encoding problems.

2018-03-29 Thread Christopher Collins
On Thu, Mar 29, 2018 at 10:27:36PM +0530, Aditya Xavier wrote: > Thanks for the tip. Would try that too.. > > However, I have tried few variations to check the BLE side ( whether it was > responsible for truncating ) > > 1. I am able to send the same message using encoding only.. i.e. if I

Re: os data.core memory section

2018-04-02 Thread Christopher Collins
Hi Markus, On Sat, Mar 31, 2018 at 04:02:05PM -0700, markus wrote: > I looked into moving the stack into the CCM memory of the stm32 > mcu's - and although almost every linker script defines ".data.core" > sections and there are some defines in bsp.h's for section > attributes they don't seem to

Re: CBOR encoding problems.

2018-03-29 Thread Christopher Collins
Hi Aditya, On Thu, Mar 29, 2018 at 08:52:08PM +0530, Aditya Xavier wrote: [...] > And it doesn’t work when am trying to trigger it from BLE. > > Assuming it was a memory issue, I used a mem_pool, mbuf, allocating > and reserving space. However, problem remains. > > It usually encodes and sends

Convenience header: mynewt.h

2018-03-21 Thread Christopher Collins
Hello all, I was thinking about adding a new header to the core repo that just includes the (more or less) mandatory headers: * syscfg/syscfg.h * sysinit/sysinit.h * os/os.h * defs/error.h The rule of thumb would be: just include "mynewt.h" in every file. I think this would

Re: Error "The filename or extension is too long." while building a split image app

2018-03-18 Thread Christopher Collins
Hi Abderrezak, Could you try building again with the `-ldebug` switch? Please include the output in a follow up. Thanks, Chris On Sun, Mar 18, 2018 at 05:05:40PM -0400, Abderrezak Mekkaoui wrote: > Hi All, > > I was following the tutorial to build a split image application. The > process got

Re: Error "The filename or extension is too long." while building a split image app

2018-03-18 Thread Christopher Collins
On Sun, Mar 18, 2018 at 09:26:19PM -0400, Abderrezak Mekkaoui wrote: > Hi Chris. > The result of the build with -ldebug can be found here: > > https://www.dropbox.com/s/o749a6x6xjvva6t/clvrt_ess_split.log?dl=0 Darn... it seems Windows 7+ limits the command line length to 32767 characters [1].

Re: JSON Encoding and Decoding

2018-02-28 Thread Christopher Collins
Hi Aditya, On Wed, Feb 28, 2018 at 06:35:04PM +0530, Aditya Xavier wrote: > Thanks got Encoding working for the required JSON. > > Any pointers on how to get the decoding working ? > > From the example >

Re: [DISCUSSION] Moving NimBLE to separate project

2018-03-05 Thread Christopher Collins
On Tue, Feb 27, 2018 at 08:39:04AM -0800, Christopher Collins wrote: > I agree with others that the best option is 2a > (@apache-mynewt-core/net/nimble* become empty packages that pull in the > external nimble packages). However, newt doesn't currently support repo > dependencie

Re: I2C retries

2018-08-31 Thread Christopher Collins
is some bus-level driver/layer that > > drivers will use instead of HAL directly so it can take care of > > handling multiple devices on the same bus seamlessly (in general) and > > also it would be the place where we can put extra common logic if > > needed (like retries). &g