1. 07 Jun, 2017 14 commits
  2. 03 Jun, 2017 11 commits
  3. 02 Jun, 2017 7 commits
  4. 01 Jun, 2017 4 commits
  5. 31 May, 2017 4 commits
    • Leandro Pereira's avatar
      samples: mqtt_publisher: Try connecting a few times before giving up · 80881be1
      Leandro Pereira authored
      
      Waiting for an NET_EVENT_IF_UP before trying to connect isn't sufficient
      in some cases; for instance, on devices using the MCUX HAL, such as the
      FRDM-K64F, the interface will have the NET_IF_UP flag set even though
      the link negotiation didn't yet complete.
      
      Executing this sample on such board will produce the following output.
      Notice the "Enabled 100M..." message right after trying to connect.
      
          [dev/eth_mcux] [DBG] eth_0_init: MAC 00:04:9f:6f:91:da
          net_context_connect error Is the server (broker) up and running?
          [publisher:247] network_setup: -60 <ERROR>
      
          Bye!  [dev/eth_mcux] [INF] eth_mcux_phy_event: Enabled 100M
          full-duplex mode.
      
      Even though the returned error is ETIMEDOUT, increasing
      net_context_connect()'s timeout parameter to several seconds isn't
      sufficient; other steps performed by network_setup() after the link has
      been fully established are necessary.  As a stopgap measure, try
      connecting a few times before giving up (more than one connection
      attempt should be made by application in most cases, anyway.)
      
      It might be the case that we need events to monitor ethernet link
      (re)negotation in addition to the NET_IF_UP bit.
      
      Jira: ZEP-2036
      Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      80881be1
    • Andy Gross's avatar
      Makefile: Add dts config include file · dbdbe9b3
      Andy Gross authored
      
      This patch adds a dts config include file that is sourced during builds.
      The config file contents are key value pairs derived from the DTS board
      descriptions.
      
      Jira: ZEP-2119
      
      Change-Id: I4d50e795ba776645b56f0b83410cbb5b0a8fd4fa
      Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
      dbdbe9b3
    • Anas Nashif's avatar
      dts: generate definitions for build system · 8cc329b9
      Anas Nashif authored
      
      This will generate an additional file that can be sourced by the build
      system to expose definitions generated by device tree and used for
      flashing and debugging targets.
      
      Change-Id: I184e247f0a8dbd1a4a42dd4b02ea01f2caa70533
      Jira: ZEP-2119
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      8cc329b9
    • Anas Nashif's avatar
      dts: make extract script take options · 057fbc8c
      Anas Nashif authored
      
      Use argeparse for options and add a fixup option to add on top of
      generated file. This was previously done in the top Makefile and was
      generated defines outside of the header main if statement.
      
      Jira: ZEP-2147
      
      Change-Id: If65f34a11de27baa770d4ce0ef4fca2abbd30258
      Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
      057fbc8c