Commit Graph

8756 Commits (1c2a7d8842696a4c772ceb1437e08b8adb0689c8)

Author SHA1 Message Date
Martin Jäger eb95c14fa6 Fixing some typos 2016-10-30 16:49:49 +01:00
Christopher Haster 8b7c051d03 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-10-28 15:22:08 -05:00
Christopher Haster 42105371ef 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-10-28 14:24:52 -05:00
Mahadevan Mahesh 6750f488ed Add K64F, K22F and KL43Z to travis build
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-28 12:12:35 -05:00
Mahadevan Mahesh ef56b3d712 FAT tests: Add support for KL43Z
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-28 12:12:26 -05:00
Mahadevan Mahesh 046f3cdb26 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-10-28 11:47:20 -05:00
Christopher Haster d8d2b0a41d 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-10-28 11:41:33 -05:00
Anna Bridge 479e203dce Switch off compilation of wifi example while awaiting a fix for
issue 3152 is submitted.
2016-10-28 16:10:41 +01:00
Anna Bridge c60b19e27c Remove superfluous debugging line. 2016-10-28 15:20:36 +01:00
Martin Kojtal c9f9ffa583 Merge pull request #3140 from bridadan/remove_getchar_greentea_client
[tests] Replacing getchar with RawSerial getc in greentea-client
2016-10-28 15:34:13 +02:00
Mika Leppänen fae713e4d1 Added support for 6lowpan PAN ID filter to mbed mesh api configuration 2016-10-28 13:28:11 +03:00
Martin Kojtal 4a4d09f6d1 Merge pull request #3074 from jamike/TARGET_STM_INIT_GCC_ALIGNEMENT
Target STM - init gcc alignement
2016-10-28 11:04:50 +02:00
Martin Kojtal 51fc2ce4a5 Merge pull request #3139 from bulislaw/arduino_ff
Handle [NOT_SUPPORTED] exception in make.py
2016-10-28 10:15:19 +02:00
Martin Kojtal 6eac2b008a Merge pull request #3009 from pradeep-gr/master
TRNG enabled. TRNG APIs implemented. REV A/B/C/D flags removed. Warnings removed
2016-10-28 10:13:50 +02:00
Mahadevan Mahesh 1ac09d3a19 Add support for FRDM-K82F
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-27 11:27:24 -05:00
Marcus Chang 8876b7ef38 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-10-27 10:26:28 +01:00
Martin Kojtal f33088b7e4 Merge pull request #3142 from 0xc0170/fix_nuvoton_mbed2_removal
Targets- NUMAKER_PFM_NUC47216 remove mbed 2
2016-10-27 11:23:41 +02:00
Martin Kojtal bd4eca325b Merge pull request #3024 from jeromecoutant/PR_analog_loop
analog_loop tests update for STM32
2016-10-27 11:02:10 +02:00
Bartek Szatkowski aa3a127c76 Handle [NOT_SUPPORTED] exception in make.py
That let us to ignore build failures for examples on not supported
platforms.
2016-10-27 09:45:55 +01:00
Michel Jaouen 4a69072161 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-10-27 10:40:28 +02:00
Michel Jaouen b225a5ca97 STM32F1xx : GCC_ARM remove zero bss done at startup.
Zero bss is done after the call to _start.
2016-10-27 10:40:17 +02:00
Michel Jaouen 702f64a6f2 STM32F0xx: GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
2016-10-27 10:40:02 +02:00
Michel Jaouen 9f20c4641d 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-10-27 10:39:02 +02:00
Michel Jaouen af090e3e6e STM32L0xx : GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
2016-10-27 10:38:56 +02:00
Michel Jaouen 479a1a2715 STM32L1xx : GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
2016-10-27 10:38:52 +02:00
Michel Jaouen f3b1c0a0c8 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-10-27 10:38:35 +02:00
0xc0170 8c4e6a42aa Targets- NUMAKER_PFM_NUC47216 remove mbed 2
crypto failures due to mbedtls dependency
2016-10-27 10:36:28 +02:00
Martin Kojtal ba47aa546b Merge pull request #2897 from geky/nsapi-consistent-unspec
nsapi - Standardize support of NSAPI_UNSPEC
2016-10-27 10:26:00 +02:00
Martin Kojtal da377aa5d8 Merge pull request #3121 from monkiineko/master
STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH
2016-10-27 10:12:13 +02:00
Martin Kojtal b826d1bb1a Merge pull request #3022 from hasnainvirk/ncs36510_fixes
OnSemi RAM usage fix
2016-10-27 10:04:31 +02:00
Martin Kojtal c9c6428598 Merge pull request #3122 from SiliconLabs/SiliconLabs-cleanup-rebase
[Silicon Labs] Update of Silicon Labs HAL
2016-10-27 09:56:16 +02:00
Brian Daniels 7a8946ff24 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-10-26 16:55:54 -05:00
Anna Bridge a5d3d2056b 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-10-26 16:24:42 +01:00
Martin Kojtal 4198222c54 Merge pull request #3005 from c1728p9/build_profiles
New build profile and docs
2016-10-26 15:16:01 +02:00
Martin Kojtal a7a53b7b6c Merge pull request #3046 from mmorenobarm/master
[BEETLE] Update BLE stack on Beetle board
2016-10-26 15:08:55 +02:00
Martin Kojtal 53cd23e285 Merge pull request #3097 from theotherjimmy/pack-manager-urllib2
Arm-Pack-Manager Remove pycurl dependency
2016-10-26 14:48:05 +02:00
Martin Kojtal 8c2f874b40 Merge pull request #3093 from BrunoMPires/master
[SDFileSystem] Enable / Disable serial debug.
2016-10-26 14:46:30 +02:00
Michel Jaouen a711ff360b STM32F7xx : GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
2016-10-26 14:42:47 +02:00
Michel Jaouen 93a0b9ce60 STM32L4xx : GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
2016-10-26 14:42:24 +02:00
Michel Jaouen ee22d0a054 STM32F4xx: GCC_ARM remove zero bss, in startup.
zero bss is done in libc init after call to _start.
2016-10-26 14:41:45 +02:00
Martin Kojtal 69a7481f26 Merge pull request #3085 from jeromecoutant/PR_LP_F303ZE
Add LOWPOWERTIMER capability for NUCLEO_F303ZE
2016-10-26 13:55:57 +02:00
Martin Kojtal 7499177a5b Merge pull request #3076 from bcostm/fix_issue-2910_nucleo-f103rb
STM32F1: Correct timer master value reading
2016-10-26 13:55:29 +02:00
pradeep-gr bb824c6f91 mbed-os-tests-mbedtls-selftest issue fixed 2016-10-26 16:49:29 +05:30
Martin Kojtal 5c89e1f07a Merge pull request #3108 from pan-/nrf52_sleep_clean_fpu_irq
Fix sleep function for NRF52.
2016-10-26 12:51:49 +02:00
pradeep-gr 99bd584070 Conflict resolved 2016-10-26 15:07:52 +05:30
pradeep-gr 4e4823053a To resolve conflict 2016-10-26 15:00:19 +05:30
Marcelo Salazar 739ff674fc 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-10-26 10:29:15 +01:00
pradeep-gr b6e06bd04b LOAD_ADDRESS added 2016-10-26 14:43:21 +05:30
Steven Cooreman 8b36d9c55f [EFM32] Workaround for SDK5.0.0 and USB
Aliased a few macros that changed name from SDK4.x to SDK5.x. in order to make the USB library play nice with SDK5.0.0
2016-10-25 12:05:07 -07:00
Christopher Haster 2fd15f4f44 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-10-25 13:22:17 -05:00