Commit Graph

11304 Commits (1b7a15501c8cd5d08ccd01b408c6dedb46e5ab1c)

Author SHA1 Message Date
Tamas Kaman 87d4003edb Create CM3DS_MPS2 target
- Creates new target in targets.json
 - Creates device specific files under ARM_SSG/CM3DS_MPS2 directory
 - Driver layer files under CM3DS_MPS2 are based on Beid target
 - Device specific files under CM3DS_MPS2/device are based on CMSIS_5 and Beetle

Change-Id: I29ea7a7f42b11cf25b516cce4b9255ab828ca019
Signed-off-by: Tamas Kaman <Tamas.Kaman@arm.com>
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2017-06-20 17:13:31 +01:00
Brian Daniels b8b416eb5a Enable verbose builds when running example build tests 2017-06-20 17:13:31 +01:00
Mahadevan Mahesh 8da1eea160 Issue#4528 K82F: Move the UART clock inititialization to board specific file
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-20 17:13:31 +01:00
Jimmy Brisson 65db7d19eb Export static files from mbed export 2017-06-20 17:13:30 +01:00
Jimmy Brisson ceae03eccc Filter supported devices with a post-bin whitelist in uvision 2017-06-20 17:13:30 +01:00
Martin Kojtal 3179b1cffd Merge pull request #4568 from ARMmbed/release-candidate
Release candidate for mbed-os-5.5.0-rc3
2017-06-17 21:43:11 +02:00
adbridge 7012314862 Update MBED_LIBRARY_VERSION to v145 2017-06-15 14:58:23 +01:00
Martin Kojtal 013c6a53c0 cmsis: add core_ca9 for backward compatibility
cmsis 5 does not include it but as mbed 2 requires this, we will bring this file
back. This brings back few other dependencies, that we add only for cortex-a.

Once cortex-a gets cmsis5 and rtx2 support it will be updated.
2017-06-15 14:58:23 +01:00
Martin Kojtal c1e7aef71e ncs36510: timer.h rename
This fixes an issue as Timer.h is mbed file, thus if this file gets included first,
causes failures.
2017-06-15 14:58:23 +01:00
Martin Kojtal 7f76ad57f9 targets: micronfcboard should add macros, not overwrite 2017-06-15 14:58:23 +01:00
Russ Butler 7281d09257 Fix STM32 crashes on boot due to unset VTOR
Remove HAL_Init and related code from SystemInit and move it to
mbed_sdk_init. The function SystemInit is called early in the boot
sequence before RAM is initialized or the VTOR is setup, so it should
not be used to perform the HAL initialization.

This fixes crashes due the vector table being used before it has been
relocated.
2017-06-15 14:58:22 +01:00
Anna Bridge 162f80099d Merge pull request #4522 from ARMmbed/release-candidate
Release candidate for mbed-os-5.5.0-rc2
2017-06-13 16:24:18 +01:00
Russ Butler be54981ab4 STM32 - fix bug were sockets stop receiving data
The function _eth_arch_low_level_input() is meant to pass data into
LWIP and to prepare the ethernet buffers to receive more data.
If the LWIP heap is empty and the call to pbuf_alloc() in
_eth_arch_low_level_input returns null, the ethernet receive buffers
are not updated to receive data. Because of this the ethernet RX
interrupt will not fire. Since the RX interrupt is the only thing that
triggers a call to _eth_arch_low_level_input(), the receive buffers
will never get cleared, and the device stops receiving data.

To prevent this from happening, this patch ensures that the function
_eth_arch_low_level_input() clears the receive buffers even if a new
pbuf for the data couldn't be allocated.

This issue can be reproduce by running the test
"features-feature_lwip-tests-mbedmicro-net-udp_echo_parallel"
and on the same machine running the below python script to flood the
device with UDP broadcast packets:

MY_IP = #ADD your local IP here
from socket import *
s = socket(AF_INET, SOCK_DGRAM)
s.bind((MY_IP, 1234))
s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
for _ in range(1000):
    s.sendto("test data", ('255.255.255.255', 1234))
print("Message sent")
2017-06-13 09:42:14 +01:00
adbridge a2668e2682 Correct mbed-os patch version to 0 for rc2. 2017-06-11 09:58:24 +01:00
Yuguo Zou 34e299a9cf Resolve Realtek device small code space issue
switch on TCM section usage, this should give user code more codespace.
2017-06-11 09:48:46 +01:00
Jimmy Brisson ee5006f672 Improve error messages for bootloader build errors 2017-06-11 09:48:46 +01:00
Vincent Coubard 7675901b7b tests: Reintroduce ticker test.
This test was removed because of its memory footprint.
Most of the memory consummed by the test itself was related to the instantion of test cases in RAM.

With the introduction of case_t which allows tests cases to live in FLASH, the memory footprint has been drastically reduced (860 bytes of RAM saved) and the ticker test can be reintroduced in the code base.
2017-06-11 09:48:45 +01:00
Mahadevan Mahesh 719f5a6aa5 Flash API support using the MCUXpresso drivers
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-06-11 09:48:45 +01:00
Martin Kojtal e544ee4e28 lwip: fix stm32f4 eth conf file
This file is moved to targets that support eth. It can't be common for any F4, as
not all targets from this family support eth.
2017-06-11 09:48:45 +01:00
Brian Daniels 3a98bde1cc Fix bad print message in test 2017-06-11 09:48:44 +01:00
Brian Daniels dad8e4e61a Fixing typos in docs 2017-06-11 09:48:44 +01:00
Brian Daniels 291dc66b3e Fixing bad asserts 2017-06-11 09:48:44 +01:00
Brian Daniels 0168802b6b Adding comments for added Greentea function 2017-06-11 09:48:44 +01:00
Brian Daniels 12658f9285 Cleaning up udp tests 2017-06-11 09:48:43 +01:00
Brian Daniels 20240c043e Adding comments describing buffer prep functions 2017-06-11 09:48:43 +01:00
Brian Daniels fdeef22f14 Simplifying assert statements 2017-06-11 09:48:43 +01:00
Brian Daniels b44e7e9921 Specifying default length of UUID for Greentea
This creates a macro for the UUID length used by Greentea. This cuts
down on the use of "magic numbers" in test cases that use
the GREENTEA_SETUP_UUID function.
2017-06-11 09:48:42 +01:00
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