Commit Graph

12621 Commits (e20d35df27059e8ab5ea0289cf4cb74bb0616a25)

Author SHA1 Message Date
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
adbridge cda6250e36 Updated MBED versionning block for patch release 2017-09-24 21:34:30 +01:00
Jaakko Heikkilä 431fac4445 export: Add missing flags to Sw4STM32
Some of the optimization and warning flags, which were supported by the
gnuarmeclipse exporter, were missing from the sw4stm32.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä 60b0eccf93 export: Corrections to Sw4STM32 after review
Add double quotes to linker command unconditionally.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä b45a5636f2 export: Fix invalid id's in Sw4STM32 project files 2017-09-24 21:34:29 +01:00
Jaakko Heikkilä d4a9de15c3 export: Remove build directories from excluded paths
Directories Debug and Release must not be excluded. Otherwise, Eclipse is
not able to find binaries, which are stored to build directories.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä d916081b94 export: Add debug configuration to Sw4STM32 2017-09-24 21:34:29 +01:00
Jaakko Heikkilä 6e6919c3cd export: Fix Windows problems with Sw4STM32
Quoting linker preprocessor command, if path contains parentheses. Using
relative path to shorten list of included directories. Using Eclipse
variables to get path to preprocessor.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä 53f7dcc4f6 export: Remove preprocessed ld files after build
Sometimes Sw4STM32 exporter receives wrong linker script file. Because build
directories cannot be excluded from scanned resources, ld files are removed.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä f92955a3bf export: Fix after testing Sw4STM32
Quotation marks in defines had to be replaced with html codes.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä d9b978f3f5 export: Invalid linker script path in Sw4STM32
Fixed invalid linker script path in project file.
Using 'defines' instead of 'symbols' in compiler options.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä deb9c1b3ea export: Remove dublicate methods in Sw4STM32
Removed unused methods and methods with dublicate functionality.
Removed unused imports. Generating list of defines for assembler.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä 7d2328564b export: Sw4STM32 inherits GNUARMEclipse
Sw4STM32 is using methods from GNUARMEclipse class to handle flags.
Flags are also passed to cproject file.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä db376bf083 export: Change linker script name
SW4STM32 linker script name now contains target name.
Print formatting is using new Python style.
2017-09-24 21:34:29 +01:00
Jaakko Heikkilä 65c4a2204d export: Fix sw4stm32 linker script problem
Added makefile.target, and rule for linker script pre-compilation.
2017-09-24 21:34:29 +01:00
Jarno Komula 3408e25714 Review changes + including config header from toolchain.get_config_header() instead of hardcoding it to project file. 2017-09-24 21:34:29 +01:00
Jarno Komula c2eafc9d38 Better readability. 2017-09-24 21:34:29 +01:00
Jarno Komula 224ada2a51 Review corrections. 2017-09-24 21:34:29 +01:00
Jarno Komula f870269075 Fixed sw4stm32 exporter 2017-09-24 21:34:29 +01:00
Deepika ba0e6d6a4c IAR heap stats added 2017-09-24 21:34:29 +01:00
Dexter Fryar 80e8351bcb Add bootloader support for NXP FRDM-KW24D 2017-09-24 21:34:29 +01:00
gorazd ad183b19cb arduino connector namings added 2017-09-24 21:34:29 +01:00
gorazd 110c3d6de9 extra label deleted 2017-09-24 21:34:29 +01:00
gorazd b46e7d9b2f new target added L-TEK FF1705 based on XDOT 2017-09-24 21:34:29 +01:00
Deepika 6323d18c87 Threads test require more time to finish 2017-09-24 21:34:29 +01:00
Deepika 567d64e649 Added thread terminate hook
Hook was added in RTX4 code to assist test framework to log thread info on
thread terminate, which was not working with RTX5.
2017-09-24 21:34:29 +01:00
Chris 56777ab64a Code tidy 2017-09-24 21:34:29 +01:00
Chris 1e454c4b92 Code tidy. 2017-09-24 21:34:29 +01:00
Chris 0711bb14e6 Tidy if else code aligment. 2017-09-24 21:34:28 +01:00
Chris d3b1f69c2d Resolve warning 2017-09-24 21:34:28 +01:00