[GitHub] kartik9k closed issue #1134: Need help in connecting ADC

2018-06-12 Thread GitBox
kartik9k closed issue #1134: Need help in connecting ADC URL: https://github.com/apache/mynewt-core/issues/1134 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use

[GitHub] kartik9k opened a new issue #1185: Need help in connect Analog Sensor in Redbear Nano 2

2018-06-12 Thread GitBox
kartik9k opened a new issue #1185: Need help in connect Analog Sensor in Redbear Nano 2 URL: https://github.com/apache/mynewt-core/issues/1185 Hey everyone! I wanted to connect an analog sensor in my BLE Redbear Nano 2 module. The documentation provide an example of how to connect an analo

[GitHub] andrzej-kaczmarek commented on a change in pull request #1149: sys/log: Add log storage usage tracking and watermarking

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on a change in pull request #1149: sys/log: Add log storage usage tracking and watermarking URL: https://github.com/apache/mynewt-core/pull/1149#discussion_r194833582 ## File path: sys/log/full/src/log_fcb.c ## @@ -235,6 +253,126 @@ log_fcb_flus

[GitHub] andrzej-kaczmarek opened a new pull request #1186: kernel/os: Fix APIs to use os_time_t for ticks arguments

2018-06-12 Thread GitBox
andrzej-kaczmarek opened a new pull request #1186: kernel/os: Fix APIs to use os_time_t for ticks arguments URL: https://github.com/apache/mynewt-core/pull/1186 This patch changes callout, mutex, sem and time APIs to use os_time_t consistently in all APIs that take or return ticks as arg

[GitHub] andrzej-kaczmarek commented on issue #1186: kernel/os: Fix APIs to use os_time_t for ticks arguments

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on issue #1186: kernel/os: Fix APIs to use os_time_t for ticks arguments URL: https://github.com/apache/mynewt-core/pull/1186#issuecomment-396695370 Note that argument in `os_time_delay` was `int32_t` and defined as _<=0_ for on timeout_. I changed this to `os_t

[GitHub] andrzej-kaczmarek commented on issue #1093: timeout/tick / int32_t vs uint32_t

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on issue #1093: timeout/tick / int32_t vs uint32_t URL: https://github.com/apache/mynewt-core/issues/1093#issuecomment-396695538 I've just pushed a PR which changes all ticks arguments and return values to `os_time_t` -> https://github.com/apache/mynewt-core/pull

[GitHub] kartik9k opened a new issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k opened a new issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187 Hey all! I'm trying to write analog sensor data from my central module to my peripheral module (the setup is so due to some architecture th

[GitHub] kartik9k closed issue #1185: Need help in connect Analog Sensor in Redbear Nano 2

2018-06-12 Thread GitBox
kartik9k closed issue #1185: Need help in connect Analog Sensor in Redbear Nano 2 URL: https://github.com/apache/mynewt-core/issues/1185 This is an automated message from the Apache Git Service. To respond to the message, pl

[GitHub] ccollins476ad commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396702521 That code looks good to me. Do you know the reason for the disconnect? The gap event callback should indicate

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396703965 Thanks for your prompt reply. The code, however, never reaches the Disconnect callback in the gap event callback! -

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396709749 @ccollins476ad sorry for annoying you. But any insights would be really appreciated! I'm stuck here since quite some

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396709749 @ccollins476ad sorry for annoying you. But any insights would be really appreciated! I'm stuck here since quite some

[GitHub] andrzej-kaczmarek commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396717915 if it does not reach disconnect callback then it probably crashed - you can connect debugger and check what

svn commit: r27410 - /dev/mynewt/apache-mynewt-1.4.0/rc1/ /release/mynewt/apache-mynewt-1.4.0/ /release/mynewt/apache-nimble-1.0.0/

2018-06-12 Thread janc
Author: janc Date: Tue Jun 12 20:16:52 2018 New Revision: 27410 Log: Apache Mynewt 1.4.0 release Apache NimBLE 1.0.0 release Added: release/mynewt/apache-mynewt-1.4.0/ release/mynewt/apache-mynewt-1.4.0/apache-mynewt-blinky-1.4.0.tgz - copied unchanged from r27409, dev/mynewt/apach

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396719736 Here's the BT log. Couldn't make sense out of it, myself. ``` #0 0xb1a8 in os_time_delay (osticks=osticks@

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396720486 Also, I did not understand the second part of your comment.

[GitHub] andrzej-kaczmarek commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396722270 there is log message printed to console from NimBLE code which causes a deadlock since `ble_gattc_write_fla

[GitHub] ccollins476ad commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396723927 From the stack trace, it appears Andrzej's suspicions were correct: the problem is that you are calling into th

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396728694 Are you suggesting that we should add an event to the default event list in the ADC interrupt? The pseudocode

[GitHub] utzig opened a new pull request #1188: Fix Nucleo-F413ZH BSP

2018-06-12 Thread GitBox
utzig opened a new pull request #1188: Fix Nucleo-F413ZH BSP URL: https://github.com/apache/mynewt-core/pull/1188 This fixes BSP "partition" sizes, linker scripts and adds correct startup file for stm32f413. This is an automa

[GitHub] ccollins476ad commented on issue #1173: Awkward log API requires padded buffer

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1173: Awkward log API requires padded buffer URL: https://github.com/apache/mynewt-core/issues/1173#issuecomment-396735662 Thanks for the correction, Marko. That makes sense. I propose the following changes: 1. Modify the log entry header such tha

[GitHub] ccollins476ad commented on issue #1173: Awkward log API requires padded buffer

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1173: Awkward log API requires padded buffer URL: https://github.com/apache/mynewt-core/issues/1173#issuecomment-396735662 Thanks for the correction, Marko. That makes sense. I propose the following changes: 1. Modify the log entry header such tha

[GitHub] ccollins476ad commented on issue #1173: Awkward log API requires padded buffer

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1173: Awkward log API requires padded buffer URL: https://github.com/apache/mynewt-core/issues/1173#issuecomment-396735662 Thanks for the correction, Marko. That makes sense. I propose the following changes: 1. Modify the log entry header such tha

[GitHub] ccollins476ad commented on issue #1173: Awkward log API requires padded buffer

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1173: Awkward log API requires padded buffer URL: https://github.com/apache/mynewt-core/issues/1173#issuecomment-396735662 Thanks for the correction, Marko. That makes sense. I propose the following changes: 1. Modify the log entry header such tha

[GitHub] andrzej-kaczmarek opened a new pull request #1189: [RFC] kernel/os: Add os_timer API

2018-06-12 Thread GitBox
andrzej-kaczmarek opened a new pull request #1189: [RFC] kernel/os: Add os_timer API URL: https://github.com/apache/mynewt-core/pull/1189 This adds new `os_timer` API which is a timer that can be scheduled using clock time (i.e. `os_timeval`). This is not yet tested but I would like to get

[GitHub] andrzej-kaczmarek commented on issue #1189: [RFC] kernel/os: Add os_timer API

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on issue #1189: [RFC] kernel/os: Add os_timer API URL: https://github.com/apache/mynewt-core/pull/1189#issuecomment-396749375 @ccollins476ad @wes3 @mkiiskila @sjanc @rymanluk This is an automated m

[GitHub] ccollins476ad commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396750027 Yes, you got it. Call `os_eventq_put()` from within the ADC interrupt handler. --

[GitHub] kartik9k closed issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k closed issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187 This is an automated message from the Apache Git Service. To respond to the mes

[GitHub] kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module

2018-06-12 Thread GitBox
kartik9k commented on issue #1187: Disconnecting while writing analog value from Central Module URL: https://github.com/apache/mynewt-core/issues/1187#issuecomment-396750262 Thank you guys! It's working now! Keep up the amazing work. -

[GitHub] andrzej-kaczmarek commented on issue #1186: kernel/os: Fix APIs to use os_time_t for ticks arguments

2018-06-12 Thread GitBox
andrzej-kaczmarek commented on issue #1186: kernel/os: Fix APIs to use os_time_t for ticks arguments URL: https://github.com/apache/mynewt-core/pull/1186#issuecomment-396695370 Note that argument in `os_time_delay` was `int32_t` and defined as _<=0 for no timeout_. I changed this to `os_ti

[GitHub] utzig opened a new pull request #1190: Add Nucleo-F746ZG BSP

2018-06-12 Thread GitBox
utzig opened a new pull request #1190: Add Nucleo-F746ZG BSP URL: https://github.com/apache/mynewt-core/pull/1190 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and u

[GitHub] utzig opened a new pull request #1191: Fix debug builds on Cortex-M7

2018-06-12 Thread GitBox
utzig opened a new pull request #1191: Fix debug builds on Cortex-M7 URL: https://github.com/apache/mynewt-core/pull/1191 Debug builds were omitting the frame pointer in Cortex-M7 which broke the usage of `__set_MSP` since CMSIS was upgraded to 5.x.

[GitHub] kasjer commented on issue #1190: Add Nucleo-F746ZG BSP

2018-06-12 Thread GitBox
kasjer commented on issue #1190: Add Nucleo-F746ZG BSP URL: https://github.com/apache/mynewt-core/pull/1190#issuecomment-396771921 LGTM This is an automated message from the Apache Git Service. To respond to the message, pleas

[GitHub] utzig closed pull request #1191: Fix debug builds on Cortex-M7

2018-06-12 Thread GitBox
utzig closed pull request #1191: Fix debug builds on Cortex-M7 URL: https://github.com/apache/mynewt-core/pull/1191 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request

[mynewt-core] branch master updated: Fix nucleo-f413zh BSP

2018-06-12 Thread utzig
This is an automated email from the ASF dual-hosted git repository. utzig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git The following commit(s) were added to refs/heads/master by this push: new 1df69ab Fix nucleo-f413zh BSP 1df69ab is de

[GitHub] utzig closed pull request #1188: Fix Nucleo-F413ZH BSP

2018-06-12 Thread GitBox
utzig closed pull request #1188: Fix Nucleo-F413ZH BSP URL: https://github.com/apache/mynewt-core/pull/1188 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a

[GitHub] utzig closed pull request #1190: Add Nucleo-F746ZG BSP

2018-06-12 Thread GitBox
utzig closed pull request #1190: Add Nucleo-F746ZG BSP URL: https://github.com/apache/mynewt-core/pull/1190 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a

[mynewt-core] branch master updated: Add Nucleo-F746ZG BSP

2018-06-12 Thread utzig
This is an automated email from the ASF dual-hosted git repository. utzig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git The following commit(s) were added to refs/heads/master by this push: new dd3e785 Add Nucleo-F746ZG BSP dd3e785 is de

[GitHub] ccollins476ad commented on issue #1173: Awkward log API requires padded buffer

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1173: Awkward log API requires padded buffer URL: https://github.com/apache/mynewt-core/issues/1173#issuecomment-396791926 Looking into this a bit more, I discovered a few things: 1. The `log_append_mbuf` and `log_append_mbuf_typed` functions assume a

[GitHub] ccollins476ad commented on issue #1173: Awkward log API requires padded buffer

2018-06-12 Thread GitBox
ccollins476ad commented on issue #1173: Awkward log API requires padded buffer URL: https://github.com/apache/mynewt-core/issues/1173#issuecomment-396791926 Looking into this a bit more, I discovered a few things: 1. The `log_append_mbuf` and `log_append_mbuf_typed` functions assume a

[GitHub] jacobrosenthal opened a new issue #1192: nrf52840pdk split image doesnt successfully write second image

2018-06-12 Thread GitBox
jacobrosenthal opened a new issue #1192: nrf52840pdk split image doesnt successfully write second image URL: https://github.com/apache/mynewt-core/issues/1192 Has anyone run a split on an nrf52840pdk lately? Neither of my boards are showing the second image Current upstream newt tool,

[GitHub] jacobrosenthal opened a new pull request #1193: nrf52840pdk: fix incorrect jtag configuration

2018-06-12 Thread GitBox
jacobrosenthal opened a new pull request #1193: nrf52840pdk: fix incorrect jtag configuration URL: https://github.com/apache/mynewt-core/pull/1193 resulting in inability to program last half of flash. Closes #1192 This is an

[GitHub] jacobrosenthal commented on issue #1193: nrf52840pdk: fix incorrect jtag configuration

2018-06-12 Thread GitBox
jacobrosenthal commented on issue #1193: nrf52840pdk: fix incorrect jtag configuration URL: https://github.com/apache/mynewt-core/pull/1193#issuecomment-396819733 Thanks @andrzej-kaczmarek for the solution. This is an automat