Commit Graph

29117 Commits (b090065decb141fa05ff205bcbc66ebe66f09875)

Author SHA1 Message Date
Kyle Kearney 9d414316da TDBStore: Fix potential alignment issue in default addresses
When 10 pages is larger than 2 sectors, align the selected size
down to be an even multiple of the sector size, to ensure that
the allocated space divides cleanly in half for garbage collection.
2020-03-24 12:27:20 -07:00
Kyle Kearney 7cd4d11a8a Expand error checks in _calculate_blocksize_match_tdbstore
The minimum size required by tdbstore is either 2 sectors or 10 pages,
whichever is larger. Correspondingly, adjust the error checks in
_calculate_blocksize_match_tdbstore to match this requirement.
2020-03-24 12:27:20 -07:00
Kyle Kearney cda0af66eb Move TDB bounds computation for better reuse
Migrate into TDBStore so that DirectAccessDeviceKey can use it as well.
2020-03-24 12:27:20 -07:00
Kyle Kearney afa88b76d4 Refactor internal flash TDB bounds determination
Default the size to the larger of two sectors or 10 pages, so that the
  computation works better on devices with a low sector to page size ratio.
Reduce code duplication.
2020-03-24 12:27:20 -07:00
petroborys 3f6a48fcc8 Added RGB LEDs to PinNames.h 2020-03-24 21:05:07 +02:00
jeromecoutant a1c159e0b5 STM32 GCC Unspecified RTOS error 2020-03-24 17:32:13 +01:00
Kevin Bracey 1ecd9604f6 Disable C++ static denstructors in ARMC6 compiler
We disable C++ static destructors as best as possible in the various
toolchains, trying to eliminate unwanted destructor code. We don't want
to waste RAM or ROM on the C++-standard-specified behaviour of running
all statically-constructed objects' destructors in reverse order on
exit; we're never going to perform an orderly exit.

Techniques used include:

* `SingletonPtr` - makes an object be "lazily constructed" on first use,
  and also eliminates its destructor. Lazy construction adds ROM+RAM
  overhead.
* `__eabi_atexit` is stubbed out, preventing RAM usage by run-time
  registration of static destructors.
* GCC has `exit` wrapped to kill shutdown code
* IAR has static destructors disabled in the compiler flags

Killing static destructors in the compiler is the optimum; if we only
stub out `__eabi_atexit`, the compiler is still inserting calls to it,
and referencing the destructors in those call.

Clang 8 added the compiler option `-fno-c++-static-destructors` (and the
object attributes `[[clang::no_destroy]]` and
`[[clang::always_destroy]]` for fine control).

We can hence enable that option in ARMC6 tool profiles, matching IAR.

This option appears to exist in ARM Compiler 6.11, but generates an
apparently spurious linker error about `EthernetInterface`. It works in
ARM Compiler 6.13, so this PR needs to wait until the compiler is
updated.
2020-03-24 15:30:39 +00:00
Kimmo Vaisanen 619a5a7bcc Netsocket: Remove deprecated constructor with open
Default constructor with separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen 4918bc6aad TCPSocket: Remove deprecated contructor with open
Default constructor and separate open call should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen 2cfee7be71 Netsocket: Remove deprecated InternetSocket::attach methods
InternetSocket::sigio should be used instead.
2020-03-24 12:46:30 +02:00
Kimmo Vaisanen 62170dd721 Netsocket: Fix SocketAddress stub for new API 2020-03-24 11:05:58 +02:00
Kevin Bracey 4eda58893e SocketAddress rework
* Add optimised constexpr default constructor. Default construction
  was previously by a heavyweight defaulted `nsapi_addr_t` parameter.
* Remove deprecated resolving constructor.
* Take `nsapi_addr_t` inputs by constant reference rather than value.
* Inline the trivial getters and setters.
* Use `unique_ptr` to manage the text buffer.
* Make `operator bool` explicit.
* Optimise some methods.
* Update to C++11 style (default initialisers, nullptr etc)
2020-03-24 11:05:33 +02:00
jeromecoutant 6c57c9fd67 mbed test with dual core targets
For Dual Core targets, there are in fact 2 sub-targets, CM4 and CM7 targets.
This allows to execute tests with boards detected by mbedls.
2020-03-24 09:53:36 +01:00
jeromecoutant 7b0ac0669f MBED TRACE default level is INFO 2020-03-24 09:36:21 +01:00
Martin Kojtal 5d64e55880
Merge pull request #12651 from kivaisan/add_ec2x_start_timout_configuration
Cellular: Make Quectel EC2x modem start up timeout configurable
2020-03-24 08:53:59 +01:00
Martin Kojtal 2c5660ae35
Merge pull request #12642 from OpenNuvoton/nuvoton_m263_custom_board
M263: Support custom board
2020-03-24 08:52:47 +01:00
Chun-Chieh Li e6823c6af5 M2351: Add SPDX license identifier for BSP files 2020-03-24 10:47:03 +08:00
Chun-Chieh Li d1655854c9 M2351: Add SPDX license identifier 2020-03-24 10:03:44 +08:00
Volodymyr Medvid 0ac62d0317 PSoC6: enable export to uVision and IAR 2020-03-23 20:08:30 +01:00
Martin Kojtal e805b582c0
Merge pull request #12673 from ARMmbed/mergify-update
Mergify update
2020-03-23 19:59:47 +01:00
Martin Kojtal ae0ec86d59
Merge pull request #12667 from boomer41/fix-devicekey
Add check for return code in DeviceKey to avoid injecting invalid ROT
2020-03-23 19:59:10 +01:00
jeromecoutant 249752e7bc STM32H7: enable QSPI
- DISCO_H747I board has MT25QL512 embedded QSPI
2020-03-23 18:46:26 +01:00
adbridge f65b886f6d Fix inverted logic for label release-version present 2020-03-23 17:44:12 +00:00
Michal Paszta 8175e32717 Add get_time function for ESP8266
get_time function allows access to SNTP functionalities of ESP8266
2020-03-23 19:20:48 +02:00
adbridge b048e7b822 Mergify has no open condition! Change to not closed 2020-03-23 16:01:14 +00:00
adbridge 7479817a17 Move True to true 2020-03-23 15:50:59 +00:00
adbridge 0c0233c5ee Mergify: Fix remove_all logical condition 2020-03-23 15:41:44 +00:00
Rajkumar Kanagaraj 7761d45643 Remove deprecated ARMC5 from `mbed compile -S` command output 2020-03-23 07:28:32 -07:00
Evelyne Donnaes a3c3656557 Removed mbed_minimal_formatted_string_character
mbed_minimal_formatted_string_character is no longer
required since fputc does the new line conversion.
This results in a small Flash saving.
2020-03-23 13:51:47 +00:00
adbridge 5c7de75661 Fix incomplete mergify rules
1. If a PR is closed but not merged then remove all labels
2. If a release version is added and there are release version missing
   or Release review required, then remove those labels

3. In the check for conflicts rule, add the condition 'open' so
   that it isn't applied to closed or merged PRs
2020-03-23 13:51:19 +00:00
Martin Kojtal 539cf3fa63
Merge pull request #12666 from dhebbeker/fix/revert-pull-12646
Makefile: render compatible with some GNU make versions (revert #12646)
2020-03-23 14:49:40 +01:00
Martin Kojtal 4f4c8c48e1
Merge pull request #12637 from armPelionEdge/#12625-BLE-Cardio-Patch
Cordio: fix for issue #12625
2020-03-23 14:47:52 +01:00
Evelyne Donnaes 94acb5da50 Fix snprintf in minimal-printf library.
mbed_minimal_putchar assumed that buffer being NULL meant that it
should print to a file. This caused a system crash when calling
snprintf with both buffer and stream set to NULL.
It is valid to call snprintf with a NULL buffer; nothing should
be outputted, but the string length should be measured.
2020-03-23 13:46:12 +00:00
Michal Paszta 2b9210cd33 ESP8266: Fix typo: gateway to netmask 2020-03-23 14:25:15 +02:00
Martin Kojtal ef2c1c89e6
Merge pull request #12658 from VeijoPesonen/fix_tests-integration-fs
tests-integration;tests-filesystem: fix code causing compiler warnings and enable more tests
2020-03-23 12:31:13 +01:00
Martin Kojtal cc799a83fc
Merge pull request #12661 from kbarm/feature-fix-documentation-ascii-art
Adjusted SecurityManager Doxygen ASCII art
2020-03-23 10:18:54 +01:00
Stephan Brunner c6e8ae56db
Use correct return value. 2020-03-23 09:26:30 +01:00
Stephan Brunner f01bc974ef
Add check for return code in DeviceKey to avoid injecting invalid ROT 2020-03-23 06:57:50 +01:00
Volodymyr Medvid 26043e5ee4
makefile export: create .link_options.txt with echo
$(file > $@.in, $(filter %.o, $^)) is not supported in GNU Make 3.81.
Create the linker response file with pipe redirect from echo command.
This is tested with Cygwin make and make 3.8.1 shipped with macOS.

(cherry picked from commit 6918e6a76b)

Revert "Fixed problem with overlong command line."

This reverts commit dd02ac09a1.

See also https://github.com/ARMmbed/mbed-os/pull/12646#issuecomment-602058273
2020-03-21 20:24:28 +01:00
Anna Bridge 59540ed8c1
Merge pull request #12646 from dhebbeker/fix/fix-makefile-for-windows
Makefile: fix for overlong command line
2020-03-20 16:31:02 +00:00
Anna Bridge 4a5fac34a1
Merge pull request #12528 from VeijoPesonen/sfdp_split_5
SFDP: consolidation of SFDP parsing [5/5]
2020-03-20 16:26:39 +00:00
Anna Bridge c37b119418
Merge pull request #12659 from tymoteuszblochmobica/wiced_update
Rebuild WICED libraries after Mbed update
2020-03-20 15:24:16 +00:00
Anna Bridge 890a12a0c2
Merge pull request #12655 from rajkan01/ARMC5_remove_platform
Remove ARMC5 reference from Mbed OS platform
2020-03-20 15:23:12 +00:00
Anna Bridge ab483c2ead
Merge pull request #12654 from kbarm/feature-remove-cc-arm-macro
Removed all references to __CC_ARM
2020-03-20 15:22:03 +00:00
Anna Bridge 197e1d2daa
Merge pull request #12649 from rajkan01/unbuffered_serial_member_expose
Expose SerialBase IrqType member to UnbufferedSerial class
2020-03-20 15:21:12 +00:00
Anna Bridge 1b83d31e07
Merge pull request #12648 from artokin/nanostack_wisun_device_type_config
Nanostack: Add config for Wi-SUN device type
2020-03-20 15:20:17 +00:00
Anna Bridge d048cd4c83
Merge pull request #12410 from rajkan01/serial_remove_deprecate
Remove the deprecated RawSerial, UARTSerial, Serial
2020-03-20 15:19:32 +00:00
Teemu Takaluoma 40672c5e0f Disable sleep on STM32F4 as an workaround for stability issues.
This workaround is related to Mbed OS issue
https://github.com/ARMmbed/mbed-os/issues/12294
2020-03-20 12:16:06 +02:00
Krzysztof Borowczyk a624acd45c Adjusted SecurityManager Doxygen ASCII art to make it display correctly on mbed.com 2020-03-20 10:20:58 +01:00
Martin Kojtal 03dab7f9a0
Merge pull request #12645 from mtomczykmobica/IOTSTOR-906
Storage: Use internal flash for KVStore always if default config
2020-03-20 08:52:59 +01:00