Commit Graph

29297 Commits (07872bcd3a357fc6de9d21a20f26d71ab7f0effd)

Author SHA1 Message Date
Qinghao Shi 5822903992 update lto profile including printf wrap functions 2020-03-29 20:55:08 +01:00
Rajkumar Kanagaraj 47e68b20cb - Remove the pre-processor directive __ARMCC_VERSION >= 6010050
- Add the code prior to 6.01.0050 versions.
2020-03-27 14:37:01 +00:00
Anna Bridge 83926138aa
Merge pull request #11726 from kjbracey-arm/armc6_no_static_destructors
Disable C++ static destructors in ARMC6 compiler
2020-03-27 14:14:00 +00:00
Anna Bridge 009ff7adf3
Merge pull request #12036 from kjbracey-arm/callback_fiddle
Callback extension and optimisation
2020-03-27 14:07:20 +00:00
Anna Bridge 2736896fb9
Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests
Tests: Remove support for ARM Compiler 5
2020-03-27 14:05:26 +00:00
Anna Bridge abaf612ccd
Merge pull request #12704 from michalpasztamobica/lwip_apimsg_err
LWIP: propagate the apimsg->err out of netconn_apimsg()
2020-03-27 14:04:27 +00:00
Anna Bridge 292a1b9862
Merge pull request #12693 from maciejbocianski/fix_usb_msd
USBMSD security updates
2020-03-27 12:08:02 +00:00
Marcelo Salazar 5aa66b5c9a
Add workaround for F429 hardfault 2020-03-27 11:58:46 +00:00
Anna Bridge 1bbcaec04a
Merge pull request #12683 from kivaisan/socketaddress_refactor
SocketAddress rework
2020-03-27 11:30:12 +00:00
Anna Bridge a34333fe36
Merge pull request #12677 from jeromecoutant/PR_H7_QSPI
STM32H7: enable QSPI
2020-03-27 11:20:48 +00:00
Dustin Crossman 56099951b5 Ran astyle on COMPONENT_SCL. 2020-03-26 11:50:58 -07:00
Martin Kojtal 6e17268bbd
Merge pull request #12300 from michalpasztamobica/esp8266_ntp
Add get_time function to ESP8266
2020-03-26 18:23:18 +01:00
Martin Kojtal cb131c39b3
Merge pull request #12629 from evedon/ed-rtos-api
Add "rtos-api" to bare metal
2020-03-26 18:21:05 +01:00
Martin Kojtal 2d10d670d0
Merge pull request #12640 from evedon/ed-mprintf-profile
Remove minimal-printf extension profile
2020-03-26 14:50:13 +01:00
Hugues Kamba a79ae95703 mbed-client-cli: Remove support for ARM Compiler 5
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-26 13:45:46 +00:00
Hugues Kamba e435738cd7 Drivers: Remove support for ARM Compiler 5
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-26 12:34:06 +00:00
Michal Paszta dc142979d8 LWIP: propagate the apimsg->err out of netconn_apimsg() 2020-03-26 13:45:50 +02:00
Martin Kojtal b5f00bc67a
Merge pull request #12679 from vmedcy/psoc6-export
PSoC6: enable export to uVision and IAR
2020-03-26 09:09:35 +01:00
Martin Kojtal f011ccb2cb
Merge pull request #12692 from petroborys/master
EFM32G11: Add RGB LEDs to PinNames.h
2020-03-26 09:08:53 +01:00
Hugues Kamba 4318a0747f Tests: Remove support for ARM Compiler 5
ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
2020-03-25 18:22:00 +00:00
phst 75f8c70935 Fix Astyle error 3 2020-03-25 16:20:43 +01:00
phst 406e7a2f4f Fix Astyle error 2 2020-03-25 16:05:55 +01:00
Martin Kojtal 253e7becaa
Merge pull request #12672 from rajkan01/remove_ARMC5_from_mbed_compile
Remove deprecated ARMC5 reference from  `mbed compile -S` output
2020-03-25 15:53:21 +01:00
phst 413b6d62f4 Fix Astyle error 2020-03-25 15:37:13 +01:00
phst ac20dfc745 Fix Astyle error 2020-03-25 14:20:21 +01:00
Syed Fahimuddin Alavi c6b6efc456 Added deativation of context associated with profile
Added emt method in At cellular context stub file
2020-03-25 16:02:18 +05:00
Martin Kojtal ddd3b013e8
Merge pull request #12632 from evedon/ed-minimal-snprintf
Fix snprintf in minimal-printf library
2020-03-25 11:34:23 +01:00
Martin Kojtal b62fdaed1f
Merge pull request #12685 from kivaisan/remove_deprecated_netsocket_methods
Remove deprecated netsocket methods
2020-03-25 10:12:55 +01:00
Michal Paszta cf2ba1d37d ESP8266: SNTP config only runs when enabled 2020-03-25 10:47:26 +02:00
Martin Kojtal fff23428de
Merge pull request #12686 from jeromecoutant/PR_REVERT_ETHERNET
STM32 EMAC : remove TIMEOUT issue when cable is not plugged yet
2020-03-25 08:59:55 +01:00
Maciej Bocianski 1ffb4d7356 update USBMSD::memoryWrite implementation
Fix prevents unaligned USB transfers
2020-03-24 22:05:46 +01:00
Maciej Bocianski 89e67d3136 update USBMSD::memoryRead implementation
Fix protects underlaying block device from out-of-bound reads
2020-03-24 21:52:03 +01:00
Maciej Bocianski ac105f5a18 update USBMSD::infoTransfer implementation
Fix protects underlaying block device from out-of-bound read/writes
 - prevents the host from setting block device addres larger then block device size
 - prevents the host from setting wrong read/write lenght
2020-03-24 21:28:23 +01:00
Kyle Kearney 85d2e8f2f2 Add kvstore/conf to unittest includes
The unittests compile DirectAccessDeviceKey.cpp which depends on
kv_config.h, which lives in features/storage/kvstore/conf
2020-03-24 12:36:36 -07:00
Kyle Kearney ab8ac8871c Remove stray include of TDBStore.h 2020-03-24 12:27:21 -07:00
Kyle Kearney ae7c6203cc kv_config: Remove hard fail on too few pages
STORE_SECTORS is a hard requirement. If there are fewer than 2 pages
then the kvstore will not work, because the garbage collection process
relies on having at least two sectors to work with.
STORE_PAGES is a heuristic. It is a reasonable default to use if the
application does not specify the amount of flash to use for TDBStore.
But if an application knows that a smaller number of pages will suffice
for its specific needs, then that is valid and should be permitted.
2020-03-24 12:27:21 -07:00
Kyle Kearney 7f18a6ce49 Move flash bounds helpers from TDBStore to kv_config 2020-03-24 12:27:21 -07:00
Kyle Kearney 926423c109 Reuse TDBStore default size computation in devicekey test
Replace custom caluation that always assumed two sectors with the standard
calculation exposed on TDBStore.
2020-03-24 12:27:21 -07:00
Kyle Kearney 622a50ff6a KV_CONFIG: Change errors to use tr_error not tr_warning 2020-03-24 12:27:21 -07:00
Kyle Kearney e1b857078a Remove unnecessary reference-typed arguments
No callers make use of the modified argument values, so change
them to a more straightforward pass by value.
2020-03-24 12:27:21 -07:00
Kyle Kearney 3ef04db1a3 TDBStore: Increase min pages to 14
Increase minimum page count from 10 to 14 based on further experiments
with features-storage-tests-kvstore-static_tests.
2020-03-24 12:27:21 -07:00
Kyle Kearney 0002830c03 TDBStore: remove get_flash_bounds input constraint
Handle the case where the entirety of flash (size = 0) is required
for a flash memory starting at address 0, instead of erroring out.
2020-03-24 12:27:20 -07:00
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