Commit Graph

12750 Commits (mbed-os-5.6)

Author SHA1 Message Date
Mika Leppänen 7170882077 Mapped lwip buffer error to nsapi no memory error 2017-10-06 14:12:46 +01:00
Kevin Gilbert 908e134912 Adjust whitespace in Odin PinNames file to fit verbose LED pin mappings 2017-10-06 14:12:46 +01:00
Maciej Bocianski 617341a797 Extends test set for Ticker class 2017-10-06 14:12:46 +01:00
Przemyslaw Stekiel 141fb38184 Enable deepsleep for low power Ticker and low power Timer.
Fix for issue #5076.
2017-10-06 14:12:46 +01:00
Kevin Bracey b51c369846 UARTSerial: Avoid readable() ambiguity
UARTSerial inherits both FileHandle::readable() [public] and
SerialBase::readable() [private], so calling readable() on a UARTSerial
object produces an ambiguous member error.

Add using declarations to direct towards the FileHandle versions of
readable and writable.

There's currently no ambiguity for writable, as SerialBase uses the
spelling 'writeable', but add a using directive for that anyway, in case
SerialBase gains 'writable' later.
2017-10-06 14:12:46 +01:00
Sarah Marsh 47372eeaec update domain name to os.mbed.com 2017-10-06 14:12:46 +01:00
Sarah Marsh e23567ece5 Turn off Odin testing by default 2017-10-06 14:12:45 +01:00
Sarah Marsh 36274a0307 Add new Odin configuraiton to remove emac device_has 2017-10-06 14:12:45 +01:00
Sarah Marsh fddd81f96d Use ethernet as default test configuration for Odin netsocket tests 2017-10-06 14:12:45 +01:00
Sarah Marsh 135061c051 Add copyright headers and use mbed error to skip tests without network config files 2017-10-06 14:12:45 +01:00
Sarah Marsh 4da41d7fb8 Remove LWIP tests 2017-10-06 14:12:45 +01:00
Sarah Marsh 174ed07013 Move test config keys out of targets.json
Change TestConfig class methods to module methods
2017-10-06 14:12:45 +01:00
Sarah Marsh 22138f31ee Add ETHERNET and ODIN_WIFI to odin device has. Add odin WiFi test configuration 2017-10-06 14:12:45 +01:00
Sarah Marsh c4d0357646 Use default mbed-os test configuration if no app_config is supplied 2017-10-06 14:12:45 +01:00
Sarah Marsh 47f02e7972 Use only one flag for test configuration file
Tools will figure out if user passed in a custom path (to indicate configration file for module) or whether they used a keyword (to indicate they'd like to use an mbed OS configuration)
2017-10-06 14:12:45 +01:00
Sarah Marsh 67589d53f3 Add option to add a configuration file for modules 2017-10-06 14:12:45 +01:00
Sarah Marsh d7e380e4db Allow tools to use networkinterface configs in tests 2017-10-06 14:12:45 +01:00
Sarah Marsh d7080f49d4 Add netsocket tests 2017-10-06 14:12:45 +01:00
Jimmy Brisson d3d27a9631 Exclude libraries and tests from coverage numbers 2017-10-06 14:12:45 +01:00
Przemyslaw Stekiel 77bc5c80f5 Move clock() function from mbed_rtc_time.cpp to mbed_retarget.cpp. 2017-10-06 14:12:45 +01:00
Martin Kojtal cfe6497080 InterruptIn: callback to NULL clean-up
As we can check if callback was attached, we use NULL assigment.
2017-10-06 14:12:45 +01:00
mbedNoobNinja 26c552d1d0 CAN Extended mode fix 2017-10-06 14:12:45 +01:00
Maciej Bocianski da84e114c0 Ticker class description update - small interval warning 2017-10-06 14:12:45 +01:00
Akos Kiss 2fd13bffca Add flush to the BLE UART Service
If only buffer-full events and LF characters trigger the flush of
the send buffer then only line-based communication can be
implemented over the BLE UART Service. This patch extends the
service API by adding an explicit `flush` method to force sending
the buffer contents, thus enabling protocols with short (e.g.,
single character) messages.
2017-10-06 14:12:44 +01:00
Christopher Haster 93d78c6218 fs: Fix dir open during failure condition
Should leave the Dir in an openable state, currently does not
since it thinks it's in use by the fs it failed to open on.
2017-10-06 14:12:44 +01:00
jeromecoutant 27e5586b32 STM32L432KC: increase RAM size from 48k to 64k
WARNING: you have to update ST-Link FW to V2J29M18
http://www.st.com/en/development-tools/stsw-link007.html
2017-10-06 14:12:44 +01:00
Laurent MEUNIER f598165485 STM32: Lock / Unlock flash for each operation
Rather than Unlocking flash during flash object creation, and leaving
the flash possibly continuously unlocked a(s object might bever be freed),
we decide to Unlock then Lock again at each erase or program call.
2017-10-06 14:12:44 +01:00
Christopher Haster af22fd3147 cb: Fixed uninitialized memory used for equality check
Fixed by zeroing the memory. A more "c++ correct" approach
may be to add an additional op for equality, and use the "=="
operator on the F type in the generate function. But this adds
the requirement that F supports equality.
2017-10-06 14:12:44 +01:00
Martin Kojtal a659094f01 PWMOut: lock deesleep addition
As PWMOut in most cases depend on high speed freq clock, it should lock deepsleep while active.
2017-10-06 14:12:44 +01:00
Russ Butler 411724b72f Release deep sleep lock in destructor of Timer class
Release the deep sleep lock when running instances of the Timer class
are deleted. This ensures that deep sleep locks are properly released
by the Timer class.
2017-10-06 14:12:44 +01:00
Martin Kojtal a023d69ab6 mts targets: fix debug() usage
Instead of using #if NDEBUG, we can directly invoke debug() function. Fixes #5013
2017-10-06 14:12:44 +01:00
Rob Meades 8eff369901 Fix cellular APN_db.h lookup. 2017-10-06 14:12:44 +01:00
Mahadevan Mahesh d4a81f52b1 K66F: Use DSPI SDK driver API's in spi block read
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-06 14:12:44 +01:00
Mahadevan Mahesh 2efa469d0b K66F: Update to SDK 2.2
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-06 14:12:44 +01:00
bcostm d9d6f593c0 STM32 USBDevice: Add DISCO_F407VG target 2017-10-06 14:12:44 +01:00
bcostm d90994da2e STM32 USBDevice: Add NUCLEO_F446RE target 2017-10-06 14:12:44 +01:00
bcostm 0d16d78da4 STM32 USBDevice: Add USB_STM_HAL macro for disco-f469ni 2017-10-06 14:12:44 +01:00
bcostm 88be03a931 STM32 USBDevice: Remove disco-f429zi, clean-up nucleo-f103rb 2017-10-06 14:12:44 +01:00
bcostm 8ba8a0c830 STM32 USBDevice: add more supported targets 2017-10-06 14:12:44 +01:00
bcostm 1e2b2a9dc4 STM32 USBDevice: refactor files 2017-10-06 14:12:44 +01:00
Jimmy Brisson 4f7ea717ff Check for mbed 5 support on export 2017-10-06 14:12:44 +01:00
Russ Butler 12861a330d Fix LPC54114 vector table size
Correct the vector table size on the LPC54114. This fixes crashes
seen on boot when building with GCC.
2017-10-06 14:12:44 +01:00
Vincent Coubard c6d9f2b4dc Platform: Replace non throwing versions of new operator.
This change prevents inclusion of non throwing versions of the new operator from
the compiler standard library. On GCC, the non throwing version bring with it
some portion of the exception support code.
2017-10-06 14:12:44 +01:00
0x6d61726b 4b9f859deb Build with external tool fails: missing includes
When building with VisualGDB the compilation fails due to the lack of required include files Dir.h and File.h.
Compiler report:

1>------ Build started: Project: exported-mbed-STM32F429-nucleo, Configuration: Debug VisualGDB ------
1>  FileSystem.cpp
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'class Managed<mbed::File>':
1>  mbed-os\features\filesystem\FileSystem.cpp(141,19): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(130,7): error :  invalid use of incomplete type 'class mbed::File'
1>   class Managed : public F {
1>         ^~~~~~~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  forward declaration of 'class mbed::File'
1>   class File;
1>         ^~~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::FileHandle**, const char*, int)':
1>mbed-os\features\filesystem\FileSystem.cpp(141,19): error :  cannot convert 'Managed<mbed::File>*' to 'mbed::File*' in initialization
1>       File *f = new Managed<File>;
1>                     ^~~~~~~~~~~~~
1>mbed-os\features\filesystem\FileSystem.cpp(142,16): error :  invalid use of incomplete type 'class mbed::File'
1>       int err = f->open(this, path, flags);
1>                  ^~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  forward declaration of 'class mbed::File'
1>   class File;
1>         ^~~~
1>mbed-os\features\filesystem\FileSystem.cpp(144,16): warning :  possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
1>           delete f;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(141,11): warning :  'f' has incomplete type
1>       File *f = new Managed<File>;
1>             ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  forward declaration of 'class mbed::File'
1>   class File;
1>         ^~~~
1>  mbed-os\features\filesystem\FileSystem.cpp(144,16): note :  neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
1>           delete f;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(148,13): error :  cannot convert 'mbed::File*' to 'mbed::FileHandle*' in assignment
1>       *file = f;
1>               ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(39,7): note :  class type 'mbed::File' is incomplete
1>   class File;
1>         ^~~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'class Managed<mbed::Dir>':
1>  mbed-os\features\filesystem\FileSystem.cpp(153,18): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(130,7): error :  invalid use of incomplete type 'class mbed::Dir'
1>   class Managed : public F {
1>         ^~~~~~~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  forward declaration of 'class mbed::Dir'
1>   class Dir;
1>         ^~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In member function 'virtual int mbed::FileSystem::open(mbed::DirHandle**, const char*)':
1>mbed-os\features\filesystem\FileSystem.cpp(153,18): error :  cannot convert 'Managed<mbed::Dir>*' to 'mbed::Dir*' in initialization
1>       Dir *d = new Managed<Dir>;
1>                    ^~~~~~~~~~~~
1>mbed-os\features\filesystem\FileSystem.cpp(154,16): error :  invalid use of incomplete type 'class mbed::Dir'
1>       int err = d->open(this, path);
1>                  ^~
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  forward declaration of 'class mbed::Dir'
1>   class Dir;
1>         ^~~
1>mbed-os\features\filesystem\FileSystem.cpp(156,16): warning :  possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
1>           delete d;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(153,10): warning :  'd' has incomplete type
1>       Dir *d = new Managed<Dir>;
1>            ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  forward declaration of 'class mbed::Dir'
1>   class Dir;
1>         ^~~
1>  mbed-os\features\filesystem\FileSystem.cpp(156,16): note :  neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
1>           delete d;
1>                  ^
1>mbed-os\features\filesystem\FileSystem.cpp(160,12): error :  cannot convert 'mbed::Dir*' to 'mbed::DirHandle*' in assignment
1>       *dir = d;
1>              ^
1>  mbed-os\features\filesystem\FileSystem.cpp(18):
1>  mbed-os\features\filesystem\FileSystem.h(38,7): note :  class type 'mbed::Dir' is incomplete
1>   class Dir;
1>         ^~~
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'int Managed<F>::close() [with F = mbed::Dir]':
1>  mbed-os\features\filesystem\FileSystem.cpp(162,1): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(133,27): error :  incomplete type 'mbed::Dir' used in nested name specifier
1>           int err = F::close();
1>                     ~~~~~~~~^~
1>  mbed-os/features/filesystem/FileSystem.cpp: In instantiation of 'int Managed<F>::close() [with F = mbed::File]':
1>  mbed-os\features\filesystem\FileSystem.cpp(162,1): note :   required from here
1>mbed-os\features\filesystem\FileSystem.cpp(133,27): error :  incomplete type 'mbed::File' used in nested name specifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
2017-10-06 14:12:43 +01:00
Phyo Kyaw be7685e87d e2 studio exporter update 2017-10-06 14:12:43 +01:00
Martin Kojtal cc7556a92f Merge pull request #5184 from ARMmbed/release-candidate
Release candidate for mbed-os-5.6.1
2017-09-27 12:45:48 +01:00
Martin Kojtal 2efe09db30 LPC1768: flash_hal removal duplication
IAP typedef duplication removal
2017-09-25 17:11:37 -05:00
Martin Kojtal de51972ffb LPC1768: flash erase/write require a critical section
From RM:

32.3.2.6 Interrupts during IAP
The on-chip flash memory is not accessible during erase/write operations. When the user
application code starts executing the interrupt vectors from the user flash area are active.
The user should either disable interrupts, or ensure that user interrupt vectors are active in
RAM and that the interrupt handlers reside in RAM, before making a flash erase/write IAP
call. The IAP code does not use or disable interrupts.
2017-09-25 17:11:37 -05:00
Martin Kojtal ba019fdda7 LPC1768: RAM end adjust fix
The topmost 32 bytes used by IAP functions, this was not included in the RAM
end previously.
2017-09-25 17:11:37 -05:00
Jimmy Brisson ade705a8bc Force preprocessing of asm for make_armc5
It seem to preprocess asm with the `.S` extension on linux, but the
windows build of Arm Compiler 5 seems to omit the preprocessing step
unless you have a `.sx` extension. Odd.
2017-09-25 11:34:37 -05:00