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
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: 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: 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: 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: 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-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

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

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: [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: 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: 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: 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: 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: 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: 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: 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

Unlikely recoverable failures

2018-10-18 Thread Christopher Collins
Hello all, I think Mynewt lacks a mechanism for dealing with a certain class of errors: unlikely recoverable failures. For the purposes of this email, I divide failures into two groups: 1. Failures we cannot recover from, or that we don't want to recover from. This group includes:

Re: Unlikely recoverable failures

2018-10-19 Thread Christopher Collins
FYI- I have submitted a PR that implements this new macro: https://github.com/apache/mynewt-core/pull/1471 I went with `DEBUG_PANIC()` for the name. Chris On Thu, Oct 18, 2018 at 11:13:27AM -0700, Christopher Collins wrote: > Hello all, > > I think Mynewt lacks a mechanism fo

Upcoming compatibility-breaking change

2018-11-01 Thread Christopher Collins
Hello all, I wanted to give a heads up: a compatibility-breaking change will likely be made to the `mynewt-core` and `mynewt-nimble` repos soon. These repos will no longer be compatible with older versions of newt. If you use development versions of these repos, I suggest you upgrade to the

Re: [VOTE] Release Apache Mynewt 1.5.0-rc1

2018-10-25 Thread Christopher Collins
On Tue, Oct 23, 2018 at 04:20:40PM +0200, Szymon Janc wrote: > Hello all, > > I am pleased to be calling this vote for the source release of > Apache Mynewt 1.5.0. > [X] +1 Release this package > [ ] 0 I don't feel strongly about it, but don't object > [ ] -1 Do not release this package

Re: Persist stats across resets?

2018-11-08 Thread Christopher Collins
Hi Kevin, Bit of a delayed response! On Sun, Sep 09, 2018 at 07:18:44PM +0200, Kevin Townsend wrote: > Is there currently an obvious mechanism to persist 'stats' across resets ( > https://mynewt.apache.org/master/os/modules/stats/stats.html), repopulating > them with appropriate values coming

Re: Controlled shutdown

2018-09-28 Thread Christopher Collins
is better to add a new function, `sysdown_in_progress()`. If a subprocedure needs to continue beyond the initial callback, it calls this new function before returning. Chris > Otherwise, sounds good and seems like a good addition to mynewt! > > > > On Sep 28, 2018, at 1:08 PM,

Re: Controlled shutdown

2018-10-01 Thread Christopher Collins
Hi Martin, On Fri, Sep 28, 2018 at 04:30:17PM -0700, Martin Turon wrote: > +1 for graceful shutdown. > > It could also be useful for coarse, multi-protocol use cases such as using > BLE for commissioning, shutting down that stack, and then starting a 15.4 > stack such as Thread. > > In general,

Re: Controlled shutdown

2018-10-09 Thread Christopher Collins
Hi Vipul, On Tue, Oct 09, 2018 at 12:01:46PM -0700, Vipul Rahane wrote: > Sorry for the late reply. No problem! > I really like the idea. Thank you for doing this Chris. A much needed > feature. A possible use case just came to my mind. > > One module might have to be shutdown before shutting

Re: Setting and displaying time

2018-12-27 Thread Christopher Collins
Hi Rohit, On Wed, Dec 26, 2018 at 11:55:56PM +0530, Rohit Gujarathi wrote: > Hi Everyone, > > I wanted to make a desktop clock using mynewt and am stuck at setting the > time. I read the os_timeval part but How do i set time in mynewt and > display it human form? I am using the nrf52840 which

Re: Question about unit test packages

2018-12-12 Thread Christopher Collins
Hi Mikhail, On Wed, Dec 12, 2018 at 02:22:28PM +, Mikhail Efroimson wrote: > I am writing my first MyNewt unit test package and I was hoping that > someone could help me resolve an issue that I'm having. It seems that > I have to include the project BSP as a dependency in my unit test >

Re: Manufacturing Image Proposal

2018-12-11 Thread Christopher Collins
Hi Will, On Tue, Dec 11, 2018 at 04:25:41PM -0800, will sanfilippo wrote: > I read this over myself and it looks good to me. What I am not sure I > understood, and still not sure I do, is the sectors where these MMR will go. > Are these going to go into some write protected location? Or will

Re: Manufacturing Image Proposal

2018-12-11 Thread Christopher Collins
On Tue, Dec 11, 2018 at 12:43:02PM +0100, Łukasz Rymanowski wrote: > Hi Chris, > > I read it all and indeed it was thrilling :) Thanks for reading! > I think this is a good idea and this is a way to go. I have just feeling > that internal mfgimage should be able to verify external one

Re: NimBLE function naming question

2018-12-14 Thread Christopher Collins
Hi Cristoph, On Fri, Dec 14, 2018 at 04:34:05PM +0100, Christoph Jabs wrote: > Hello mynewt devs, > > I have a question regarding the mynewt-NimBLE stack. > > Whilst working my way through the code of the stack, trying to understand > the structure of it and how to use it, I came accross the

Re: Custom boot loader

2018-11-20 Thread Christopher Collins
Hi Jeff, On Tue, Nov 20, 2018 at 04:12:54PM +, Jeff Belz wrote: > All: > > I have to use a custom boot loader for my application. Has anyone > done this before and if so, what are the tricks to doing this? > > I'm running a stm32f412. I've got the application running on 0x802 > and

Re: MYNEWT_VAL(...) invalid syntax ?

2019-01-08 Thread Christopher Collins
Hi Markus, On Tue, Jan 08, 2019 at 10:15:22AM -0800, markus wrote: > Hi Lukasz, > > got it, I guess I have to start building newt. > > Follow up question: Does this mean the next release will break all > repositories out there or is backwards compatibility still on the > roadmap for this

Re: MYNEWT_VAL(...) invalid syntax ?

2019-01-08 Thread Christopher Collins
oblem with such a change. But what about > all the other repositories? > > Thanks, > Markus > > > > On Tue, 8 Jan 2019 10:29:24 -0800 > Christopher Collins wrote: > > > Hi Markus, > > > > On Tue, Jan 08, 2019 at 10:15:22AM -0800, markus wrote: >

Re: [VOTE] Release Apache Mynewt 1.6.0-rc2 and Apache NimBLE 1.1.0-rc2

2019-04-04 Thread Christopher Collins
On Tue, Apr 02, 2019 at 11:28:27PM +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

Re: [VOTE] Release Apache Mynewt 1.6.0-rc1 and Apache NimBLE 1.1.0-rc1

2019-03-30 Thread Christopher Collins
On Fri, Mar 29, 2019 at 09:22:27PM +0100, 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

Re: Mynewt test facilities

2019-03-04 Thread Christopher Collins
Thanks, Will. Responses to inline comments inline :). On Sun, Mar 03, 2019 at 06:18:46PM -0800, will sanfilippo wrote: > > ### PROPOSALS > > > > 1. (testutil): Modify `TEST_CASE()` to call > > `sysinit()` if `MYNEWT_VAL(SELFTEST)` is enabled. > Would we want all TEST_CASE() to call sysinit if a

Testutil again

2019-03-04 Thread Christopher Collins
Hello all, More unit testing excitement! I think there are some valuable changes we could make to the `test/testutil` API, so I wanted to share some ideas with the community. I introduced many of the issues that I want to focus on, so I don't really feel obligated to be polite here :). I just

Mynewt test facilities

2019-02-27 Thread Christopher Collins
Hello all, In this email, I would like to discuss Mynewt's test facilities. ### INTRO (AKA TL;DR) Unit tests come in two flavors: 1) simulated, and 2) real hardware. Writing a test capable of running in both environments is wasted effort. Let's revisit Mynewt's test facilities with a clear

Re: Storing Bonding information in NVS memory

2019-02-13 Thread Christopher Collins
Hi Prasad, On Wed, Feb 13, 2019 at 03:13:26PM +0530, prasad wrote: > Hi all, > > As it happens, I fixed the bug in my code. It now correctly retrieves > LTKs and bond is maintained even after reboot. > > Apart from this I just wanted to understand reason behind including > 'idx' in structure

Re: Disconnect reason message Nimble / BTShell

2019-02-05 Thread Christopher Collins
Hi Fred, On Tue, Feb 05, 2019 at 02:25:43PM -0500, Copper Dr wrote: > I'm trying to figure out how to decode these disconnections. > > Reason 688 (0x02B0) and 573 (0x023D) > > I checked > http://mynewt.apache.org/latest/network/docs/ble_hs/ble_hs_return_codes.html > and the disconnect code does

Re: issue with missing log api

2019-02-05 Thread Christopher Collins
Hi Markus, On Mon, Feb 04, 2019 at 08:34:50PM -0800, markus wrote: > I updated to the latest master from github (4fedf428) and now my > projects break with the error message: > > Building target targets/s > Error: Unsatisfied APIs detected: > * log, required by: sys/log/modlog To solve this

Re: newt test suite for a bsp port

2019-04-12 Thread Christopher Collins
Hi Inderpal, On Fri, Apr 12, 2019 at 02:38:27PM +0530, inderpal singh wrote: > Hi There, > > How can I run existing test suite for particular BSP instead of native. > > #newt test all > instead of native how can I run this on my target. There are two kinds of Mynewt unit tests: 1. Self tests.

Re: Mynewt Installation Query

2019-05-31 Thread Christopher Collins
Hi Asmita, Could you please send the contents of your `project.yml` file? Also, please include the output of the following commands: newt version newt info Thanks, Chris On Fri, May 31, 2019 at 01:17:54PM +0530, Asmita Jha wrote: > Hello, > > When I am trying to change vers to 0-dev

Re: Regarding split images

2019-05-01 Thread Christopher Collins
Hi Joseph, On Mon, Apr 29, 2019 at 04:39:50PM +0200, joseph reveane wrote: > Hi Chris, > > I've modified my app setup to point to the nimble repo: > > *$ newt target show split-apptargets/split-app > app=@apache-mynewt-core/apps/splitty > bsp=@apache-mynewt-core/hw/bsp/nordic_pca20020 >

Re: Regarding split images

2019-04-26 Thread Christopher Collins
Hi Joseph, On Sat, Apr 20, 2019 at 09:55:27AM +0200, joseph reveane wrote: > Hi, > > I'm looking for examples on how to build split and single images for NRF52 > based devices. > The goal is obviously to get more FLASH room for the application. > I didn't find any example to build a single image

Re: Regarding split images

2019-05-03 Thread Christopher Collins
please execute the following two commands and send the output? newt info newt target show Thanks, Chris > > Regards. > > /joseph > > Le mer. 1 mai 2019 à 20:35, Christopher Collins a écrit : > > > Hi Joseph, > > > > On Mon, Apr 29, 2019 at

Re: Regarding split images

2019-04-27 Thread Christopher Collins
Hi Joseph, On Sat, Apr 27, 2019 at 04:01:17PM +0200, joseph reveane wrote: > Hi Chris, > > I've fetched your fixes and tried to build a split image with the same > parameters as the > ones I used to open this issue: > > 1) loader app: > > > > > > > *newt target show

Re: cmake support or link with a static library

2019-09-18 Thread Christopher Collins
Hi Ondrej, On Wed, Sep 18, 2019 at 09:07:57PM +0200, Ondrej Pilat wrote: > Dear mynewt developers, > > I tried to find information how to use mynewt with cmake or link with a > static library. Unfortunately I failed. Where can I find more > information or is it possible to integrate mynewt with

Changes in log configuration

2019-08-01 Thread Christopher Collins
Hello all. I wanted to report on some logging changes that have gone into master of mynewt-core. All questions and comments are welcome. Thanks, Chris ### SUMMARY There have been some changes to how Mynewt logs get configured. Now, Log modules are defined in `syscfg.yml` files rather than in

Deprecate "install" and "sync" commands?

2019-08-05 Thread Christopher Collins
Hello all, The newt tool supports three "project commands": * install * upgrade * sync I always have a hard time remembering the particulars of commands like these. For example, when other package management systems support both "update" and "upgrade", I inevitably mix them up. I propose we

Re: newest BSP on OSX

2019-08-05 Thread Christopher Collins
Hi Juergen, Run the following: newt upgrade && newt sync (instead of `newt install`). This will download updates for those Mynewt repos. You might also need to upgrade your version of the newt tool. I am not sure how the brew distribution gets updated, but it looks like we have fallen

Re: newest BSP on OSX

2019-08-06 Thread Christopher Collins
On Mon, Aug 05, 2019 at 02:13:54PM -0700, Christopher Collins wrote: > I am not sure how the brew distribution gets updated, but it looks > like we have fallen behind here. I will look into getting this > updated today. FYI- I have updated brew with newt and newtmgr 1.7. Chris

Re: Newt feature: run custom commands at build time

2019-09-30 Thread Christopher Collins
Hi Andrzej, On Thu, Sep 26, 2019 at 07:24:54PM +0200, Andrzej Kaczmarek wrote: > This looks very good! I was thinking if it would be possible to reference > other targets (i.e. artifacts) from scripts but with the latest addition of > shared folder this does not seem to be a problem since it can

Re: Question about mynewt Single mode

2019-10-01 Thread Christopher Collins
Hi Nicola, On Fri, Sep 27, 2019 at 04:48:18PM +0200, Nicola Bizzotto wrote: > Hi, > I'm currently using an Espruino Puck.js device. I'm programming it with a > Segger J-Link programmer. I have already experience with mynewt OS (I used > it with a Bluefruit nRF52 Feather) and now I want to use it

Re: Newt feature: run custom commands at build time

2019-10-02 Thread Christopher Collins
> I do not have a strong opinion on this, we can keep it as is, however... I > expected that these paths are relative to package root but seems like they > are relative to project root. Is this intended behavior? I did not find any > way to address script in a package other that using full path,

Re: Newt feature: run custom commands at build time

2019-09-24 Thread Christopher Collins
Hi Marko, On Tue, Sep 24, 2019 at 03:19:24PM +0300, marko kiiskila wrote: > Thanks, this is a very useful feature. > > > On 24 Sep 2019, at 3.50, Christopher Collins wrote: > > > ... > > > > A package specifies custom commands in its `pkg.yml` file. There

  1   2   >