Commit Graph

11777 Commits (mbed-os-5.5)

Author SHA1 Message Date
Azim Khan 9c11240b48 Revert greentea_getc() to return 'int' 2017-06-20 17:13:38 +01:00
Azim Khan c682fb5b74 Use existing functions for Greentea client C API 2017-06-20 17:13:37 +01:00
Azim Khan b0329aea59 Add getc in C API 2017-06-20 17:13:37 +01:00
Mohammad Azim Khan 739d5ecdff C API for greentea client 2017-06-20 17:13:37 +01:00
Vincent Coubard d4d21435f8 NRF52840: Adjust idle thread stack size.
A stack size of 256 bytes is not enough on the NRF52840, this patch
changes it to a size of 512 bytes.
2017-06-20 17:13:37 +01:00
Vincent Coubard c0374e2471 RTOS: Allow per target definition of OS_IDLE_THREAD_STACK_SIZE.
The stack required for the idle thread is highly dependent on the
target because it will call the sleep function which is target
specific.

While 256 bytes of stack is enough for most targets, others like the
NRF52840 might require more.

With this change, target maintainers can specify the idle thread stack
size in their mbed_rtx.h file.
2017-06-20 17:13:36 +01:00
Russ Butler 436d35c212 Increase background stack size to fix overflow
Bump the background stack size to 512 bytes to fix stack overflows on
the NRF52 and so it is the same size as it was before the switch to
RTX5.
2017-06-20 17:13:36 +01:00
Laurent MEUNIER 4529757b2d NUCLEO_L476RG: FLASH size of 1MB, not 2MB
MBED_APP_SIZE was erroneously defined to 2MB for this target,
while it's only 1MB.
2017-06-20 17:13:36 +01:00
Laurent MEUNIER 2d4d542e4d NUCLEO_L476RG: GCC_ARM ld file fix
Following
Merge pull request #4063 from LMESTM/17q2_L4_bootloader
the NUCLEO_L476RG binairies could not boot anymore.

The change done in #4063 was derived from work on NUCLEO_L429ZI target
which supports uvisor. The VECTORS defintiion is introduced as part of
uvisor support and requires further changes in ld file which were missing.
As uvisor is not considered yet, we remove VECTORS for now and will
introduce only when needed.
2017-06-20 17:13:36 +01:00
Christopher Haster 28d2b202c8 Added reporting of reserved heap
Note: Reporting of reserved stack is already performed by the thread
layer
2017-06-20 17:13:35 +01:00
Christopher Haster 8206b4282e fatfs: Fixed initialization of block device in mount/unmount functions
At some point the "mount" parameter for "f_mount" was name "force". This
led to a bit of confusion that ended with the default mount function
never calling block device init.

This is fine, since the block device can be manually initialized, but
a better user experience is where the filesystem initializes the block
device for the user.

This is backwards compatible due to the repeatability of the block
device init functions.
2017-06-20 17:13:35 +01:00
Laurent MEUNIER da7e882c13 STM32: Put some serial code in common between families 2017-06-20 17:13:35 +01:00
Laurent MEUNIER cc7772e2e1 STM32: serial: clear Overrun flag if it is set when checking if readable
Note that this could have side effects on the application as it would
not be aware that data has been missed. This may be later solved by
adding an error management parameter to the Serial API in mbed.

The advantage is that the serial link can work again.
2017-06-20 17:13:34 +01:00
Andreas Larsson a24a5d7fb6 Moved ODIN target files into STM32F439xI folder to avoid duplicate code 2017-06-20 17:13:34 +01:00
Jimmy Brisson 272fe78b90 Check for IAR libraries as well 2017-06-20 17:13:34 +01:00
Jimmy Brisson 253c7e99ed Improve error output of bad lib CI test 2017-06-20 17:13:33 +01:00
Jimmy Brisson 3b0ee9aa8d Simplify doxygen and libfile checks 2017-06-20 17:13:33 +01:00
Jimmy Brisson 17168835a7 Document odd bits of the travis config 2017-06-20 17:13:33 +01:00
Jimmy Brisson e4e855bc13 Add check for correct library naming to CI 2017-06-20 17:13:32 +01:00
mattot01 64d3fd464b Enable IAR and GCC_ARM compiler for CM3DS MPS2
1. Add startup code and linker script for IAR and
   GCC_ARM compilers.
2. Enable IAR and GCC_ARM compilers in targets.json.

Change-Id: I742a89ae73a4e5ede980a8af0821c3f0e5a461ef
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
2017-06-20 17:13:32 +01:00
Tamas Ban 29520eaaa4 Implement RTC(Real Time Clock) API on CM3DS target
- Modify CMSDK_CM3DS.h: add register interface
- Modify targets.json: add RTC as available device to CM3DS
- Create rtc_api.c: implement mandatory API functions

Change-Id: I14bc1074a9ac0d5e4cbada46d3c90ca82c1e28b0
Signed-off-by: Tamas Ban <Tamas.Ban@arm.com>
2017-06-20 17:13:32 +01:00
gabker01 98a04727eb Ethernet driver for MPS2
Refactor SMSC9220 Ethernet controller driver

Change-Id: I75c3c42d5675441de1292100a54c50d990070c6f
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-20 17:13:32 +01:00
gabker01 9b890198dd Implement low-level Ethernet interface for lwIP
Based on lwip_ethernetif.c skeleton file,
use init, receive and transfer
functionality of SMSC9220 Ethernet driver
for the lightweight IP stack.

Receive mechanism is interrupt driven.

HW buffer sizes:
Tx = 4608 bytes (MTU)
Rx = 10560 bytes

lwIP fine tuning:
mbed-os/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/opt.h

Change-Id: I0ea95650c65fb32cafb5c2d3dde11420c61dba66
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
2017-06-20 17:13:31 +01:00
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