Commit Graph

8609 Commits (d484d573abe584d43f549f50f31f013028f450fc)

Author SHA1 Message Date
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
Brian Daniels 9e8f5bc564 Replacing getchar with RawSerial getc in greentea-client.
This change prevents the standard library from allocating a large buffer
on the heap. On GCC_ARM, this is a saving of 1K. On ARM, this is a saving
of 64 bytes.
2016-11-08 10:43:26 +00:00
Michel Jaouen 169e577145 INIT:GCC add call to HAL_Init system_init, stops all on going timer. gcc _start , perform zero initialized. => HAL_Init must be done again also in GCC toolchain 2016-11-08 10:43:25 +00:00
Michel Jaouen 142cdb1be8 STM32F1xx : GCC_ARM remove zero bss done at startup. Zero bss is done after the call to _start. 2016-11-08 10:43:24 +00:00
Michel Jaouen 3245ad6815 STM32F0xx: GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:22 +00:00
Michel Jaouen 0af5d103d6 STM32F0xx : GCC_ARM use a call to _start which performs zero bss, C++ init and the call to main. Remove direct call to __libc_init_array and main not needed as _start is beeing called. 2016-11-08 10:43:21 +00:00
Michel Jaouen 00c983959f STM32L0xx : GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:20 +00:00
Michel Jaouen 550afdffd7 STM32L1xx : GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:18 +00:00
Michel Jaouen b6f411e25a STM32L1xx : GCC_ARM a call to _start which performs zero bss, C++ init and the call to main. Remove direct call to __libc_init_array and main not needed as _start is beeing called. 2016-11-08 10:43:17 +00:00
Michel Jaouen 981ebbc95b STM32F7xx : GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:16 +00:00
Michel Jaouen 58fbe60ebb STM32L4xx : GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:14 +00:00
Michel Jaouen 0bd2ba6519 STM32F4xx: GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:13 +00:00
Michel Jaouen 829c053c78 STM32F3xxx : GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call _start. 2016-11-08 10:43:12 +00:00
Michel Jaouen c254e07ae7 STM32F207: GCC_ARM remove zero bss, in startup. zero bss is done in libc init after call to _start. 2016-11-08 10:43:11 +00:00
Bartek Szatkowski bd3f7282c1 Handle [NOT_SUPPORTED] exception in make.py
That let us to ignore build failures for examples on not supported
platforms.
2016-11-08 10:43:09 +00:00
pradeep-gr c07b9a011f mbed-os-tests-mbedtls-selftest issue fixed 2016-11-08 10:43:08 +00:00
pradeep-gr c968f58462 Conflict resolved 2016-11-08 10:43:07 +00:00
pradeep-gr 5b9638c394 To resolve conflict 2016-11-08 10:43:06 +00:00
pradeep-gr 5b7d40bea8 LOAD_ADDRESS added 2016-11-08 10:43:04 +00:00
Rob Meades 2a9bc597d2 Add u-blox Sara-N target. 2016-11-08 10:43:03 +00:00
Andrzej Puzdrowski 1b82e8c540 nrf5 fix - gpioe pin was uninitialzied for new mode, should been uninitailzed for mode. 2016-11-08 10:43:02 +00:00
Brian Daniels f5493913fc Making IAR exporter build test parallelized 2016-11-08 10:43:01 +00:00
Andrzej Puzdrowski 957c073edf nRF5 - added serial flow control configure API implementation 2016-11-08 10:42:59 +00:00
jeromecoutant ad115672a2 digital_loop tests update for STM32 2016-11-08 10:42:58 +00:00