Martin Kojtal
c8ab263388
Merge pull request #12701 from dustin-crossman/pr/custom-bt-firmware
...
Add custom BT Firmware image for CYW9P62S1_43012EVB_01
2020-04-03 09:09:46 +02:00
Martin Kojtal
5539d65017
Merge pull request #12638 from tymoteuszblochmobica/testall
...
Enable storage tests to all targets
2020-04-03 09:00:18 +02:00
Martin Kojtal
74ace63eaa
Merge pull request #12729 from AnttiKauppila/mbedtls_fixes
...
Mbedtls fixes
2020-04-03 08:59:14 +02:00
Martin Kojtal
548e1c6766
Merge pull request #12676 from LDong-Arm/ble_deprecation_cleanup
...
Remove deprecated BLE:: APIs and unsupported services
2020-04-03 08:36:38 +02:00
Ryan Morse
f060b6afd7
Add custom BT Firmware image for CYW9P62S1_43012EVB_01
2020-04-02 09:30:17 -07:00
Martin Kojtal
ded879daed
Merge pull request #12603 from dustin-crossman/pr/add-cysbsyskit_01
...
Add target CYSBSYSKIT_01
2020-04-02 18:18:11 +02:00
JojoS62
a4d5186f39
add config option for phy media interface
2020-04-02 12:16:57 +02:00
Tymoteusz Bloch
2ca832c673
Enable storage tests to all targets
2020-04-01 12:04:36 +02:00
Kimmo Vaisanen
949856d967
Replace unique_ptr::reset() call with "= nullptr"
...
This is a workaround for IAR library bug.
2020-04-01 12:13:49 +03:00
Martin Kojtal
a6ef9db8dc
Merge pull request #12626 from jeromecoutant/PR_F4
...
STM32F4 update drivers version to CUBE V1.25.0
2020-04-01 10:50:32 +02:00
Martin Kojtal
0eca8d38d0
Merge pull request #12715 from RyoheiHagimoto/rza1-eth-deprecation
...
RZ_A1H remove usage of ethernet hal API
2020-04-01 08:54:31 +02:00
Chun-Chieh Li
d709c775b4
M487: Add SPDX license identifier
2020-04-01 13:55:45 +08:00
Chun-Chieh Li
3b9492fdbc
M487: Update BSP
...
Relevant modifications:
1. Support degrading QSPI0/1 to SPI4/5 for normal SPI transfer
2. Fix with BSP crypto driver API change
3. Fix with BSP PDMA driver API change
4. Make necessary modifications to pass FPGA CI Test Shield tests
5. Don't distinguish pinmap among parts e.g. M480 LG. Application users must take care.
2020-04-01 13:55:12 +08:00
Martin Kojtal
dba3962f16
Merge pull request #12570 from kjbracey-arm/nsapics
...
Improve nsapi_create_stack
2020-03-31 16:34:20 +02:00
Antti Kauppila
5f19b6b03a
Licence updated
2020-03-31 16:16:30 +03:00
Antti Kauppila
7904ff05b3
more error handling added for ctr and hmac
2020-03-31 15:59:56 +03:00
Antti Kauppila
abb37c09be
MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib
2020-03-31 14:21:45 +03:00
Antti Kauppila
69c6f29ab6
trace group defiined for shared_rng
...
Unittests fixed
2 mbedtls functions were updated to reflect the api
2020-03-31 14:21:45 +03:00
Teppo Järvelin
c5d5d21f05
Added missing optimizations based on mbedtls/baremetal.h config
2020-03-31 14:21:45 +03:00
Teppo Järvelin
0f889c3764
fixed ssl hostname handling
2020-03-31 14:21:44 +03:00
Teppo Järvelin
17e513891b
Added new global rng, needed for MbedTLS optimisations
2020-03-31 14:21:44 +03:00
Teppo Järvelin
793837cafe
Prepare for upcoming MbedTLS changes
2020-03-31 14:21:44 +03:00
Hugues Kamba
209f1e6a71
Netsocket/lwIP Stack: 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-31 10:54:36 +01:00
jeromecoutant
dfeeb821dc
STM32 EMAC : increase thread-stacksize
2020-03-31 11:41:51 +02:00
jeromecoutant
4b9a7fa86a
STM32F4 V1.19.0 -> V1.25.0 : MBEDTLS adaptation
2020-03-31 11:04:57 +02:00
Martin Kojtal
8b929726e1
Merge pull request #12609 from rajkan01/semwait_remove_deprecation
...
Remove Semaphore deprecated APIs
2020-03-31 10:36:43 +02:00
Martin Kojtal
6cdb44ea38
Merge pull request #12682 from jeromecoutant/PR_TRACELEVEL
...
MBED TRACE default level is INFO
2020-03-31 09:28:11 +02:00
Martin Kojtal
5d07fa8ada
Merge pull request #12705 from hugueskamba/hk_remove_armc5_support_mbed-client
...
mbed-client-cli: Remove support for ARM Compiler 5
2020-03-31 08:34:33 +02:00
Martin Kojtal
fea7c1abef
Merge pull request #12472 from praveenCY/pr/wpa3_support_merge
...
Add WPA3 support in mbed-os for green tea tests
2020-03-31 08:32:27 +02:00
Martin Kojtal
4c6e59d714
Merge pull request #11629 from kyle-cypress/pr/tdb-bounds-refactor
...
Refactor TDB internal bounds computation
2020-03-30 09:39:15 +02:00
RyoheiHagimoto
7794221c69
[RZ_A1H] remove usage of ethernet hal API
2020-03-30 14:54:35 +09: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
1bbcaec04a
Merge pull request #12683 from kivaisan/socketaddress_refactor
...
SocketAddress rework
2020-03-27 11:30:12 +00:00
Dustin Crossman
56099951b5
Ran astyle on COMPONENT_SCL.
2020-03-26 11:50:58 -07: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
Michal Paszta
dc142979d8
LWIP: propagate the apimsg->err out of netconn_apimsg()
2020-03-26 13:45:50 +02: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
Hugues Kamba
a9a00e9b29
Storage: 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 17:25:20 +00: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
b62fdaed1f
Merge pull request #12685 from kivaisan/remove_deprecated_netsocket_methods
...
Remove deprecated netsocket methods
2020-03-25 10:12:55 +01: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
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
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
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
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
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
Lingkai Dong
de89b9a572
BLE DeviceInformationService: fix deprecated addService usage
2020-03-23 16:37:21 +00:00
Lingkai Dong
682927d0a7
Remove deprecated BLE:: API
...
Note: The BLE() constructor is now private.
2020-03-23 16:14:20 +00:00
Lingkai Dong
266de6a69a
Remove BLE services that are not maintained anymore
2020-03-23 16:14:19 +00: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
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
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
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
Krzysztof Borowczyk
a624acd45c
Adjusted SecurityManager Doxygen ASCII art to make it display correctly on mbed.com
2020-03-20 10:20:58 +01:00
Veijo Pesonen
244c2fba5f
tests-filesystem: enable all for QSPIF- OSPIF(future)-devices
...
littlefs is the preferred filesystem for general filesystem tests.
2020-03-19 19:26:16 +02:00
Krzysztof Borowczyk
4465295332
Remove ARMC5 reference from Mbed OS platform (removed all references to __CC_ARM)
2020-03-19 16:00:45 +01:00
Kimmo Vaisanen
4f7d7750e4
Cellular: Make Quectel EC2x modem start up timeout configurable
...
Default timeout also increase from 5sec to 15sec.
2020-03-19 12:31:46 +02:00
Arto Kinnunen
1b171791c3
Nanostack: Add config for Wi-SUN device type
...
Add configuration option for Wi-SUN device types.
2020-03-19 08:44:37 +02:00
Marcin Tomczyk
6a21dfa080
[Storage] Use internal flash for KVStore always if default configuration. TDB_INTERNAL is always for first choose.
2020-03-18 06:05:52 -07:00
Martin Kojtal
dc21432cc1
Merge pull request #12633 from kivaisan/bg96_use_offload_tlssocket_flags
...
Cellular: Add offload TLSSocket implementation inside feature flag
2020-03-17 12:17:12 +01:00
Vishal Bhargava
4ea64cb6c6
Update hci_tr.c
...
Indent formating
2020-03-17 12:13:07 +05:30
Kimmo Vaisanen
51175eed1f
Cellular: Add offload TLSSocket implementation inside feature flag
...
Reduce binary size (~500 bytes with GCC_ARM and developer profile) when offloaded TLSSocket is not in use.
2020-03-17 08:42:59 +02:00
Vishal Bhargava
5b65d3b119
Update hci_tr.c
...
Handled fragmented packet case also.
2020-03-17 11:57:14 +05:30
Dustin Crossman
89c70fbd9a
Fix licenses in COMPONENT_SCL.
2020-03-16 09:40:34 -07:00
Rajkumar Kanagaraj
a6b78c6429
Remove Semaphore deprecated APIs
2020-03-16 09:37:45 -07:00
Martin Kojtal
2a4e48179d
Merge pull request #12624 from OpenNuvoton/nuvoton_ec2x
...
Cellular: Support EC2x power control pin support no connect
2020-03-16 14:34:58 +00:00
jeromecoutant
488c9db81e
STM32 EMAC : remove TIMEOUT issue when cablke is not plugged yet
2020-03-13 16:58:47 +01:00
Anna Bridge
532654ebb3
Merge pull request #12597 from kivaisan/alt1250_ppp_cellular
...
Cellular: Add ALT1250 PPP cellular target
2020-03-13 11:08:13 +00:00
Chih-Chiang Chang
73b96c1cbc
Support EC2x PWRKEY set as no connect
2020-03-13 13:46:24 +08:00
Kevin Bracey
bb733f1ee8
Callback updates
...
* Optimise clearing by adding `nullptr` overload. This overload means
`Callback(NULL)` or `Callback(0)` will no longer work; users must
use `Callback(nullptr)` or `Callback()`.
* Optimise clearing by not clearing storage - increases code size of
comparison, but that is extremely rare.
* Reduce ROM used by trivial functors - share copy/destroy code.
* Config option to force trivial functors - major ROM saving by
eliminating the "operations" table.
* Config option to eliminate comparison altogether - minor ROM saving by
eliminating zero padding.
* Conform more to `std::function` API.
2020-03-11 15:46:03 +02:00
Anna Bridge
da9f85b6af
Merge pull request #12580 from cy-arsm/cy-arsm/pr/PR_SoftAP_STA_Fix_revert
...
Reverting #12312 as it breaking current WiFI connect()->Disconnect() sequence
2020-03-10 12:50:27 +00:00
Anna Bridge
e307695e82
Merge pull request #12599 from tymoteuszblochmobica/rotfix
...
Greentea kvstorage tests Cypress targets fix.
2020-03-10 12:08:48 +00:00
Dustin Crossman
05776d6f88
Update COMPONENT_SCL.
2020-03-09 10:07:12 -07:00
Dustin Crossman
6b6db89434
Improve documentation.
2020-03-09 10:07:12 -07:00
Dustin Crossman
e754510cce
Add COMPONENT_SCL.
2020-03-09 10:07:11 -07:00
Martin Kojtal
0692fc65bc
Merge pull request #12567 from jeromecoutant/PR_EMAC_TRACE
...
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-09 15:01:20 +00:00
Tymoteusz Bloch
7b9170541a
KV storage. Root of trust fix to pass Greentea tests for CY8CPROTO_062_4343W.
2020-03-09 13:53:28 +01:00
Kimmo Vaisanen
164a2cab4d
Cellular: Add ALT1250 PPP cellular target
...
Co-authored-by: Mirela Chirica <mirela.chirica@arm.com>
Co-authored-by: Antti Kauppila <antti.kauppila@arm.com>
2020-03-09 14:47:52 +02:00
Martin Kojtal
e71ab0d0f0
Merge pull request #12590 from devran01/importer-remove-license-file
...
Importer script: remove apache-2.0.txt
2020-03-09 09:01:04 +00:00
Martin Kojtal
c17f32f04e
Merge pull request #12507 from variablo87/cellular-context-semaphore-release
...
Cellular: release _semaphore only once
2020-03-09 07:14:47 +00:00
Simon Butcher
19b208f211
Update the contribution guidelines for Mbed TLS
...
This commit changes the contribution guidelines to refer the user to the
contribution guidelines in the Mbed TLS repo. It also removes the outdated references to the
CLA, and CLA not being required for trivial changes.
Signed-off-by: Simon Butcher <simon.butcher@arm.com>
2020-03-06 17:32:17 +00:00
Anna Bridge
1f2e66dd49
Merge pull request #12560 from Patater/import-mbedcrypto-3.0.1
...
crypto: Update to Mbed Crypto 3.0.1
2020-03-06 13:57:57 +00:00
Devaraj Ranganna
4773a219b8
tls: Remove apache-2.0.txt from importer script
...
Both Mbed TLS and Mbed Crypto libraries doesn't contain
`apache-2.0.txt` anymore. Do not access those files in the importer
script.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-03-06 11:26:45 +00:00
Kevin Bracey
4759e9d667
Remove unnecessary friends of NetworkInterface
2020-03-05 16:45:36 +02:00
Kevin Bracey
70a6701006
Improve nsapi_create_stack
...
Use tag dispatch to better handle both NetworkInterface and NetworkStack
pointers.
The previous design was intended to avoid ambiguities when presented
with a scenario like
class MyDevice : public NetworkInterface, public NetworkStack {
};
TCPSocket(&MyDevice);
// Need NetworkStack *: use NetworkInterface::get_stack or
// cast to NetworkStack?
But the previous solution didn't actually work as intended. The overload
pair
nsapi_create_stack(NetworkStack *);
// versus
template <class IF>
nsapi_create_stack(IF *);
would only select the first form if passed an exact match -
`NetworkStack *`. If passed a derived class pointer, like `MyDevice *`,
it would select the template.
This meant that an ambiguity for MyDevice was at least avoided, but
in the wrong direction, potentially increasing code size.
But in other cases, the system just didn't work at all - you couldn't
pass a `MyStack *` pointer, unless you cast it to `NetworkStack *`.
Quite a few bits of test code do this.
Add a small bit of tag dispatch to prioritise the cast whenever the
supplied pointer is convertible to `NetworkStack *`.
2020-03-05 16:45:36 +02:00
Arun S
19cbfd7c15
Reverting #12312 as it breaking current WiFI
...
connect()->Disconnect() sequence
This reverts commit 18285e1fc1
2020-03-05 16:44:59 +05:30
Martin Kojtal
aa6fd58804
Merge pull request #12558 from jarlamsa/differing_eusize
...
Fix issue when TDBStore has varying erase sizes between areas.
2020-03-04 13:25:51 +00:00
Martin Kojtal
9ec6f5d8fa
Merge pull request #12536 from DavidLin1577/patch-7
...
Fixed typo 'thead' in thread_neighbor_class.h
2020-03-04 13:23:26 +00:00
Martin Kojtal
0542b40f36
Merge pull request #12537 from DavidLin1577/patch-8
...
Minor optimization to improve readability of code
2020-03-04 13:23:08 +00:00
Kevin Bracey
6f45e969b0
SocketStats: tighten up
...
* Avoid undefined behaviour when copying/clearing `mbed_stats_socket_t`.
As it contains a `SocketAddress`, memset and memcpy should not be used.
* Avoid array overrun when `mbed_stats_socket_get_each` is passed a
count greater than `nsapi.socket-stats-max-count`.
* Remove `const` from internal `stats_new_socket_entry` method to avoid
const-losing cast.
2020-03-04 14:54:17 +02:00
Kevin Bracey
eb10cc18c5
Optimise SocketStats
...
* Remove unnecessary virtual destructor.
* Use inline empty functions when disabled.
* Remove pointless `const`s from declarations.
2020-03-04 14:54:17 +02:00
Martin Kojtal
b4034dc547
Merge pull request #12551 from rajkan01/mpm_remove_deprecated
...
Remove mbed power management deprecated API
2020-03-04 08:22:52 +00:00
Martin Kojtal
6137c98d6a
Merge pull request #12543 from kivaisan/remove_deprecated_connect
...
TLSSocket: Remove deprecated connect
2020-03-04 08:20:23 +00:00
jeromecoutant
3a02671028
STM32 EMAC : increase thread size when mbed-trace is enabled
2020-03-04 09:14:41 +01:00
Martin Kojtal
498e2d2bc8
Merge pull request #12499 from u-blox/ubx_cellular
...
Cellular: For ublox modem, read '@' char first then send data.
2020-03-04 07:58:51 +00:00
Martin Kojtal
804d1e613e
Merge pull request #12489 from kjbracey-arm/override_lwip
...
C++11-ify virtualisation in lwIP classes
2020-03-04 07:58:30 +00:00
Martin Kojtal
6677249a08
Merge pull request #12506 from kivaisan/fix_socketaddress_regression
...
Fix 2 string based IP address removal regressions
2020-03-04 07:52:31 +00:00
Martin Kojtal
b3583f04cf
Merge pull request #12464 from jeromecoutant/PR_ETHERNET
...
STM32 EMAC : add configuration choice and connection check
2020-03-03 16:04:18 +00:00
Martin Kojtal
6e6603f97d
Merge pull request #12534 from rajkan01/callchain_remove_deprecated
...
Remove the deprecated CallChain class and its APIs
2020-03-03 14:57:59 +00:00
Martin Kojtal
eaac84be72
Merge pull request #12467 from kjbracey-arm/nsapics
...
Inline nsapi_create_stack(NetworkStack)
2020-03-03 14:13:28 +00:00
Rajkumar Kanagaraj
df32091c7b
Remove the deprecated RawSerial, UARTSerial, Serial class and SerialBase attach API
2020-03-03 05:19:42 -08:00
Jaeden Amero
9ae0868410
crypto: Update to Mbed Crypto 3.0.1
2020-03-03 12:56:07 +00:00
Jarno Lamsa
b34dd0ce89
Remove _variant_bd_erase_unit_size
...
In some cases, it is possible that every erase unit in area 0
has the same size, but they are still different than in area 1.
Remove the flag for varying erase sizes and instead check from
flash, what is the erase size of the current unit.
2020-03-03 13:05:27 +02:00
Kimmo Vaisanen
86dba54202
Fix L3IPInterface to use SocketAddress class for addresses
...
String based ip addresses has been deprecated and SocketAddress must be
used instead.
2020-03-03 12:13:51 +02:00
Kimmo Vaisanen
6e1f7bf1f9
Cellular: Fix trace to use new SocketAddress based get_ip_address
...
String based get_ip_address has been removed and SocketAddress based must be
used.
2020-03-03 12:12:16 +02:00
Kimmo Vaisanen
2987bedb68
TLSSocket: Remove deprecated connect
...
String based connect has been removed but was still defined in TLSSocket header for offloaded variant.
This is a regression fix for 458957d399
2020-03-03 12:08:32 +02:00
Martin Kojtal
f4df4e75ea
Merge pull request #12487 from kjbracey-arm/override_nsapi
...
C++11-ify virtualisation in netsocket
2020-03-03 09:57:57 +00:00
Rajkumar Kanagaraj
35f1b4ab53
Remove mbed power management deprecated API
2020-03-02 15:06:26 -08:00
jeromecoutant
b15dffaef2
STM32 EMAC : add PHY ID information
2020-03-02 16:21:35 +01:00
jeromecoutant
01a186a952
STM32 EMAC : thread size is configurable
2020-03-02 16:21:23 +01:00
jeromecoutant
c3c0928786
STM32 EMAC : enable mbed_trace
2020-03-02 16:21:11 +01:00
jeromecoutant
89a537b9a8
STM32 EMAC : check PHY_BSR value before connect status
2020-03-02 16:20:06 +01:00
jeromecoutant
c3653c6813
STM32 EMAC : check driver function status before returning success
2020-03-02 16:19:58 +01:00
jeromecoutant
1b40076376
STM32 EMAC : more configurable
...
- PHY default configuration can be changed
- AutoNegotiation
- Speed
- DuplexMode
- PHY register offset can be updated depending on chosen PHY
All unused parameters are cleaned.
2020-03-02 16:19:26 +01:00
Martin Kojtal
c2c6d251fd
Merge pull request #12521 from kivaisan/remove_include_mbedtls_config
...
Remove explicit include of mbedtls/config.h
2020-03-02 09:34:42 +00:00
David Lin
d5f4b8effb
Fix function spelling mistake in Thread
...
lowpan_contex_get_by_id -> lowpan_context_get_by_id
2020-02-29 12:05:18 +08:00
David Lin
922452d8d0
Fix function spelling mistake in border_router.c
...
lowpan_contex_get_by_id -> lowpan_context_get_by_id
2020-02-29 12:00:39 +08:00
David Lin
d76df4c3d0
Fix function spelling mistake in iphc_decompress.c
...
lowpan_contex_get_by_id -> lowpan_context_get_by_id
2020-02-29 11:56:43 +08:00
David Lin
c2e649a4c3
Fix function spelling mistake in lowpan_context.c
...
lowpan_contex_get_by_id -> lowpan_context_get_by_id
2020-02-29 11:53:32 +08:00
David Lin
5a883a2fe2
Fix function spelling mistake in lowpan_context.h
...
lowpan_contex_get_by_id -> lowpan_context_get_by_id
2020-02-29 11:50:39 +08:00
David Lin
949bcaa155
Fixed typo 'thead' in thread_neighbor_class.h
...
Note that the word 'thead' is wrong,
so that 'thead' should been replaced with thread'.
2020-02-29 08:44:22 +08:00
Rajkumar Kanagaraj
6e969ec5ab
Remove the deprecated CallChain class and its APIs.
2020-02-28 07:41:44 -08:00
Norbert Hesse
327445a00b
release _semaphore only once
...
see issues #12325
2020-02-28 15:06:55 +01:00
Kevin Bracey
d8d35eda9f
C++11-ify virtualisation in netsocket
...
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.
Some other C++11 simplifications.
Reduces code size.
2020-02-28 13:34:18 +02:00
Kevin Bracey
695e872202
Correct NetworkStackWrapper::get_ip_address
...
Previous change that removed string-based APIs missed
`NetworkStackWrapper::get_ip_address`. Remove string-based method (which
is not overriding anything in `NetworkStack`) and add missing binary
form to implement `NetworkStack::get_ip_address`.
2020-02-28 13:29:16 +02:00
Martin Kojtal
0286e3c325
Merge pull request #12525 from rajkan01/ticker_remove_deprecated
...
Remove the deprecated Ticker APIs
2020-02-28 09:52:22 +00:00
Martin Kojtal
9ad292a2a3
Merge pull request #12466 from jeromecoutant/PR_METRIC
...
MBED_STACK_STATS_ENABLED : Add stack_name information in greentea metrics
2020-02-28 08:45:44 +00:00
Martin Kojtal
1bf93039fb
Merge pull request #12457 from artokin/update_stm32_emac_ethernet_driver
...
Update STM32 EMAC driver - limit RX frame length
2020-02-28 08:45:24 +00:00
Martin Kojtal
fc5f3259de
Merge pull request #12458 from GaborAbonyi/add_musca_b1_platform
...
Add Musca B1 target
2020-02-27 13:53:58 +00:00
Rajkumar Kanagaraj
db0bf08e4d
Remove the deprecated Ticker APIs
2020-02-27 03:26:12 -08:00
Martin Kojtal
3739ccda0f
Merge pull request #12488 from kjbracey-arm/override_ns
...
C++11-ify virtualisation in Nanostack classes
2020-02-27 08:52:08 +00:00
Kimmo Vaisanen
29affbccab
Remove explicit include of mbedtls/config.h
...
Including mbedtls/config.h should not be done explicitely. This prevents using MBEDTLS_CONFIG_FILE macro.
Correct config file is automatically included by other mbedtls header files.
2020-02-27 09:45:22 +02:00
mudassar-ublox
2fc95a5421
Read '@' char first then send data
2020-02-27 11:07:56 +05:00
Martin Kojtal
67e950296d
Merge pull request #12385 from tymoteuszblochmobica/rot
...
DeviceKey Root of Trust generation refactored.
2020-02-26 16:59:24 +00:00
Praveen babu chandran
8b97e4c3ef
Add WPA3 support for green tea tests
2020-02-25 10:14:30 -08:00
Martin Kojtal
732692cd77
Merge pull request #12475 from VeijoPesonen/purge_rspif
...
Proposal to remove SPIFReducedBlockDevice
2020-02-25 15:23:23 +00:00
Martin Kojtal
18ad99a883
Merge pull request #12481 from artokin/nanostack_release_for_mbed_os_6
...
Nanostack release for Mbed OS 6
2020-02-25 10:08:59 +00:00
Kevin Bracey
aa9058a293
C++11-ify virtualisation in lwIP classes
...
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.
Some other C++11 simplifications.
2020-02-25 10:09:10 +02:00
Kevin Bracey
b4c1f7f3da
Correct LWIP::get_ip_address
...
Previous change that removed string-based APIs missed
`LWIP::get_ip_address`. Remove string-based method (which is not
overriding anything in `NetworkInterface`) and add missing binary form
to implement `NetworkInterface::get_ip_address`.
2020-02-25 09:57:56 +02:00
Martin Kojtal
9205bdf890
Merge pull request #12490 from DavidLin1577/patch-3
...
Fixed error of structure mlme_key_descriptor_t
2020-02-24 15:45:35 +00:00
Veijo Pesonen
b575df072f
Removes RSPIF block device driver
...
The driver is not needed by the bootloader anymore.
2020-02-24 16:01:14 +02:00
Martin Kojtal
3f4e2a6746
Merge pull request #12491 from DavidLin1577/patch-6
...
Fixed error of function 'mac_fcf_lenght'
2020-02-24 12:44:04 +00:00
David Lin
d2d4a87c3d
Fixed error of function 'mac_fcf_lenght'
...
Note that the function 'mac_fcf_lenght' is wrong,
so that 'mac_fcf_lenght' should been replaced with 'mac_fcf_length'.
2020-02-21 23:19:56 +08:00
David Lin
20f6a83f67
Fixed error of structure
...
KeyDeviceFrameCouterList -> KeyDeviceFrameCounterList
2020-02-21 22:21:00 +08:00
David Lin
cd2d3ce422
Fixed spelling mistake of structure
...
KeyDeviceFrameCouterList -> KeyDeviceFrameCounterList
2020-02-21 22:15:48 +08:00
Martin Kojtal
17394b98be
Merge pull request #12484 from mtomczykmobica/IOTSTOR-1009
...
TDBStore magic number if endian sensitive fix comment
2020-02-21 13:47:18 +00:00
Tamas Kaman
551c3c553c
Add ARM_MUSCA_B1 as a new target platform
...
Musca-B1 is a Cortex-M33 based target with security extension enabled.
- ARM_MUSCA_B1 is the non-secure target running mbed-os.
- ARM_MUSCA_B1_S is the secure target running TF-M.
- TF-M sources were imported and patched in previous commits.
- TF-M secure bootloader (McuBoot) for MUSCA_B1 is submitted by a
pre-built binary.
- A post-build hook concatenates The secure and non-secure binaries,
signs it and then concatenates the bootloader with the signed binary.
Change-Id: I4b36290941b5f0bb7aa7c12dda2f38b5c1e39ae2
Signed-off-by: Tamas Kaman <tamas.kaman@arm.com>
Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
2020-02-21 14:34:39 +01:00
Kevin Bracey
04580b73d8
C++11-ify virtualisation in Nanostack classes
...
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.
Some other C++11 simplifications.
Eliminate two unused header files (with no corresponding source files).
Reduces code size.
2020-02-21 15:20:57 +02:00
Kevin Bracey
f40c5616e1
Inline nsapi_create_stack(NetworkStack)
...
The rather fiddly `nsapi_create_stack` template + overloads used during
socket formation don't inline their core, which is the identity operation
for `NetworkStack *` itself. Make code generation easier by having that
core be inline.
2020-02-21 15:13:14 +02:00
Martin Kojtal
8f1bf967d3
Merge pull request #11942 from michalpasztamobica/remove_deprecated_apis
...
IPCore String-based API removal
2020-02-21 12:14:06 +00:00
Martin Kojtal
72b2fcf29a
Merge pull request #12384 from jeromecoutant/PR_WBDEBUG
...
STM32WB : update BLE part with better support
2020-02-21 12:12:42 +00:00
Marcin Tomczyk
b5d0b7b6f1
IOTSTOR-1009 - TDBStore magic number if endian sensitive - remove incorrect comment
2020-02-21 00:57:50 -08:00
Arto Kinnunen
da04cc3fcf
Update STM32 EMAC driver based on review
...
-Fix len type
-Use ETH_RX_BUF_SIZE instead of hard-coded value 1500
2020-02-21 10:26:57 +02:00
Arto Kinnunen
6a410f89eb
Update STM32 EMAC driver - limit RX frame length
...
DISCO_F769NI EMAC driver may return ethernet packet with illegal
length when driver is under heavy load. In one case, the received
bytes indicate frame length of 53 bytes but advertised data length
was 65518 bytes. In another case EMAC driver variable
`EthHandle.RxFrameInfos.length` contained value 0xFFFF FFFC.
As a work-around accept only 1-1500 bytes long ethernet packets.
2020-02-21 10:26:40 +02:00
Arto Kinnunen
85e85ee93a
Merge commit 'e7914df2fc0d604e27f5c26c935d05181f6be72d'
...
* commit 'e7914df2fc0d604e27f5c26c935d05181f6be72d':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 9b3e144f5b..fb7413b846
2020-02-20 16:29:05 +02:00
Seppo Takalo
94bb831753
Extend storage tests with de-init test case
2020-02-20 12:22:16 +02:00
jeromecoutant
f0370222d8
STM32WB BLE : add FW version when trace is enabled
2020-02-20 09:20:43 +01:00
jeromecoutant
55b42a683e
STM32WB HCIDriver trace update
2020-02-20 09:20:36 +01:00
Martin Kojtal
69a0542ade
Merge pull request #12453 from jeromecoutant/PR_TRACEGROUP
...
STM32 TRACE_GROUP update
2020-02-19 14:33:17 +00:00
Martin Kojtal
1b8370d495
Merge pull request #12444 from DavidLin1577/patch-5
...
Fixed typo: 'lenght' in ns_crc.h
2020-02-19 14:32:26 +00:00
Martin Kojtal
b1c1857ae5
Merge pull request #12445 from DavidLin1577/patch-6
...
Fixed typo: 'lenght' in ip6string.h
2020-02-19 14:32:10 +00:00
Martin Kojtal
d4cff726ee
Merge pull request #12443 from DavidLin1577/patch-4
...
Fixed typo: 'lenght' in coap_service_api.h
2020-02-19 14:31:16 +00:00
Martin Kojtal
9f5ced30dc
Merge pull request #12415 from jeromecoutant/PR_H7README
...
STM32H7 : add readme file for dual core use
2020-02-19 12:52:10 +00:00
jeromecoutant
2df428b36d
MBED_STACK_STATS_ENABLED : Add stack_name information in greentea metrics
2020-02-18 18:00:40 +01:00
Tymoteusz Bloch
0e7a53cdb1
DeviceKey Root of Trust generation refactored.
...
It's no longer automatically and silently created.
2020-02-18 16:32:20 +01:00
jeromecoutant
f000b87911
STM32 TRACE_GROUP update
...
Only 4 characters is allowed
2020-02-17 16:38:42 +01:00
David Lin
49b0f43cff
Fixed typo: 'lenght' in ip6string.h
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 18:38:19 +08:00
David Lin
1df601dea0
Fixed typo: 'lenght' in ns_crc.h
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 18:31:22 +08:00
David Lin
e8f632a3d1
Fixed typo: 'lenght' in coap_service_api.h
...
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 18:26:14 +08:00
Martin Kojtal
3d038e55ee
Merge pull request #12396 from felser/mtqn-IPV4V6
...
PDP Type needs to be IPV4V6
2020-02-14 14:56:48 +00:00
Martin Kojtal
bac5ffec85
Merge pull request #12398 from michalpasztamobica/block_device_unittests
...
Add BlockDevice unittests and fix issues they revealed
2020-02-14 08:23:06 +00:00
Martin Kojtal
a8188bfd4d
Merge pull request #12166 from hugueskamba/hk-baremetal-NRF52840_DK-fix
...
NRF52840_DK: Fix baremetal linker error
2020-02-14 08:21:27 +00:00
Michal Paszta
a3ba7d964d
FlashSimBlockDevice: initialize blanks buffer
2020-02-13 15:19:11 +02:00
Martin Kojtal
d7f3341974
Merge pull request #12339 from jeromecoutant/PR_MODEMVERSION
...
Cellular : add modem version in mbed trace
2020-02-13 13:04:30 +00:00
Martin Kojtal
667f8bbcd3
Merge pull request #12405 from zhiyong80/Customize-Etherhet-Phy-Addr-of-STM32-Boards
...
EthernetInterface fix detecting change of connection status on ARCH_MAX
2020-02-13 09:44:53 +00:00
Martin Kojtal
69a2803319
Merge pull request #12401 from hugueskamba/hk-remove-float-in-ticker
...
Remove float symbols from apps that use the NFCController class
2020-02-12 13:12:46 +00:00
jeromecoutant
0c8add6e28
DISCO_H747I_CM4 compilation issue
...
SCB_DisableDCache() function is only available for M7 core.
2020-02-12 09:14:58 +01:00
Zhiyonh Li
128d5b5170
Update mbed_lib.json
2020-02-10 23:26:28 -08:00
Zhiyonh Li
884f9c99e3
Fixed bug that EthernetInterface doesn't detect change of connection status on ARCH_MAX board.
...
ARCH_MAX board uses 0x01 as PHY address, different from other NUCLEO STM32 boards. To faciliate change of PHY address of customized boards, a configuration entry eth-phyaddr was added and can be overriden as needed in mbed_app.json by adding "stm32-emac.eth-phyaddr": X. Macro ETH_ARCH_PHY_ADDRESS was also renamed to ETH_PHY_ADDRESS, because it is not only used by ARCH_MAX board but also other boards.
2020-02-10 17:56:09 -08:00
Hugues Kamba
65fbee1d33
NRF52840_DK: Fix baremetal linker error
...
Compile in the inclusion of cryptocell310 only if the library is included
in the build
2020-02-10 15:18:46 +00:00
Hugues Kamba
ec2c341767
Remove float symbols from apps that use the NFCController class
...
Use the `Ticker` API that does not use floating point types and literal.
Also pass timeout in seconds instead of incorrectly passing milliseconds.
2020-02-10 15:00:09 +00:00
Martin Kojtal
563c1169b8
Merge pull request #12349 from artokin/wisun_configuration_update
...
Nanostack: Update Wi-SUN configuration
2020-02-10 14:25:08 +00:00
Martin Kojtal
94e191f57a
Merge pull request #12399 from kivaisan/delete_context_if_activation_fails
...
Cellular: Delete created context if activation fails
2020-02-10 14:21:30 +00:00
Martin Kojtal
88438dfd6c
Merge pull request #12394 from miteshdedhia7/pr/bug-fix-misc
...
Fix SDIO communication issue on Cypress 1M boards and other minor fixes
2020-02-10 14:05:11 +00:00
Martin Kojtal
deb4995dae
Merge pull request #12150 from Patater/update-tls-crypto-20191220
...
Update Mbed TLS and Mbed Crypto to latest as of 2019-12-20
2020-02-10 13:04:12 +00:00
Kimmo Vaisanen
2b19fd8661
Cellular: Delete created context if activation fails
...
If new context is created but the activation fails to any error, it will
be automatically deleted.
Fixes issue #12381
2020-02-10 13:14:21 +02:00
Michal Paszta
10481f2f7e
BlockDevice: multiple fixes to BlockDevice classes
...
Incorrect addresses only cause error return values instead of assertion.
ExhaustibleBlockDevice has working get/set_erase_cycle functions and an
array preventing programming without erase.
Fixed MBRBlockDevice partitioning function.
2020-02-10 09:53:49 +02:00
Leon Lindenfelser
77218f04e0
PDP Type needs to be IPV4V6
...
1.Testing with Verizon and AT&T SIMs, PDP type is automatically set to IPV4V6.
2. Testing with AT&T IoT SIM, PDP type automatically sets to IP. It will connect
but not communicate. Setting a subsequent APN to IPV4V6 with the same APN communicates.
2020-02-07 15:31:40 -06:00
midd
5f496a694c
Add missing error checks for emac power up.
2020-02-07 10:25:15 -08:00
Martin Kojtal
d847f9f164
Merge pull request #12305 from kivaisan/remove_multi_athandler_support_v2
...
Cellular: Remove support for multiple ATHandlers
2020-02-07 11:00:41 +00:00
jeromecoutant
5f1ea7d57b
Cellular : add modem version in mbed trace
2020-02-06 14:40:23 +01:00
Michal Paszta
f21b8c7fc1
Remove remaining string-based API functions
...
This removes any compiler warnings.
2020-02-06 11:27:50 +02:00
Michal Paszta
458957d399
IPCore deprecated string-based API removal
...
String-based functions should be replaced with an explicit DNS hostname resolution and a SocketAddress-based API.
2020-02-06 11:27:49 +02:00
Martin Kojtal
8dc15ee6e1
Merge pull request #12293 from mirelachirica/remove_empty_api
...
Cellular: Remove API's empty default implemetations
2020-02-06 09:05:40 +00:00
Martin Kojtal
96861107f5
Merge pull request #12251 from kivaisan/remove_friends_from_statemachine
...
Cellular: Remove friend definitions from cellular state machine
2020-02-05 14:51:29 +00:00
Arto Kinnunen
5836b7e580
Update Wi-SUN configuration
...
-Improve help texts of Wi-SUN configuration values
-Add min/max value checks to Wi-SUN configuration values
-Define default values for some parameters, instead of referring to
Nanostack internal default values.
2020-02-05 15:01:04 +02:00
Martin Kojtal
e3ad1cae55
Merge pull request #12334 from AriParkkila/cell-c030-r412m
...
Update cellular drivers/tests for UBLOX_C030_R412M
2020-02-05 12:50:11 +00:00
Martin Kojtal
c63daa5fb8
Merge pull request #12355 from panmasuo/hani_iot_new_target
...
HANI_IOT: add new target board support
2020-02-04 08:37:12 +00:00
Martin Kojtal
586341541c
Merge pull request #12329 from jeromecoutant/PR_ATCELL
...
AT_CellularStack: crash during TCP test
2020-02-03 17:00:00 +00:00
Martin Kojtal
62cc4ece8d
Merge pull request #12345 from VeijoPesonen/fix_compiler_warnings
...
USBMSD; NFCEEPROM; mbed_compat: Fix compiler warnings
2020-02-03 16:59:35 +00:00
Martin Kojtal
8b829e5c41
Merge pull request #12312 from cy-arsm/cy-arsm/pr/ipv6-fix-SoftAPmode
...
Fix to sending IPV6 UPD packet fails IPv6 enabled in SoftAP intf
2020-02-03 16:55:09 +00:00
Pawel Zarembski
620442305f
hani_iot: add spif storage config
2020-02-03 14:03:09 +01:00
Kevin Bracey
d99f128679
Merge pull request #12316 from rajkan01/bug_fix_general_filesystem_test
...
Fix general filesystem greentea test
2020-01-31 15:01:09 +02:00
Veijo Pesonen
dad7d851db
NFCEEPROM: fixes a compiler warning
2020-01-31 10:18:02 +02:00
Ari Parkkila
1234b3fc28
Cellular: Fix UDP/IP on UBLOX_AT driver
2020-01-29 03:04:46 -08:00
Ari Parkkila
d6f8fece69
Cellular: Enable IP over PPP on UBLOX_C030_R41XM
2020-01-29 03:03:35 -08:00
Vincent Coubard
cb340f8f55
BLE: Fix documentation of set_random_static_address
...
Co-Authored-By: Lingkai Dong <lingkai.dong@arm.com>
2020-01-29 09:53:12 +00:00
Arun S
18285e1fc1
Pairing fails when IPv6 enabled in SoftAP intf
...
Issue: udp_sendto() Fails for multicast IPV6 packet when interface is switched from SoftAP to STA mode.
When SoftAP start is called, add_ethernet_interface() will be called internally to add interface details into netif_list.
When switching from SoftAP to STA mode, add_ethernet_interface() will be called again to append the interace details into netif_list.
When udp_sendto() is called, ip6_route() will return interface as NULL since it consider device as single interface.
Fix: SoftAP mode Stop, call remove_ethernet_interface() to remove the interface from the netif_list.
2020-01-29 15:07:52 +05:30
Vincent Coubard
1970761880
BLE : Replace calls to Gap::setAddress with HCIDriver::set_random_static_address
2020-01-28 13:35:19 +00:00
Vincent Coubard
c66dd7fd1f
BLE: Add an HCI driver API to set the random static address.
2020-01-28 13:29:11 +00:00
jeromecoutant
a1fb286c06
AT_CellularStack: crash during TCP test
...
function tries to access _socket[1] whch is not opened
2020-01-28 13:10:41 +01:00
Rajkumar Kanagaraj
b2890822d9
Incorporated the review comment
2020-01-27 09:21:12 -08:00
Rajkumar Kanagaraj
46a1f01b6d
Fix general filesystem greentea test
...
ARM microlib is not supported below features
- fflush(NULL) return `-1` instead `0`
- fread with size parameter "Zero".
- if file opened in append mode, file postion starts from the beginning.
2020-01-27 06:51:52 -08:00
Anna Bridge
ceaf562a11
Merge pull request #12283 from jeromecoutant/PR_STM32WB
...
STM32WB - Update CubeDriver from v1.0.0 to v1.4.0
2020-01-25 11:54:29 +00:00
Kimmo Vaisanen
bd0f939277
Cellular: Remove support for multiple ATHandlers
...
Major changes:
- Dependency to FileHandle removed from base classes
- AT_CellularDevice owns the default FileHandle and shares it with AT -classes
- Hang-up -detection moved as CellularContext::configure_hup(). Cannot be configured via CellularDevice any more.
Result on NRF52840_DK + BG96:
GCC:
Total Static RAM memory (data + bss): 29360(+296) bytes
Total Flash memory (text + data): 130660(-832) bytes
ARM:
Total Static RAM memory (data + bss): 261554(+8) bytes
Total Flash memory (text + data): 127573(-1193) bytes
IAR:
Total Static RAM memory (data + bss): 25479(+296) bytes
Total Flash memory (text + data): 102418(-527) bytes
RAM increase is because now ATHandler is no longer created with new -operator but is now member of AT_CellularDevice,
so image tool is able to count it. Actually total RAM consumption has decreased due to removed variables.
2020-01-23 09:27:44 +02:00
PARKJIHOON
4460d26eab
Default use BEDTLS_SHA512_SMALLER for SW fallback
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-01-22 14:40:51 +09:00
Andrew Chong
dc64bd8a05
Changed 2018 or 2019 copyright to 2020 via sed auto change.
2020-01-22 14:40:51 +09:00
Andrew Chong
3677b1b04e
Applied the latest astyle.
2020-01-22 14:40:51 +09:00
Andrew Chong
65e9cac918
Updated the code fix of timer and Mbed TLS.
2020-01-22 14:40:51 +09:00
Andrew Chong
d242850de4
Ran astyle on features/mbedtls/targets/TARGET_Samsung.
2020-01-22 14:40:50 +09:00
PARKJIHOON
26f7e26568
tidy up PR comments #3
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-01-22 14:40:50 +09:00
PARKJIHOON
2e0ff5d145
tidy up PR comments #1
...
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
2020-01-22 14:40:50 +09:00
PARKJIHOON
8ab00df7b4
Adding Samsung Exynos i S111 target code.
...
Adding a new target of HW development kit using [Samsung Exynos i S111](https://www.samsung.com/semiconductor/minisite/exynos/products/iot/exynos-i-s111/ ) module to Mbed-OS.
This will widen the HW choices of Mbed-OS enabled NB-IoT, GNSS and Security (eFuse, AES, SHA-2, PKA, Secure Storage, Security Sub-System, [PUF](https://en.wikipedia.org/wiki/Physical_unclonable_function )) modules.
Target Name: S5JS100
Co-authored-by: Ivan Galkin <ivan.galkin@samsung.com>
Co-authored-by: Seokwon Lee <swon.lee@samsung.com>
Co-authored-by: Zhizhe Zhu <zhizhe.zhu@samsung.com>
Co-authored-by: Xinyi Zhao <xinyi.zhao@samsung.com>
2020-01-22 14:40:50 +09:00
Anna Bridge
80fe861f1d
Merge pull request #12035 from kjbracey-arm/callback_prep
...
Preparation for Callback changes
2020-01-21 11:50:43 +00:00
Anna Bridge
7e2f5a330b
Merge pull request #12281 from AriParkkila/cell-stack-deinit
...
Cellular: Refactor socket_stack_init() from generic to modem specific
2020-01-21 11:47:25 +00:00
Mirela Chirica
e2048b06b2
Cellular: Remove API's empty default implemetations
2020-01-21 10:45:09 +02:00
jeromecoutant
b74756dceb
STM32WB Enable BLE HCIDriver for all targets
...
+ astyle
2020-01-20 17:24:42 +01:00
jeromecoutant
8f6171f8b0
STM32WB - BLE restructure
2020-01-20 16:10:55 +01:00
Martin Kojtal
9c6cdbfed4
Merge pull request #12060 from kyle-cypress/pr/kvstore-general-test-fix
...
Improve reliability of KVStore general tests
2020-01-20 14:56:41 +00:00
Ari Parkkila
2871721e08
Cellular: Refactor socket_stack_init() from generic to modem specific
2020-01-20 00:56:09 -08:00
Martin Kojtal
ecf4d62dc5
Merge pull request #12265 from AriParkkila/cell-fea-refactor
...
Refactor unnecessary functions from cellular driver
2020-01-17 13:57:06 +00:00
Martin Kojtal
4924264769
Merge pull request #12211 from hugueskamba/hk-replace-uartserial-cellular
...
Cellular: Replace UARTSerial references with BufferedSerial
2020-01-17 13:30:12 +00:00
Ari Parkkila
031d90a3ce
Fix UDP socket test cases
...
Fix UDP socket test cases to check more strictly on failure,
and lower trace levels to not print errors on successful cases.
2020-01-17 01:24:51 -08:00
Ari Parkkila
f9eef97ead
Cellular Refactor get_send_delay() into CellularProperty
2020-01-17 00:28:41 -08:00
Hugues Kamba
9e11e5b43d
Cellular: Replace UARTSerial references with BufferedSerial
...
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-16 16:22:07 +00:00
Ari Parkkila
ceea992b40
Cellular: Refactor is_protocol_supported() into CellularProperty
2020-01-15 23:04:00 -08:00
Ari Parkkila
e2cb18061e
Cellular: Refactor get_max_socket_count() into CellularProperty
2020-01-15 23:04:00 -08:00
Kimmo Vaisanen
2c4194bbe3
Cellular: Fix compilation fail with APN lookup enabled
...
Compilation failed if cellular APN lookup was enabled as stop command has been
removed.
2020-01-15 14:42:04 +02:00
Martin Kojtal
606f3a35a7
Merge pull request #12260 from Szalacinski/master
...
Add KSZ8041 as a supported PHY for the LPC17xx series
2020-01-15 13:07:11 +01:00
Martin Kojtal
1b11d2cb02
Merge pull request #12249 from kivaisan/remove_deprecated_cellulardevice_stop
...
Cellular: Remove deprecated CellularDevice::stop()
2020-01-15 13:06:27 +01:00
Martin Kojtal
bfbed2de7b
Merge pull request #12243 from 0xc0170/fix_12242_recreate
...
Add timer shutdown after time stop on deinit
2020-01-15 13:04:04 +01:00
Martin Kojtal
c53f4d2344
Merge pull request #12227 from AnttiKauppila/BG96_fix
...
Cellular: AT + QICSGP set up APN fix
2020-01-15 12:59:09 +01:00
Martin Kojtal
cbca99d38f
Merge pull request #12160 from AGlass0fMilk/fix-prs-config
...
nRF52: Properly configure nRF SDK for nRF52-series targets
2020-01-15 12:58:32 +01:00
Caleb Szalacinski
e4e0225a0e
Add KSZ8041 as a supported PHY for the LPC17xx series
2020-01-14 19:46:39 -06:00
Kimmo Vaisanen
52b00a296e
Cellular: Remove friend definitions from cellular state machine
...
Instead of defining which classes can access state machine, CellularStateMachine
class is now "a normal" CPP class with public API.
2020-01-14 12:19:20 +02:00
Kimmo Vaisanen
0d525fff29
Cellular: Remove deprecated CellularDevice::stop()
...
CellularDevice::shutdown() should be used instead.
2020-01-14 10:47:05 +02:00
Kyle Kearney
d8f47bdaa3
Improve reliability of KVStore general tests
...
In kvstore_init, prior to initializing the kvstore, erase the
underlying block storage device. This ensures that each test run
starts from a consistent state and avoids failures that can result
if a previous test run left the storage in an inconsistent state.
2020-01-13 11:32:12 -08:00
Bram de Boer
b444b7c560
Added timer shutdown after time stop on deinit
2020-01-13 13:37:50 +00:00
George Beckstein
cb4f3db2a7
Replace preprocessor "UARTx_ENABLED" with "NRFX_UARTEx_ENABLED".
2020-01-10 11:30:52 -05:00
Evelyne Donnaes
8a4bba33bd
Fixed baremetal build failures
2020-01-10 13:20:59 +00:00
Antti Kauppila
eb78ba6624
Fixed PDP type handling
2020-01-10 13:48:25 +02:00
Antti Kauppila
2fb167be26
Fixed IOTCELL-2384
...
Earlier we called AT+QICSGP only if the username and password was set.
It seems that we must call it also to set up APN while in AT mode.
This commit fixes the issue + updated IPv4/v6 handling to be correct in the same call
2020-01-09 17:19:24 +02:00
Kevin Bracey
8b02c4ed1c
Add missing <string.h> includes
2020-01-09 14:52:54 +02:00
Kevin Bracey
d6a48b5124
Turn NULLs into nullptr
...
Avoids overload problems with Callback(nullptr) versus Callback(fnptr).
2020-01-09 14:52:54 +02:00
Martin Kojtal
ec3fc672a1
Merge pull request #12215 from u-blox/ubx_get_ip_addr
...
Cellular: Implementation of virtual get_ip_address funtion in ublox-api
2020-01-09 12:43:12 +01:00
Martin Kojtal
1fb9dd7ddd
Merge pull request #12122 from AnttiKauppila/visibility_fixes
...
ATHandler refactoring
2020-01-09 12:05:08 +01:00
Martin Kojtal
974baaf199
Merge pull request #12143 from VeijoPesonen/blockdevices_testable
...
Blockdevice config changes to make it possible to run littlefs filesystem tests
2020-01-09 12:04:20 +01:00
mudassar-ublox
075a6fdd99
Override virtual get_ip_address funtion in ublox-api for targets UBLOX_C030_U201 and UBLOX_C027
2020-01-09 12:16:48 +05:00
Martin Kojtal
8d94d4ce92
Merge pull request #12214 from kivaisan/move_string_to_pdp_type_to_cellularcontext
...
Cellular: Move string_to_pdp_type method to CellularContext
2020-01-08 16:59:58 +01:00
Martin Kojtal
af03f839e2
Merge pull request #10959 from OpenNuvoton/nuvoton_m2351_psa
...
M2351: Support TFM level 1
2020-01-08 16:09:35 +01:00
Kimmo Vaisanen
0d7cc428b1
Cellular: Move string_to_pdp_type method to CellularContext
...
string_to_pdp_type is only used in CellularContext classes and by having
the conversion method in CellularContext it can be used to check also
the non-standard Non-IP PDP type string.
2020-01-08 12:15:51 +02:00
Martin Kojtal
d4c2fd56a9
Merge pull request #12195 from mikaleppanen/ppp_trace_disable
...
Corrected PPP debug trace flagging
2020-01-07 16:41:15 +01:00
Antti Kauppila
5553d0acd3
ATHandler class refactor
...
Refactored ATHandler class to have clear private and public elements
Also removed virtuality from ATHandler
Unittests updated to reflect changes
2020-01-07 17:15:27 +02:00
Antti Kauppila
36ca4d6516
ATHandler relocated
...
ATHandler is part of our API so header file was moved under API folder and .cpp file was moved under device/ folder
ATHandler is used in both AT and PPP mode so it has been in slightly wrong place at the beginning.
2020-01-07 17:15:27 +02:00
Martin Kojtal
c8ac1ef2b8
Merge pull request #12196 from kjbracey-arm/lwipclose
...
LWIP: don't pbuf_free(NULL) on socket close
2020-01-07 15:56:13 +01:00
Martin Kojtal
3e790cc9ab
Merge pull request #12065 from AriParkkila/cell-fea-nidd
...
Non-IP socket implementation for NIDD over CP
2020-01-07 15:55:15 +01:00
Martin Kojtal
d07d7ca722
Merge pull request #12185 from paul-szczepanek-arm/db-delete
...
BLE: fix pointer not set to null on delete
2020-01-07 14:56:04 +01:00
Martin Kojtal
9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
...
Add Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Martin Kojtal
2d3c4022ae
Merge pull request #12193 from kivaisan/move_event_thread_to_cellulardevice
...
Cellular: Move cellular event queue thread ownership to CellularDevice
2020-01-07 14:04:55 +01:00
Ari Parkkila
7899fead59
Cellular: Refactor CellularBase from AT_ControlPlane_netif
2020-01-07 04:03:33 -08:00
Martin Kojtal
39daa5fd77
Merge pull request #12109 from hugueskamba/hk-replace-rawserial-usage
...
Replace RawSerial as it has been deprecated
2020-01-07 12:59:57 +01:00
Kevin Bracey
988ef099c7
LWIP: don't pbuf_free(NULL) on socket close
...
`pbuf_free(NULL)` causes an `LWIP_ASSERT`. Make the call conditional.
Fixes #12184
2020-01-07 13:20:14 +02:00
Mika Leppänen
9e41f1fc7d
Corrected PPP debug trace flagging
...
Some parts of PPP debug traces were enabled also on non-debug builds.
Now they are correctly disabled. Corrected also compiler warnings
that became visible when trace macros were flagged (if clauses without
brackets).
2020-01-07 12:07:50 +02:00
Martin Kojtal
0f5c3f0b37
Merge pull request #12189 from dustin-crossman/cy8cproto_062_4343w-baudrate-fix
...
Removed hardcoded CY8CPROTO_062_4343W bt baudrate limit.
2020-01-07 11:04:43 +01:00
Martin Kojtal
e666848f07
Merge pull request #12194 from juhhei01/socket_api_fix
...
Nanostack Socket event handler fix
2020-01-07 11:00:28 +01:00
Ari Parkkila
4b3ef73333
Cellular: Fix astyle
2020-01-06 22:35:53 -08:00
Ari Parkkila
85baad850f
Cellular: Add NIDD for U-blox/N2XX
2020-01-06 22:35:18 -08:00
Ari Parkkila
f695e278ea
Cellular: Add NIDD for Quectel/BC95
2020-01-06 22:35:18 -08:00
Ari Parkkila
033402d597
Cellular: Change CellularNonIPSocket to poll before timeout
2020-01-06 22:35:18 -08:00
Ari Parkkila
f4158ca00e
Cellular: Change ATHandler debug print levels
2020-01-06 22:35:18 -08:00
Ari Parkkila
913cbd96a6
Cellular: Change 3GPP TS 27.007 NIDD to async
...
Add a missing license header.
Remove semaphores and add +CRTDCP to support async operation.
Fix delete context and disconnect to execute just once.
Add support for NONIP PPD type.
Change CellularNetwork::clear() to virtual so it can be overridden.
2020-01-06 22:35:18 -08:00
Ari Parkkila
972d8a6107
Cellular: Add count/dequeue methods in CellularList
2020-01-06 22:33:50 -08:00
Ari Parkkila
7374b22191
Cellular: Change CellularNonIPSocket to singleton
2020-01-06 22:33:49 -08:00
Ari Parkkila
feee2a234e
Cellular: Fix Non-IP of Quectel/BG96 modem driver
...
Add missing license headers.
Remove semaphores to allow async operation.
Change hex format to allow binary payload.
Limit payload size to 100 bytes.
Fix missing plus char at +QCFGEXT.
2020-01-06 22:33:49 -08:00
Kimmo Vaisanen
6c647104c7
Cellular: Move cellular event queue thread ownership to CellularDevice
...
Earlier CellularDevice has owned event queue used by cellular (state machine and ATHandler for example),
but the thread used to dispatch the queue has been owned by state machine.
This commit moves the event queue thread to CellularDevice so now the ownership of cellular event queue
is in one place.
2020-01-07 08:28:30 +02:00
Hugues Kamba
dbaeeaf758
Replace RawSerial instances as it has been deprecated
2020-01-06 15:48:49 +00:00
ccli8
41d95ef2fb
[M2351] Support TFM level 1
2020-01-06 15:55:00 +08:00
Dustin Crossman
dbedc86c06
Removed hardcoded CY8CPROTO_062_4343W bt baudrate limit.
2020-01-03 16:46:00 -08:00
Juha Heiskanen
b71d5edd38
Nanostack Socket event handler fix
...
SOCKET_TX_DONE not generate event signal anymore for SOCKET_MODE_DATAGRAM.
Event handler try to read socket which is not necessary in that case.
2020-01-03 18:24:12 +02:00
Martin Kojtal
7fd637b66b
Merge pull request #12095 from NXPmicro/Update_MXRT_SDK6
...
Update MXRT1050 to SDK 6.0
2020-01-03 15:22:13 +00:00
Veijo Pesonen
9763ad3b2d
DataFlashBlockDevice: Makes default configuration to use mbed_lib.json settings
...
DataFlashBlockDevice parameters come from mbed_lib.json if not provided
explicitly.
2020-01-03 15:31:01 +02:00
Veijo Pesonen
67676dc123
SPIFReducedBlockDevice: Makes default configuration to use mbed_lib.json settings
...
SPIFReducedBlockDevice parameters come from mbed_lib.json if not provided
explicitly.
Introduced an app config file for running filesystem tests with RSPIF
block device
2020-01-03 15:30:13 +02:00
Veijo Pesonen
23f87877a1
SPIFBlockDevice: Makes default configuration to use mbed_lib.json settings
...
SPIFBlockDevice parameters come from mbed_lib.json if not provided
explicitly.
Introduced an app config file for running filesystem tests with SPIF
modules
2020-01-03 15:28:41 +02:00
Veijo Pesonen
3be2b8bf12
QSPIFBlockDevice: Makes default configuration to use mbed_lib.json settings
...
QSPIFBlockDevice parameters come from mbed_lib.json if not provided
explicitly.
Introduced an app config file for running filesystem tests with QSPIF
modules
2020-01-03 15:25:40 +02:00
Veijo Pesonen
803ae3444d
SDBlockDevice: Makes default configuration to use mbed_lib.json settings
...
SDBlockDevice parameters come from mbed_lib.json if not provided
explicitly.
Introduced an app config file for running filesystem tests.
2020-01-03 15:25:40 +02:00
Martin Kojtal
0dbf34bf06
Merge pull request #12123 from kivaisan/refactor_variable_visibilities
...
Cellular: Refactor cellular variable visibilities
2020-01-03 12:11:52 +00:00
paul-szczepanek-arm
e16889d694
set pointer to null on delete
2020-01-03 09:00:59 +00:00
Martin Kojtal
de798c4f37
Merge pull request #12147 from ristohuhtala/mbed-coap-builder-uint-overflow
...
mbed-coap uint16 overflow fix
2020-01-02 13:51:14 +00:00
Martin Kojtal
b79da0c7f2
Merge pull request #12146 from ristohuhtala/mbed-coap-parser-buffer-overflow
...
mbed-coap buffer overflow fix
2020-01-02 13:50:52 +00:00
Martin Kojtal
b8045fb29b
Merge pull request #12164 from shuopeng-deng/pr-dev/remove-hardcoded-timeout-in-cypress-bt-code
...
Pr dev/remove hardcoded timeout in cypress bt code
2020-01-02 12:52:51 +00:00
Risto Huhtala
82caa9007e
Code review fix. Removing extra spaces
2020-01-02 13:40:50 +02:00
Martin Kojtal
6baa5e479d
Merge pull request #12020 from linlingao/fix_rat
...
Fix issues in setting radio access technology
2020-01-02 10:08:11 +00:00
Kimmo Vaisanen
f7cc3db70b
Cellular: Refactor cellular variable visibilities
...
- Earlier some variables were public even though used only internally
- Also refactored variables to the end of class definitions
- Removed duplicate _property_array from CellularDevice
- Changed _impl methods as protected
2019-12-30 10:00:24 +02:00
Risto Huhtala
1d220135c9
Update mbed-coap changelog-md with v5.1.3 information
2019-12-30 09:37:17 +02:00
Bartek Szatkowski
50455c0aa4
Remove unsupported folder
...
Mbed OS was carrying this directory for a long time. The main reason was
to enable users to benefit from some form of USB stack. Now when there
is proper implementation of USB stack in Mbed I think it's time for
unsupported directory to go. If any other functionality present in this
directory will be needed it'll need to be introduced in Mbed OS
properly.
2019-12-27 16:04:49 +01:00
Antti Kauppila
ca7848d854
Refactored away onboard_modem_api because it is not needed at all
...
All targets must implement soft_- and hard_power_on/off() functions which are practically same what onboard_modem_api offered.
These were seen as a duplicate features and therefore we removed this.
All targets involved have been updated to reflect the changes
2019-12-27 16:04:10 +01:00
Antti Kauppila
48cf631456
relocated NonIP related files to netsocket root folder
2019-12-27 16:04:10 +01:00
Anna Bridge
5bef46b71a
Merge pull request #12063 from michalpasztamobica/get_ip_address_if_fixed
...
Move get_ip_address_if() to NetworkStack and include it in multihoming test
2019-12-24 11:04:59 +00:00
Shuopeng Deng
1d54f665b9
fix code review ARs
2019-12-20 09:16:59 -08:00
Ari Parkkila
d5abab8843
Cellular: Add check for network congestion in BC95 driver
2019-12-20 04:25:26 -08:00
Jaeden Amero
cfc9e9fa65
tls: Update Mbed TLS to 2.20.0d1
2019-12-20 11:54:44 +00:00
Jaeden Amero
3cff0771b5
crypto: Update to Mbed Crypto 3.0.0d0
2019-12-20 11:54:44 +00:00
Martin Kojtal
789a193696
Merge pull request #12133 from kivaisan/limit_at_trace_length
...
Cellular: Suppress long AT traces
2019-12-20 11:24:38 +01:00
Risto Huhtala
03b12ed334
mbed-coap uint16 overflow when calculating packet data size
2019-12-20 11:34:53 +02:00
Risto Huhtala
9f0c0043d8
mbed-coap Buffer overflow when paring CoAP message
2019-12-20 10:42:54 +02:00
Shuopeng Deng
7e79623b39
Removed a hardcoded timeout in CyH4TransportDriver.cpp
...
Replaced a hardcoded timeout in CyH4TransportDriver.cpp with a cypress
hal function. The cypress PUTC hal API only blocks until data has been
send into the HW buffer, not until all data has been out of the HW
buffer. Modified an API to block untill all tx transmit is complete.
This allows the removal of a hardcoded timeout in
CyH4TransportDriver.cpp that waits for data int the HW buffer to be
sent.
2019-12-19 15:35:38 -08:00
Lin Gao
0bc8f4f726
Revert BUFF_SIZE fix, to be fixed in another PR. Add missing property entries
2019-12-19 13:45:30 -06:00
Lin Gao
c8524c25be
add config option and property to choose automatic fallback for PLMN manual operator selection
2019-12-19 11:26:13 -06:00
Lin Gao
d5d4520d62
Implement set_access_technology_impl for Telit ME910
2019-12-19 11:23:30 -06:00
Lin Gao
a5a9683348
Change AT+COPS mode to manual first then fall back to auto to improve reliability. Fix a syntax error when RAT is set
2019-12-19 11:23:30 -06:00
Lin Gao
9e17653723
Increase BUFF_SIZE to avoid error in AT response when debug is turned on
2019-12-19 11:21:14 -06:00
Anna Bridge
c5199677cb
Merge pull request #12132 from michalpasztamobica/lwip_remove_unused_mbox_configs
...
LWIP: Remove unused MBOX configs
2019-12-19 16:41:22 +00:00
Kimmo Vaisanen
f5ef066055
Cellular: Suppress long AT traces
...
When AT traces are enabled and very long AT commands are traced,
system can easily go to unwanted state. Therefore the length of the AT
traces is limited to DEBUG_MAXLEN (currently 60 characters).
This commit fixes read_hex_string, read_bytes and write to use this
limitter.
2019-12-19 09:54:23 +02:00
Michal Paszta
02a23e50ba
LWIP: Remove unused MBOX configs
...
The configs have never been used and LWIP just uses its own settings.
2019-12-18 12:27:07 +02:00
Ari Parkkila
31bd1a795b
Cellular: Fix Gemalto driver to handle remote peer closed
2019-12-18 01:37:53 -08:00
Ari Parkkila
89b66465c2
Cellular: Fix Gemalto/Cinterion driver
2019-12-18 01:10:51 -08:00
Anna Bridge
81d4a72359
Merge pull request #12120 from mtomczykmobica/ONME-4433
...
ONME-4433 SocketAddress::operator== should also check port
2019-12-17 16:43:19 +00:00
Anna Bridge
eac7d30ca5
Merge pull request #12114 from AriParkkila/cell-dns-zero
...
Cellular: Fix to not use all zero address for DNS
2019-12-17 16:41:39 +00:00
Anna Bridge
309183420b
Merge pull request #12111 from rajkan01/feature_feof_disable
...
Microlib: Disable feof function usage in general filesystem test
2019-12-17 16:36:54 +00:00
Anna Bridge
e28daf7c84
Merge pull request #12110 from AnttiKauppila/cp_recv_len
...
Moved CP Max recv len into mbed_lib.json
2019-12-17 16:28:37 +00:00
Anna Bridge
298f3f22b7
Merge pull request #12088 from AriParkkila/cell-cops
...
Cellular: Fix AT command for COPS manual network selection
2019-12-17 16:24:28 +00:00
Martin Kojtal
e2ee3817be
Merge pull request #12108 from juhhei01/patch-1
...
Wi-sun network event handler update
2019-12-17 10:11:29 +01:00
Marcin Tomczyk
35e2c9d315
ONME-4433 SocketAddress::operator== should also check port
2019-12-16 15:38:49 +01:00
Przemyslaw Stekiel
25f354fe1f
storage: fix static pin-map for ARMC5
2019-12-16 15:38:07 +01:00
Antti Kauppila
6d0b2fae9b
Moved CP Max recv len into mbed_lib.json
...
According to [3GPP-TS_24.008] the maximum size for Non-IP link MTU is 1358 octets to prevent fragmentation in the backbone network.
Therefore reduced the maximum size to follow the standard.
2019-12-16 15:48:46 +02:00
Tymoteusz Bloch
8b2f4c2e7e
Getaddrinfo interface for multiple DNS adresses added.
...
New members are added to the network interface
-getaddrinfo
-getaddrinfo_async
gethostbyname is unchanged but gethostbyname_async result param now contains results od DNS records found.
Test cases for sync/async added added to DNS test folder.
2019-12-16 13:59:46 +01:00
Ari Parkkila
50ab644380
Cellular: Fix to not use all zero address for DNS
2019-12-16 04:56:45 -08:00
Rajkumar Kanagaraj
95f56bac30
Microlib: Disable feof function usage in tests
...
feof function is not supported in Microlib library. so disabling all the feof function usage in the green tea test.
2019-12-16 04:34:20 -08:00
Juha Heiskanen
3e51bd41ee
Wi-sun network event handler update
...
Wi-sun network event ARM_NWK_NWK_CONNECTION_DOWN will set Bootstrap state to active and notify interface state to MESH_BOOTSTRAP_STARTED
2019-12-16 12:56:53 +02:00
Martin Kojtal
fd4288a0dc
Merge pull request #12027 from michalpasztamobica/dns_module_test
...
Modify nsapi_dns tests to be module tests
2019-12-16 09:49:16 +01:00
Mahesh Mahadevan
c538919254
MIMXRT1050: Update the ENET driver to use wait_us
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-12-13 12:08:19 -06:00
Anna Bridge
8fcfbe117f
Merge pull request #12079 from AnttiKauppila/coverity_fixes
...
Coverity fixes
2019-12-12 16:28:12 +00:00
Ari Parkkila
483c557f9b
Cellular: Fix AT command for COPS manual network selection
2019-12-12 00:31:43 -08:00
Michal Paszta
c2856ef710
Remove deprecated string-based get_ip_address_if
2019-12-12 09:22:32 +02:00
Michal Paszta
d5d04ebb90
Move get_ip_address_if to the right class
...
get_ip_address_if was wrongly added to OnboardNetworkStack::Interface, while it should in fact be placed directly in OnboardNetworkStack.
2019-12-12 09:20:27 +02:00
Antti Kauppila
11b1df00b8
Coverity fix for mbed-client-cli
...
- uint64_t cast added to avoid overflow
2019-12-11 09:32:02 +02:00
Antti Kauppila
c42426a889
Coverity fixes for UBlox
...
- Unneeded class variables refactored away
- Init function refactored to remove duplicate code
2019-12-11 09:26:41 +02:00
Antti Kauppila
35c2b60800
Coverity fix for ATHAndler
...
Unneeded NULL check removed
2019-12-11 09:25:29 +02:00
Martin Kojtal
a996ea27f7
Merge pull request #12057 from OpenNuvoton/nuvoton_emac_max_recv
...
NUC472/M487: Limit EMAC receive frame length as 1518
2019-12-11 08:12:02 +01:00
Martin Kojtal
06da49984f
Merge pull request #12069 from jeromecoutant/PR_ASTYLE
...
STM32: astyle update
2019-12-11 08:01:19 +01:00
Martin Kojtal
f10e4ac04b
Merge pull request #11996 from ARMmbed/feature-cellular
...
Feature cellular
2019-12-10 14:54:57 +01:00
jeromecoutant
54aa300a3c
STM32 EMAC astyle corrections
2019-12-10 14:39:47 +01:00
jeromecoutant
3903cb4c97
STM32 MBEDTLS astyle corrections
2019-12-10 14:39:46 +01:00
Martin Kojtal
f2a1804d51
Merge pull request #12058 from mprse/static_pinmap_for_cloud_client
...
Add static pin-map support: SDBlockDevice, kvstore, system storage (reduce ROM used by Mbed Cloud Client example)
2019-12-10 14:19:18 +01:00
Przemyslaw Stekiel
ee5953ad74
Add static pinmap support: SDBlockDevice, kvstore, system storage
...
This is done in order to enable static pin-map for Mbed Cloud Client Example. This should give extra ROM savings, ~1KB.
2019-12-10 12:26:23 +01:00
Michal Paszta
fd46af67c6
Modify nsapi_dns tests to be module tests
...
The nsapi_dns tests were cross-class tests anyway, going through nsapi_dns and UDPSocket. Now they also include EthernetInterface and only mock the NetworkStack, which makes them the most cross-class module test we could think of in netsocket module.
2019-12-10 11:05:25 +02:00
Martin Kojtal
77b1ee51ef
Merge pull request #12050 from SeppoTakalo/IOTSTOR-992
...
Fix TDBStore sizes for SecureStore tests
2019-12-10 09:47:12 +01:00
cyliangtw
42103f089d
Correct the definition of M487/NUC472 EMAC NU_ETH_MAX_FLEN & PACKET_BUFFER_SIZE
2019-12-10 10:40:03 +08:00
Antti Kauppila
e221ba9bb9
initialisation added for _property_array
2019-12-09 15:25:22 +02:00
Antti Kauppila
7a87023921
Disabled SMS by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
30ea858f51
Disable APN lookup by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
90d3dc1f13
CellularStack fixed
2019-12-09 15:25:22 +02:00
Antti Kauppila
e51230c5e4
Remove CellularBase and AT_CellularBase
...
Removed CellularBase and AT_CellularBase from cellular stack and updated both code and unittests accordingly.
Moved property handling into AT_CellularDevice
2019-12-09 15:25:22 +02:00
cyliangtw
54d8c40f96
Limit max of NUC472 EMAC recv frame len as 1518
2019-12-09 19:15:23 +08:00
cyliangtw
410e4173b1
Limit max of M487 EMAC RX frame len as 1518
2019-12-09 18:12:26 +08:00
Seppo Takalo
1f99703806
Fix TDBStore sizes for tests
...
Tests must require at least 2 erase sectors per TDBStore,
so that the garbage collection may work.
2019-12-09 11:18:29 +02:00
Martin Kojtal
e9cb9cb014
Merge pull request #12018 from jeromecoutant/PR_OLIMEX_EMAC
...
STM32_EMAC cleanup
2019-12-05 14:03:46 +01:00
Martin Kojtal
412a9317de
Merge pull request #12017 from VeijoPesonen/remove_nvstore
...
NVStore: already deprecated implementation removed
2019-12-05 09:10:30 +01:00
Martin Kojtal
e2a11c0297
Merge pull request #11988 from ARMmbed/feature_securestore_refactoring
...
Small fixes for SecureStore
2019-12-05 08:23:35 +01:00
Martin Kojtal
58da078df9
Merge pull request #12015 from jeromecoutant/PR_ETHERNET_ARMC5
...
STM EMAC: compilation issue with ARMC5
2019-12-05 08:23:11 +01:00
Martin Kojtal
9248169f1f
Merge pull request #11976 from pstolarz/lwip_mbox_fix
...
LWIP system mailbox overflow fix
2019-12-04 15:54:59 +01:00
Seppo Takalo
21acb66c1c
TDBStore: remove unused variables
2019-12-04 16:21:55 +02:00
Seppo Takalo
7902100238
SecureStore: Get rid of casting by using opaque pointers.
2019-12-04 16:21:55 +02:00
Seppo Takalo
23b2b8c4f3
SecureStore: Deinitialize also member TDBStorages on deinit()
2019-12-04 14:55:45 +02:00
Seppo Takalo
650b93b66c
SecureStore: Validate internal RBP data first
...
Previous logic was allowing external storage to be tampered by setting
write-protected keys, so values could not be updated, but it was still
used by get().
2019-12-04 14:55:45 +02:00
Seppo Takalo
bde9753696
SecureStore: Don't use flags of corrupted data. Allow removing.
2019-12-04 14:55:45 +02:00
Seppo Takalo
56d67360ef
SecureStore: Validate internal header size before using its values.
2019-12-04 14:55:45 +02:00
Martin Kojtal
7a085b472b
Merge pull request #11987 from ARMmbed/feature_tdbstore_refactoring
...
TDBStore refactoring
2019-12-04 13:51:50 +01:00
Martin Kojtal
6f18801ccc
Merge pull request #11986 from ARMmbed/feature_storage_test_improvements
...
Storage related test improvements and small fixes
2019-12-04 10:16:28 +01:00
Martin Kojtal
4ae8984819
Merge pull request #11878 from michalpasztamobica/api_hardening
...
Improve API documentation and test coverage
2019-12-04 10:15:43 +01:00
Martin Kojtal
34c9cf93e5
Merge pull request #11975 from michalpasztamobica/pppinterface_pointer_checks
...
PPPinterface: remove faulty address getter check for invalid pointer
2019-12-04 10:14:30 +01:00
Martin Kojtal
bbf68d7272
Merge pull request #11983 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc3
...
Ublox Odin Driver OS 5 v3.7.1 rc3: Network-WiFi Test Crash Fixes
2019-12-04 10:12:11 +01:00
Piotr Stolarz
9a70621507
Review fixes
2019-12-03 18:04:15 +01:00
Martin Kojtal
e4e6ac5bd6
Merge pull request #12008 from AriParkkila/cell-at-string-fix
...
Cellular: Fix ATHandler string handling
2019-12-03 15:52:39 +01:00
jeromecoutant
093099b2e7
STM_EMAC: move TARGET_OLIMEX to the correct directory
2019-12-03 14:48:05 +01:00
Veijo Pesonen
060a1c6df7
NVStore: deprecated implementation removed
2019-12-03 15:36:31 +02:00
jeromecoutant
27f40156b5
STM EMAC: compilation issue with ARMC5
2019-12-03 14:33:24 +01:00
Seppo Takalo
ce7b196b26
TDBStore: Don't copy more data than what we can hold
2019-12-03 15:20:10 +02:00
Seppo Takalo
fe3c3550f9
TDBStore: Move Assert to init(), so Block parameter are initialised correctly
2019-12-03 15:20:10 +02:00
Seppo Takalo
adf409f7f7
Do not require Flash device for TDBStore
...
TDBStore used to rely on Flash devices erase value.
This logic has been removed, and TDBStore can do the entire erase
logic itself, in case the given BlockDevice does not offer erase().
This relies on BlockDevice to properly return -1 in BlockDevice::get_erase_value().
2019-12-03 15:20:10 +02:00
Seppo Takalo
3dc6c4879f
TDBStore: erase one program unit more, when cleaning an area
2019-12-03 15:20:10 +02:00
Seppo Takalo
93d7422f75
TDBStore: Do no garbage_collect() on init()
...
Previous logic caused garbage collection to kick in, if the init() was
called on empty storage. This has effect of erasing areas twice, if both
areas were empty.
Re-write logic so that we erase areas only on garbage_collect() or reset().
The init() logic already chooses the active area, so no need to touch,
until keys are modified.
Removed also the is_erase_unit_erased() as this is working only on
FLASH devices, and TDBStore should be refactored to work on all storages.
2019-12-03 15:20:10 +02:00
Seppo Takalo
36523282fa
TDBStore: Keep copy of reserved data on both areas.
...
Change the "reserved data" logic so that every time we erase and area,
the content of reserved data is then immediately copied to newly erased
area. This keeps two copies of the data.
When data is requested, return only if checksum is matching.
When data is written, only allow if BOTH checksums are incorrect, meaning
that areas are either corrupted or erased.
Only exception is TDBStore::reset() which erases all keys and reserved data.
Removed all logic that tried to detect, if reserved are was erased or
corrupted. Rely entirely on checksum.
Add moduletest for reserved data.
2019-12-03 15:20:10 +02:00
Seppo Takalo
0fe159f6c4
Greentea: Fix slice-calculation from kvstore test phase 2
2019-12-03 14:51:37 +02:00
Seppo Takalo
2ddd4069b6
Remove flaky error_inject_test
2019-12-03 14:38:40 +02:00
Seppo Takalo
b9eaac4da0
Fix Greentea handler typecasting.
2019-12-03 14:38:40 +02:00
Seppo Takalo
3eb8d6eb1d
BufferedBlockDevice: Sync all the buffers on deinit()
...
Make sure that all data has been written on the underlying
storage when we do deinit().
2019-12-03 14:38:40 +02:00
Seppo Takalo
8ab3984d33
Don't allow over-read on BufferedBlockDevice
2019-12-03 14:38:40 +02:00
Seppo Takalo
191d3444bb
HeapBlockDevice: Don't assert on const functions
2019-12-03 14:38:40 +02:00
Seppo Takalo
6105634bb0
Remove unceressary NULL check from BufferedBlockDevice::size()
2019-12-03 14:38:40 +02:00
Seppo Takalo
bcaf37dcfa
SlicingBlockDevice should assert, if size does not look valid
2019-12-03 14:38:40 +02:00
Seppo Takalo
92a60c3d80
Extend SlicingBlockDevice test coverage
2019-12-03 14:38:40 +02:00
Seppo Takalo
12dea71f40
Greenteatests: Validate KVStore content when WRITE_ONCE flag is set.
2019-12-03 14:38:40 +02:00
Martin Kojtal
ad3647c191
Merge pull request #11957 from kjbracey-arm/crc-redo
...
MbedCRC and CRC HAL revisions (6.0 redo)
2019-12-03 13:21:36 +01:00
Ari Parkkila
c22dd77f42
Cellular: Fix ATHandler string handling
2019-12-03 03:21:13 -08:00
Michal Paszta
caf01479ea
Improve doxygen and unittest coverage for API
...
Mainly focusing on hardening the tests for return values.
2019-12-02 20:48:10 +02:00
Michal Paszta
33096c2e54
Fix PPPInterface::disconnect to return NO_CONNECTION in case of failure
2019-12-02 20:47:43 +02:00
Martin Kojtal
da5a8b2b65
Merge pull request #11952 from pferland-multitech/master
...
Fix for Dragonfly nano and registration for LTE-M plans
2019-12-02 16:55:14 +01:00
Kevin Bracey
cf13cd48bc
LittleFS test: silence sign mismatch warning
2019-12-02 14:45:37 +02:00
Kevin Bracey
7a219260c1
LittleFS: correct CRC calculation
...
When using MbedCRC, init value must be non-reversed, regardless of
`reflect_data` or `reflect_out` settings. This means we need to reflect
the intermediate output before passing using it as the next init value.
(In GCC this ends up putting in two `RBIT` instructions back-to-back,
because it's implemented as assembler, so it doesn't know how to
optimise. In ARMC6, `__RBIT` is implemented as an intrinsic, so adding
this reflection cancels the existing reflection and makes the code
smaller).
2019-12-02 14:45:37 +02:00
Kevin Bracey
c67816b5ff
Adjust code for MbedCRC changes
...
* Make mbed_error use bitwise MbedCRC call rather than local
implementation.
* Remove use of POLY_32BIT_REV_ANSI from LittleFS.
* Move some MbedCRC instances closer to use - construction cost is
trivial, and visibility aids compiler optimisation.
2019-12-02 14:45:37 +02:00
Martin Kojtal
24c6c4cab5
Merge pull request #11935 from AriParkkila/cell-depr-device
...
Cellular: Mark to be deprecated in CellularDevice
2019-11-29 15:45:35 +01:00
Ari Parkkila
088140e04b
Cellular: Mark CellularDevice::stop deprecated
2019-11-29 04:24:56 -08:00
Hamza Rizwan
c15320d48e
Fixes for Network WiFi Test Crashes
2019-11-29 14:52:25 +05:00
Martin Kojtal
7177d8fefe
Merge pull request #11950 from ABOSTM/DISCO_H747I_TICKLESS
...
DISCO_H747I: add support of MBED_TICKLESS
2019-11-29 09:48:09 +01:00
Martin Kojtal
9f34b255be
Merge pull request #11958 from mikaleppanen/ws_rf_ch_conf
...
Add support for Wi-SUN RF channel configuration
2019-11-29 09:47:05 +01:00
Martin Kojtal
733f5e25c8
Merge pull request #11971 from ARMmbed/IOTSTOR-951
...
TDBStore: Unlock the master mutex even after garbage_collect()
2019-11-29 09:45:22 +01:00
Michal Paszta
ecc89c98c7
PPPinterface: remove address getters check for invalid pointer
2019-11-28 17:01:09 +02:00
Piotr Stolarz
feb6a46619
[BUGFIX] LWIP system mailbox overflow fix
2019-11-28 14:32:36 +01:00
Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Seppo Takalo
7f7b191077
IOTSTOR-951: Unlock the master mutex even after garbage_collect()
2019-11-28 14:33:07 +02:00
Seppo Takalo
b82e106a43
Astyle fixes
2019-11-28 10:59:48 +02:00
Seppo Takalo
abbb2485d2
Greentea: Fix storage sizes for SecureStore tests.
...
Previously Greentea tests was not initialising its storage
before asking for bd->get_program_size(), causing FlashBlockDevice to
return zero. This caused both TDBStorage's to use zero for both
parameter to SlicingBlockDevice(bd, 0, 0), effetivaly both then
used same addresses for slice. This caused SecureStore tests
to fail, because writes to internal RBP storage overwrote keys
from external storage.
Fine-tune TDBStore sizes, so that all tests can fit into storage.
2019-11-28 10:47:47 +02:00
Veijo Pesonen
065ff2645e
Fixes features-storage-tests-kvstore-static_tests test case bugs
...
At least with LPC55S69's default TDBStore configuration it's
impossible to run storage Greentea tests without exhausting the
memory reserved for storing keys.
Fixes an issue where number of keys were removed based on number of
threads which didn't have anything to do with the test case.
Fixes an issue where number of keys were assumed to be constant
but variable number was used for configuration.
2019-11-28 10:37:11 +02:00
Seppo Takalo
8f77de6453
TDBStore safety check: Erase if there is valid keys on the free space.
...
In case our are contains data from previous reset() or reset_area(),
we might end up in the situation where free space contains valid
key headers, but we have not erased that area yet. This can cause
failures if the deinit() and init() because new scan of that area
would continue as long as keys are found. This causes keys on the
not-yet-erased area to be included in the new instance of TDBStore.
To prevent this failure, check after each key-write that our free
space does not contain valid key headers. Also make sure that we
erase one program unit sector over the master record. If we erased
just the master record,first key might is still there, causing next
init() to find it. Extend erase area by one program unit, so that
build_ram_table() won't find any keys.
2019-11-28 10:37:07 +02:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Alexandre Bourdiol
affe7113ef
TARGET_STM: Remove timeout on HSEM.
...
With tickless mechanism hsem can be used for quite a long time
(time to set up PLL clock).
Also, if hsem is held to long, then this is not the current core which is faulty,
but probably the other (the one which hold the HSEM)
2019-11-27 14:25:43 +01:00
Martin Kojtal
9974d831fe
Merge pull request #11949 from ARMmbed/acabarbaye-patch-1
...
Fix for ARMC5 compilation errors for some targets
2019-11-27 13:12:14 +01:00
Mika Leppänen
2a908b51ff
Added support for Wi-SUN RF channel configuration
...
Added support to Wi-SUN tasklet for following mbed-mesh-api .json configuration options:
wisun-uc-channel-function
wisun-bc-channel-function
wisun-uc-fixed-channel
wisun-bc-fixed-channel
wisun-bc-interval
wisun-bc-dwell-interval
wisun-uc-dwell-interval
This allows e.g. enabling single channel configuration for testing.
This pull request does not change existing functionality since when
defaults from mbed-mesh-api .json are used, no new or changed
ws_management_* interface calls are made.
2019-11-27 14:04:25 +02:00
Martin Kojtal
b0751bf507
Merge pull request #11946 from ARMmbed/revert-11559-crc
...
Revert "MbedCRC and CRC HAL revisions"
2019-11-27 11:07:13 +01:00