summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-02nrf52dk: Disable BSP_HAS_32768_XTALboot_image_trailerJoakim Bech
I believe with that enabled the device is clocked down or running in a low power mode. The debugger behave much worse with this enabled, so let's keep it disabled for now. Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
2016-08-29MYNEWT-374 Code does not build if BLE_LLC_FEAT_LL_PRIVACY=0William San Filippo
The code would not compile if this setting was turned off. It is now possible to set this feature to zero to reduce code and ram usage of the controller. Also fixed the comment that said this feature (privacy) was not supported by the nimble controller.
2016-08-23Merge branch 'develop' - in preparation forChristopher Collins
backwards-compatibility-breaking changes to develop. * develop: (290 commits) sim compiler - replace objsize with size Fix warnings reported by clang. MYNEWT-329 MYNEWT-354 STM32f407 discovery board BSP mbedtls; use smaller version of SHA256. boot; boot loader does not need to call os_init() anymore, as bsp_init() has been exported. boot; app does not need the dependency to mbedtls slinky; time-based waits must use OS_TICKS_PER_SEC. bootutil; adjust unit tests to work with status upkeep outside sys/config. bootutil; was returning wrong image header in response when swithing images. Add boot_set_req() routine for unit test use. boot/bootutil; remove debug console use from bootloader. bootutil/imgmgr; output of boot now shows the fallback image. imgmgr; automatically confirm image as good for now. bootutil; add 'confirm' step, telling that image was confirmed as good. Otherwise next restart we'll go back to old image. bootutil; make status element size depend on flash alignment restrictions. boot, imgmgr; return the slot number for test image. bootutil; move routines reading boot-copy-status from loader.c to bootutil_misc.c. boot; return full flash location of status bytes, instead of just offset. boot; don't use NFFS or FCB for keeping status. Interim commit. ...
2016-08-22sim compiler - replace objsize with sizeChristopher Collins
This appears to be a typo. There is no tool called objsize. size works fine. This only affects OS X. It hasn't been a problem in the past when gcc-5 was used because the invocation of gobjdump was crashing with a message like the following: 2016/08/22 17:50:54 [DEBUG] o=gobjdump(68189,0x7fff71813000) malloc: *** error for object 0x1016002a0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug When gobjdump crashed, newt ignored the error, but did not invoke the size tool. When clang is used instead of gcc, gobjdump doesn't crash, so the incorrect size path is reported as a build failure.
2016-08-22Fix warnings reported by clang.Christopher Collins
2016-08-22MYNEWT-329William San Filippo
By default, we will assume that cputime counts at a 1 MHz rate. If a different frequency is desired the user should define HAL_CPUTIME in their target, project or bsp. See the jira ticket for more information.
2016-08-22MYNEWT-354William San Filippo
This fixes the compilation error when BLE_LL_CFG_FEAT_LE_ENCRYPTION was set to 0. The issue here was that BLE_LL_CFG_FEAT_LE_PING cannot be set to 1 if encryption is not defined (set to 0). Note that LE_PING can be either defined or undefined (1 or 0) if encryption is defined.
2016-08-22This closes #96.Christopher Collins
Merge remote-tracking branch 'bgiori/newtmgr-id-bug' into develop * bgiori/newtmgr-id-bug: Fixed bug where ID was always wrong in response
2016-08-22Merge branch 'master' of ↵William San Filippo
https://github.com/SanjeewaUom/incubator-mynewt-core into develop This closes #97
2016-08-22STM32f407 discovery board BSPPradeep Sanjeewa
2016-08-19mbedtls; use smaller version of SHA256.Marko Kiiskila
2016-08-19boot; boot loader does not need to call os_init() anymore, as bsp_init()Marko Kiiskila
has been exported.
2016-08-19boot; app does not need the dependency to mbedtlsMarko Kiiskila
2016-08-19slinky; time-based waits must use OS_TICKS_PER_SEC.Marko Kiiskila
2016-08-19bootutil; adjust unit tests to work with status upkeep outside sys/config.Marko Kiiskila
2016-08-19bootutil; was returning wrong image header in response whenMarko Kiiskila
swithing images. Add boot_set_req() routine for unit test use.
2016-08-19boot/bootutil; remove debug console use from bootloader.Marko Kiiskila
2016-08-19bootutil/imgmgr; output of boot now shows the fallback image.Marko Kiiskila
2016-08-19imgmgr; automatically confirm image as good for now.Marko Kiiskila
2016-08-19bootutil; add 'confirm' step, telling that image was confirmed as good.Marko Kiiskila
Otherwise next restart we'll go back to old image.
2016-08-19bootutil; make status element size depend on flash alignment restrictions.Marko Kiiskila
2016-08-19boot, imgmgr; return the slot number for test image.Marko Kiiskila
2016-08-19bootutil; move routines reading boot-copy-status from loader.c toMarko Kiiskila
bootutil_misc.c.
2016-08-19boot; return full flash location of status bytes, instead of just offset.Marko Kiiskila
2016-08-19boot; don't use NFFS or FCB for keeping status. Interim commit.Marko Kiiskila
2016-08-19Fixed bug where ID was always wrong in responseBrian Giori
2016-08-18This closes #86.Marko Kiiskila
Merge branch 'fix/nmgr-config' of https://github.com/simonratner/incubator-mynewt-core into develop
2016-08-18This closes #81.Marko Kiiskila
Merge branch 'nffs-update' of https://github.com/peterfs/incubator-mynewt-core into develop
2016-08-18fixingNgesBrian
2016-08-18updating the code as from last commentNgesBrian
2016-08-18adding the test for os_calloutNgesBrian
2016-08-18just adding more codeNgesBrian
2016-08-18correction of commentsNgesBrian
2016-08-18corrections in the test calloutNgesBrian
2016-08-18advancement in the calloutNgesBrian
2016-08-18adding the test for os_calloutNgesBrian
2016-08-18basic os_calloutNgesBrian
2016-08-15MYNEWT-83: use a fixed buffer for reception.William San Filippo
The changes for this ticket caused the code to ack a packet at the link layer even though it was not handed to the host. This is an error; the link layer should only ack data packets that were handed to the host.
2016-08-15boot_serial; regression test on linux was failing to build.Marko Kiiskila
Reported by Nges.
2016-08-12BLE apps - Handle GAP MTU event.Christopher Collins
2016-08-12BLE Host - Only log ATT cmd after tx succeeds.Christopher Collins
Before, we were logging each ATT transmission as soon as a higher layer requested the send. Now: * For client requests, don't log until after transmit succeeds. * For server responses, don't log until we are sure we will attempt a transmission. Unfortunately, due to the way the server code is structures, we don't have the necessary information for logging after the transmit occurs. This is still an improvement, as it prevents spurious logging when there are invalid arguments or insufficient resources.
2016-08-12BLE Host - Report updated MTU via GAP event cb.Christopher Collins
Before this commit, MTU changes were only reported when we initiated the exchange via a GATT procedure. If the peer initiated the exchange, the application never learned of an MTU update. Now all MTU changes are reported through the GAP event callback. The callback passed to ble_gattc_exchange_mtu() is not very useful anymore. Its only real purpose is to inform the user if the peer failed to respond to the MTU request, which causes the connection to be terminated anyway. Relevant additions to the API: #define BLE_GAP_EVENT_MTU 15 struct ble_gap_event { /* [...] */ /** * Represents a change in an L2CAP channel's MTU. * * Valid for the following event types: * o BLE_GAP_EVENT_MTU */ struct { /** The handle of the relevant connection. */ uint16_t conn_handle; /** * Indicates the channel whose MTU has been updated; either * BLE_L2CAP_CID_ATT or the ID of a connection-oriented * channel. */ uint16_t channel_id; /* The channel's new MTU. */ uint16_t value; } mtu; };
2016-08-12BLE Host - Don't allow >1 tx MTU request per conn.Christopher Collins
2016-08-12BLE Host - Update conns' pref. MTUChristopher Collins
Prior to this commit, setting the preferred MTU only affected future connections. Now, an existing connection is updated if we haven't transmitted our preferred MTU over it yet.
2016-08-12BLE Host - Function to retrieve preferred ATT MTU.Christopher Collins
uint16_t ble_att_preferred_mtu(void);
2016-08-12bletiny - parse_arg_uint32_dflt()Christopher Collins
2016-08-11Use new acl data tx routineWilliam San Filippo
2016-08-11MYNEWT-358: nrf51 cannot connect to directed advertisers w/privacyWilliam San Filippo
In order to fix this issue I have added the local RPA to the resolving list and modified the code so that the RPA timer is a true LL timer that will be used to regenerate local RPAs at the specified timeout. This allows the local RPA to be generated early and not during an IFS interval
2016-08-11Fix incorrect handling of multiple connections and starting encrypted links ↵William San Filippo
with all of them
2016-08-11Fix incorrect handling of multiple connections and starting encrypted links ↵William San Filippo
with all of them