Commit Graph

11777 Commits (mbed-os-5.5)

Author SHA1 Message Date
Christopher Haster dfae18ab4a Moved network test buffers into heap
This is a workaround for IAR's lack of flexibility with memory regions.
Otherwise these tests would use very little heap and be mostly global
allocations.
2017-06-11 09:48:42 +01:00
Christopher Haster bb2d327095 lwip: Migrated to utest framework
per @bridadan
2017-06-11 09:48:42 +01:00
Christopher Haster be97cef9ed lwip: Fixed count of udp iterations to reflect attempts 2017-06-11 09:48:41 +01:00
Christopher Haster 5ad880c327 lwip: Added udp buffer flushing after dropped packets
Avoids getting stuck in loop where the device always picks
up the previous test's packets
2017-06-11 09:48:41 +01:00
Christopher Haster 5312219452 lwip: Increased DHCP timeout to 60 seconds
This matches the timeout used in linux:
https://linux.die.net/man/5/dhclient.conf

This resolves several issues noticed during testing when we
have a very large number of devices that try to get an IP address
around the same time.
2017-06-11 09:48:41 +01:00
Brian Daniels d39703bb6e Fixing some issues in the tcp/udp tests 2017-06-11 09:48:41 +01:00
Brian Daniels 50912c004e Arranging logic in test to prevent left-over behavior 2017-06-11 09:48:40 +01:00
Brian Daniels f962854054 Making udp_echo_parallel test more robust against network issues.
Making the test more forgiven for minor networking issues. Also adding
more debug prints to make it easier to see which packets are coming from
where.
2017-06-11 09:48:40 +01:00
Brian Daniels 89be202424 Making UDP test less strict on dropped/mismatched packets.
Before, the UDP test was very strict on the number of packets it would
try to match before failing. Now it will keep trying for the whole test
to get enough passing packets. It also includes the test's UUID so you
can validate which packets are being received.
2017-06-11 09:48:40 +01:00
Brian Daniels 4bc6fd4da7 Adding ability to preserve Greentea UUID in test.
The Greentea UUID can be used as a source of entropy/randomness during
the test. This is useful for uniquely identifying a test run.
2017-06-11 09:48:39 +01:00
Brian Daniels 39c898cac7 Adding failure logs to TCP echo test.
This adds some extra logs to the test for debugging purposes. Also
allows the test to fail immediately if it fails to obtain an IP address.
2017-06-11 09:48:39 +01:00
Brian Daniels d853c364d2 Allowing dtls test to retry correctly.
The dtls test already has the ability to retry upon a UDP failure.
However the sockets are currently configured to be blocking and to wait
forever. I added a timeout of 1.5 seconds in order the test to correctly
timeout.
2017-06-11 09:48:39 +01:00
Sam Grove de31126ba0 Add mbed-os-eample-cellular to release data 2017-06-11 09:48:38 +01:00
Russ Butler 1d59200f81 Fix mktime test DST error
Initialize all values of timeinfo in make_time_info. This prevents
the field 'tm_isdst' from getting inadvertently set to 1 causing
time to be off by 1 hour.
2017-06-11 09:48:38 +01:00
Russ Butler 4c6430ab1e Limit mktime test range for IAR
Do not test mktime or localtime past the year 1935 for IAR since this
is out of their supported range.
2017-06-11 09:48:38 +01:00
Aksel Skauge Mellbye 7717af9e29 Add flash API support 2017-06-11 09:48:37 +01:00
Mika Leppänen e5026ed88a Disabled lwip ethernet ipv6 multicast filter for STM boards 2017-06-11 09:48:37 +01:00
Russ Butler 20ed084161 Disable error trapping for mbed 2 builds
To maintain backwards compatibility keep error trapping turned off
for mbed 2 builds.
2017-06-11 09:48:37 +01:00
Martin Kojtal aaa316aadf tools: mbed sdk boot should be separate object file
This was probably deleted during the rebase, as mbed sdk boot needs to be
own object file due to using weak functions.
2017-06-11 09:48:37 +01:00
Martin Kojtal 4868ac6695 mbed sdk boot: default nvic implementation
Latest cmsis files provide virtual nvic implementation, therefore all nvic
set/get vectors were removed. As the result, we did not reallocate vectors
for mbed SDK. This should fix it for most of the platforms (cortex m0 and
cortex a9 need to provide own if they need it).
2017-06-11 09:48:36 +01:00
Kevin Gilbert aed4543ecd Original pull request had added these checks to a deleted file. Replicating that change to allow builds on the NRF52840_DK (see original PR #4088 to see the explanation for the removal of spi async) 2017-06-11 09:48:36 +01:00
Andrzej Puzdrowski c479a6a025 disbale SPIM which fix block device 2017-06-11 09:48:36 +01:00
Andrzej Puzdrowski 9d096176ec Rebase of 7e8cfa8076
[NRF52840]: fix SdBlockDevice capability device by disabling SPI_ASYNC mode.
2017-06-11 09:48:35 +01:00
Christopher Haster 21cd94e4ce Cleaned up extra code left over after several different rebases 2017-06-11 09:48:35 +01:00
Laurent MEUNIER f7119af2aa STM32 L4: Flash API typo 2017-06-11 09:48:35 +01:00
Laurent MEUNIER d903955760 Removing duplicate defines
Those defines are already available in STM32 L4 SDK and don't need to
be (re)defined here.
2017-06-11 09:48:34 +01:00
Laurent MEUNIER b5c3801730 Fix L432KC compilation error 2017-06-11 09:48:34 +01:00
Laurent MEUNIER d2354e2c1f Activate FLASH on STM32 L4 targets 2017-06-11 09:48:34 +01:00
Laurent MEUNIER 08b8b63f2c STM32L4 : add Flash API support 2017-06-11 09:48:33 +01:00
Aksel Skauge Mellbye 6f2cbf25ed Fix bug with SPI MISO and CS handling 2017-06-11 09:48:33 +01:00
Aksel Skauge Mellbye ca90cc1563 Add bootloader support
* Make memory sections configurable in linker files
* Dynamically determine vector location in flash for NVIC relocation
* Advertise bootloader support in targets.json
2017-06-11 09:48:33 +01:00
Jimmy Brisson 1b7af5fbb4 Correct FPU setting for Cortex-M7FD
They had floating point turned off before
2017-06-11 09:48:32 +01:00
Jimmy Brisson 68c58c32d7 Correct profile handling in GNUARMEclipse exporter 2017-06-11 09:48:32 +01:00
Jimmy Brisson 7361985c07 Upcase assembly file suffix for preprocesssing 2017-06-11 09:48:32 +01:00
Jimmy Brisson de72fd6973 Remove unsupported part from IAR 2017-06-11 09:48:31 +01:00
Jimmy Brisson 07276fb4d6 Remove incompatible post binary hook 2017-06-11 09:48:31 +01:00
Jimmy Brisson 191ea7580c Correctly name rom.a 2017-06-11 09:48:31 +01:00
Sam Grove 78e149c161 Add virtual nvic support to OC_MBUINO (LPC11U24 based) 2017-06-11 09:48:30 +01:00
Russ Butler e155d1a830 Define CMSIS_VECTAB_VIRTUAL for M0 targets
Define CMSIS_VECTAB_VIRTUAL for the M0 targets which have a
corresponding driver. The only M0 target missing this is the LPC4330_M0
which is not part of the 2 or 5 release.
2017-06-11 09:48:30 +01:00
Russ Butler d5320977ff Restore cmsis_nvic for Cortex-M0 targets
Restore cmsis_nvic (cmsis_nvic.c and cmsis_nvic.h) files for the
implementations which use a mechanism other than the VTOR to set
interrupts. These are vendor specific and were done for M0 devices
which do not have a VTOR.

Note - There were two cmsis_nvic files which did not use the VTOR that
which not restored in this patch. This is because these targets were
not M0 devices and could use the new unified implementation instead.
These files are:
targets\TARGET_ARM_SSG\TARGET_MPS2\TARGET_MPS2_M0P\device\cmsis_nvic.c
targets\TARGET_ONSEMI\TARGET_NCS36510\device\cmsis_nvic.c

Note - cmsis_nvic.c and cmsis_nvic.h were initial removed in
(and restored from) the commit:
b97ffe8fdc -
"CMSIS5: Replace target defined NVIC_Set/GetVector with CMSIS implementation"
2017-06-11 09:48:30 +01:00
Russ Butler 44bb5bec0b Change NUCLEO_L031K6 to M0+
Change the core type of the NUCLEO_L031K6 from an M0 to an M0+
so NVIC_SetVector works correctly.
2017-06-11 09:48:29 +01:00
Kevin Gilbert 87cd2059dd Placed verbatim tags around a pair of brackets that Doxygen interpreted as xml tags 2017-06-11 09:48:29 +01:00
Kevin Gilbert c024f57832 Resolved Doxygen build errors 2017-06-11 09:48:29 +01:00
Kevin Gilbert 8ba5034984 Removed bad \ref tag, but left in the tag name. Updated old param names in gpio_api.h and added new params in ticker_api.h 2017-06-11 09:48:29 +01:00
Kevin Gilbert cd0f0a5e1c Resolve Doxygen errors from RTOS. Fixed minor Doxygen bug in FileSystemHandle.h as well 2017-06-11 09:48:28 +01:00
Kevin Gilbert 1bf722ccd4 Remove RTOS from Doxygen exception list (with the exception of CMSIS/RTX directores) 2017-06-11 09:48:28 +01:00
deepikabhavnani e31cec9ebf Enabled operator API documentation in drivers 2017-06-11 09:48:28 +01:00
Deepika c07c72c124 Fix doxygen warnings in 'drivers' 2017-06-11 09:48:27 +01:00
Deepika 78d90d8bab Fix doxygen warnings in 'features/filesystem' 2017-06-11 09:48:27 +01:00
Deepika Bhavnani c6ac763d52 Resolving doxygen warnings 2017-06-11 09:48:27 +01:00