Commit Graph

8682 Commits (1fa22a8fbc1198a2404cce92f6025055aab110ed)

Author SHA1 Message Date
ccli8 c4f0ce24c5 Fix PWM1 clock source setting error 2016-11-08 10:44:33 +00:00
ccli8 06b7d5df39 Rename SD_0/SD_1 SD_0_0/SD_0_1 to match real SD H/W 2016-11-08 10:44:31 +00:00
Mahadevan Mahesh dc7f0200dc Update tests to fix build failures. Also make the code similar to other tests
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:44:30 +00:00
Janne Kiiskilä f3ec6355ca Remove the variable ret due to compiler warning: Compile [ 94.6%]: trng_api.c [Warning] trng_api.c@67,9: unused variable 'ret' [-Wunused-variable]
Github issue #3183
2016-11-08 10:44:29 +00:00
Ashok Rao 15f3d3ff86 Incorporating Brian Daniel's review comments for PR 3136 2016-11-08 10:44:28 +00:00
Marcelo Salazar 9b1c73522f Folder re-org to fit new MCU K22F variances
This is a simple re-structure of the K22F folder to allow other MCU
variances to land here.
Created the MCU_K22F512 device but left the 'K22F' as a target for
the FRDM-K22F board.

Rebased to master
2016-11-08 10:44:26 +00:00
Sarah Marsh 96259cdfb6 Add boolean 'export' to examples.json.
This will determine whether the example should be exported. Additionally,
relocated export logic to examples_lib.py.
2016-11-08 10:44:24 +00:00
Sarah Marsh 21ac2431b8 Build method documentation. Removal of unused Exception classes. 2016-11-08 10:44:23 +00:00
Sarah Marsh 718d0c0185 Make ArmPackManager cache a static variable (to avoid reading index.json for each target). 2016-11-08 10:44:22 +00:00
Sarah Marsh 5e4289aef0 changing variable names and respecting requirement kwargs 2016-11-08 10:44:21 +00:00
Sarah Marsh 027f2b23cc New export-build tests.
Allows command line workflow of:
mbed import
mbed export

Also revises exporter supported target checks
2016-11-08 10:44:19 +00:00
Brian Daniels fe029510c9 Adding check to Travis for exporter support matrix 2016-11-08 10:44:18 +00:00
Brian Daniels 21307015fc Fixing project.py -S printing problem
Printing too large of a string can fail in Windows, as detailed here:
https://bugs.python.org/issue11395. This works around the problem by
adding a print_large_string function that breaks up the string into
smaller pieces before printing it.
2016-11-08 10:44:17 +00:00
Kevin Bracey 24016a1262 nsapi_dns: Provide 2 IPv6-hosted default servers
Replace Comodo and OpenDNS IPv4 servers with Google and DNS.WATCH IPv6
servers, so IPv6-only devices (eg 6LoWPAN) have a default.

3 IPv4 resolvers should be plenty - existing code doesn't remember which
one last worked, so if early list entries were unreachable performance
would be consistently bad anyway. Replacing two entries avoids
increasing image size and RAM consumption.

On an IPv6-only or IPv4-only system, the sendto() for the wrong type of
address should fail immediately - change loop to move on to the next
server for any sendto() error.
2016-11-08 10:44:15 +00:00
Kevin Bracey df07f61f58 NanostackInterface: Remove string round-trips
Older versions of SocketAddress required conversion via string - this is
no longer the case.
2016-11-08 10:44:14 +00:00
Kevin Bracey cef0a8f561 NanostackInterface: Allow binding to address
These days Nanostack does let you bind to an address - permit this.
(Remembering to check it is an IPv6 address).
2016-11-08 10:44:13 +00:00
Kevin Bracey 6582aa4e2a NanostackInterface: Check input address is IPv6
For the two calls that use the address - sendto and connect, check that it
actually is an IPv6 address.
2016-11-08 10:44:12 +00:00
Mahadevan Mahesh c1403a9b78 Add support for FRDM-K82F
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:44:10 +00:00
Jeremy Brodt 8e9e595ded Removed progen from target configuration. 2016-11-08 10:44:09 +00:00
Jeremy Brodt 9363f2bb00 Add wait for serial characters to transmit before deleting serial object. 2016-11-08 10:44:07 +00:00
Jeremy Brodt 5d9df77d6e Prevent serial activity if tx/rx pin is NC. 2016-11-08 10:44:06 +00:00
Jeremy Brodt 8d9174e9e5 Adding new Maxim Integrated target. 2016-11-08 10:44:05 +00:00
Jeremy Brodt 7f4986f4cd Adding new Maxim Integrated target. 2016-11-08 10:44:04 +00:00
Colin Hogben d484d573ab lwip: Expose principal socket limits as configuration parameters.
Allow the limits on numbers of sockets to be changed via the
configuration system.  The help texts show the RAM penalty from
increasing each value.
2016-11-08 10:44:02 +00:00
Colin Hogben 3eefc86cce lwip: Annotate with memory used by config parameters 2016-11-08 10:44:01 +00:00
Colin Hogben 9e25e1e07f lwip: Allow several configuration macros to be set externally.
Manually rebasing after the monster restructuring.
2016-11-08 10:43:59 +00:00
Andrzej Puzdrowski c268f97884 nRF52 - switch irq priorities of driver handlers to level (APP_IRQ_PRIORITY_LOWEST) 7. This is fix for bad settings inherited from nRF5 SDK. It might caused eroneus behavior when nrf_drv API were called form irq context etc. 2016-11-08 10:43:58 +00:00
Brian Daniels efa90dedf0 Allowing mbed_app.json files to be discovered for tests.
Before, mbed_app.json files were explicitly ignored when building tests.
This was mostly because you could have multiple mbed_app.json files in the
tree (for instance, in test case folders) and the behavior would be
undefined. Now the tools explicitly ensure that there aren't multiple
mbed_app.json files in your source files. So auto discovery of
mbed_app.json for testing is being reintroduced.
2016-11-08 10:43:56 +00:00
jeromecoutant f6ced8690c i2c_loop tests update for STM32 2016-11-08 10:43:54 +00:00
Sarah Marsh 8194427fcb Add a device_name to microbit entry in targets.json 2016-11-08 10:43:53 +00:00
Christopher Haster 7657db4be9 nsapi - Added better heuristic for the default record of DNS queries
Takes advantage of the get_ip_address function to predict the IP
address version wanted by the underlying interface. The should avoid
the need for most IPv6 interfaces to overload gethostbyname.

suggested by @kjbracey-arm
2016-11-08 10:43:52 +00:00
Christopher Haster 7efae2ebc9 lwip/nsapi - Cleaned up warnings in network code
- cc.h@57,1: "BYTE_ORDER" redefined
- lwip_inet_chksum.c@560,44: passing argument 1 of 'thumb2_checksum'
  discards 'const' qualifier from pointer target type
- lwip_pbuf.c@1172,9: variable 'err' set but not used
- SocketAddress.cpp@293,1: control reaches end of non-void function
2016-11-08 10:43:50 +00:00
Anna Bridge 9d7049ed94 Switch off compilation of wifi example while awaiting a fix for issue 3152 is submitted. 2016-11-08 10:43:49 +00:00
Anna Bridge dbe95cf298 Remove superfluous debugging line. 2016-11-08 10:43:48 +00:00
Anna Bridge 7801c50e42 Update ble example meta data to fix unsupported compilation combinations.
Remove URI beacon example as this is no longer required.
Add specific set of supported targets.
2016-11-08 10:43:47 +00:00
Anna Bridge 1a1c41e40d Minor review comments plus add new 'compile' option to examples json file.
Adding the new compile option allows the marking of a set of examples to
indicate whether they should be compiled or not. For the update process
examples that are not compiled will not be auto updated irrespective of
that setting.
Other changes to make return logic from some functions in update.py more
efficient and some typos in the lib file.
2016-11-08 10:43:45 +00:00
Anna Bridge 56c0a4d148 Review: Update example_lib.py to use rmtree rather than rm system call. Update examples.json to limit TLS examples to a couple of boards and only GCC_ARM and ARM compilers. 2016-11-08 10:43:44 +00:00
Anna Bridge 0665a17e91 Make update.py test compile examples prior to updating mbed-os version.
Changes:
Refactor examples.py to add a new command line option to provide an update
tag.
Refactor examples.py to add new functionality to update the version of
mbed-os in the examples to a supplied tag.
Refactor examples.py to make cloning the example repos, updating their
mbed-os version and compiling, into library functions and move to a new
library module.
Refactor the format of the examples.json file to make it compatible with
both examples.py and update.py.
Refactor update.py so that examples are test compiled prior to updating.
Refactor update.py so that only examples tagged as auto-updatable and that
fully compile are automatically updated.
2016-11-08 10:43:43 +00:00
Christopher Haster 5c97ea9254 lwip - Change k64f emac layer to drop frames on buffer exhaustion
Previously, exhausting hardware buffers would begin blocking the lwip
thread. This patch changes the emac layer to simply drop ethernet
frames, leaving recovery up to a higher level protocol.

This is consistent with the behaviour of the emac layer when unable
to allocate dynamic memory.
2016-11-08 10:43:42 +00:00
Christopher Haster 14f9518709 lwip - Fixed memory leak in k64f cyclic-buffer overflow
This was actually several bugs colluding together.

1. Confusion on the buffer-semaphore paradigm used led to misuse of the
tx semaphore and potential for odd behaviour.

2. Equality tests on tx_consume_index and tx_produce_index did not
handle overflow correctly. This would allow tx_consume_index to catch
up to tx_produce_index and trick the k64f_rx_reclaim function into
forgetting about a whole buffer of pbufs.

3. On top of all of that, the ENET_BUFFDESCRIPTOR_TX_READ_MASK was not
correctly read immediately after being set due to either a compiler
optimization or hardware delays. This caused k64f_low_level_output
to eagerly overrun existing buff-descriptors before they had been
completely sent. Adopting the counting-semaphore paradigm for 1 avoided
this concern.

As pointed out by @infinnovation, the overflow only occurs in the rare
case that the 120MHz CPU can actually generate packets faster than the
ENET hardware can transmit on a 100Mbps link.
2016-11-08 10:43:40 +00:00
Marcus Chang 4600de67cb Removed static declaration for the StorageVolumeManager in the CFStore because this componenent is shared across all users of the flash. Added define guards to the CFStore location and size so that these can be changed from the settings file. 2016-11-08 10:43:39 +00:00
Brian Daniels 25fa65c633 Adding Kinetis devices to mbed 2 tests and updating build_travis script 2016-11-08 10:43:38 +00:00
Mahadevan Mahesh e3561fa358 Add K64F, K22F and KL43Z to travis build
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:43:36 +00:00
Mahadevan Mahesh 81733d3388 FAT tests: Add support for KL43Z
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:43:35 +00:00
Mahadevan Mahesh 7cccf2edac Update USB driver for devices with Kinetis SDK support
1. Fix build issues with IAR and GCC toolchain
2. Update clock initialization code

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:43:34 +00:00
Brian Daniels 1106c36a61 Preventing test from printing before Greentea __sync
This test was causing issues on some platforms because the serial output
would get garbled and cause exceptions to occur in the testing tools. This
corrects the behavior to follow the other tests. It will now defer all
pritning until after the __sync event occurs.
2016-11-08 10:43:33 +00:00
Brian Daniels af2116981e Updating IAR definition for the NCS36510 for IAR EW v7.8 2016-11-08 10:43:31 +00:00
Martin Jäger 5a153dd3cd Fixing some typos 2016-11-08 10:43:30 +00:00
Martin Jäger 45bd8cec3a Update of can_api.c fixing #2987 2016-11-08 10:43:29 +00:00
Mika Leppänen 9e8195f436 Added support for 6lowpan PAN ID filter to mbed mesh api configuration 2016-11-08 10:43:27 +00:00