Mirela Chirica
ea1b2b8045
Cellular: Stack type based on assigned IP addresses versions
2019-09-12 12:55:33 +03:00
Ari Parkkila
5fbcaeaca5
Cellular: Disable cellular.clear-on-connect by default
2019-09-12 00:02:14 -07:00
Kostiantyn Tkachov
9fc299a1cc
Updated mbedTLS CRYPTO target to be more flexibly configured for supported boards
2019-09-12 01:30:54 +02:00
Martin Kojtal
3297bf4062
Merge pull request #11420 from tymoteuszblochmobica/cm3ds
...
Fixed smsc9220_emac link_out memory management.
2019-09-10 19:52:44 +02:00
Ari Parkkila
94dcab9d69
Cellular: Add API to clear CellularDevice
...
A new API `CellularDevice::clear()` to clean-up the modem to a default initial state.
Function is virtual so it can be overridden. The default implementation clears all PDP contexts,
but the the first one if that has APN defined as `nsapi.default-cellular-apn`.
CellularStateMachine calls `clear()` to clean-up the modem on initial `connect()`,
if the flag `cellular.clear-on-connect: true` is defined.
2019-09-09 06:14:20 -07:00
Jaeden Amero
ea834ebc2a
crypto: Update to Mbed Crypto 2.0.0
2019-09-06 16:15:47 +01:00
Jaeden Amero
612255f8c3
tls: Update to Mbed TLS 2.19.0
2019-09-06 16:15:47 +01:00
Martin Kojtal
87cdef9258
Merge pull request #11408 from SeppoTakalo/mbed_trace_nanomesh
...
Remove mbed_trace dependency to Nanomesh headers
2019-09-06 14:36:14 +02:00
Seppo Takalo
a7634a1e5a
Include ns_types.h before mbed_trace.h in Nanomesh
2019-09-06 13:05:19 +03:00
Martin Kojtal
c2df0013e9
Merge pull request #11423 from JarkkoPaso/nanostack_release_for_mbedos_5_14
...
Nanostack release for mbedos 5 14
2019-09-06 12:02:31 +02:00
Martin Kojtal
21ebb725c5
Merge pull request #10991 from RonEld/update_readme_for_optin_in_modules
...
Explaining how to opt in modules
2019-09-06 11:41:41 +02:00
Seppo Takalo
40841453a5
Remove mbed_trace dependency to Nanomesh headers
...
This library only uses standard types from C99, and
thus does not need compiler specific tweaks from ns_types.h
2019-09-06 10:40:14 +03:00
Jarkko Paso
4ebbbc592d
Merge commit '396dae52ab4eef15910011432f2c7a4261fc22b7'
...
* commit '396dae52ab4eef15910011432f2c7a4261fc22b7':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 4a19dc4..c473148
2019-09-05 14:28:22 +03:00
Martin Kojtal
978296a26d
Merge pull request #11372 from AriParkkila/bg96-pwr
...
Cellular: Fix BG96 power on and connect
2019-09-05 13:10:26 +02:00
Martin Kojtal
0427bb7469
Merge pull request #11396 from gpsimenos/remove-sms-floats
...
Remove floating point from AT_CellularSMS
2019-09-05 11:12:17 +02:00
Martin Kojtal
567479792c
Merge pull request #11392 from hugueskamba/hk-remove-minor-warnings
...
Remove minor build warnings
2019-09-05 09:59:39 +02:00
Martin Kojtal
d135e9bf32
Merge pull request #11394 from hugueskamba/hk-replace-deprecated-wait_us
...
Replace wait_ms calls with rtos::ThisThread::sleep_for
2019-09-05 09:56:57 +02:00
Martin Kojtal
34a3948d6e
Merge pull request #11395 from hugueskamba/hk-replace-non-trivial-struct-initialization
...
Avoid non-trivial copy when initializing lorastack struct
2019-09-05 09:55:49 +02:00
Martin Kojtal
f0234268f5
Merge pull request #11046 from kotkcy/pr/cy_mbedtls_alt
...
Initial implementation of Cypress Crypto hardware acceleration for mbedTLS
2019-09-05 09:43:06 +02:00
Jarkko Paso
da0fe81bfd
Mesh API, Wi-SUN: Initialize Wi-SUN settings with values from json
2019-09-04 15:53:21 +03:00
Tymoteusz Bloch
2626d90266
Fixed msc9220_emac link_out memory management.
2019-09-04 13:59:36 +02:00
Ari Parkkila
cb20277701
Cellular: Fix BG96 power on and connect
2019-09-04 03:24:11 -07:00
Martin Kojtal
208d703b7e
Merge pull request #11338 from cydriftcloud/pr/psoc6-softap-bringdown
...
Bring down interface when stopping softap
2019-09-04 11:54:23 +02:00
Martin Kojtal
aba0760652
Merge pull request #10684 from jarvte/fix_athandler_destr
...
Cellular: fix ATHandler destructor possible crash on delete
2019-09-04 11:52:59 +02:00
Antti Yli-Tokola
1708ec2a3f
nsapi_dns: cleanup dns queue when running out or memory
2019-09-03 13:56:21 +03:00
Hugues Kamba
a306ad758d
Avoid non-trivial copy when initializing lorastack struct
...
Using memset generates a warning about the non-trivial operation.
Use member-initializer-list instead to initialise the structs members.
2019-09-03 11:08:04 +01:00
Hugues Kamba
9715587042
Remove extraneous parentheses.
2019-09-03 09:58:08 +01:00
Hugues Kamba
8c22bbbbc8
Use PRIu32 to print uint32_t variable
...
As the variable underlying type size is different depending on the
toolchain used
2019-09-03 09:29:06 +01:00
Martin Kojtal
e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
...
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Teppo Järvelin
753ba8ceb6
Cellular: fix ATHandler destructor possible crash on delete
...
In some multithread cases there is possibility that process_oob function
was called after ATHandler was deleted. Fix is to wait if oob processing
is ongoing.
2019-09-03 09:09:05 +03:00
Kostiantyn Tkachov
235949b1f4
Changed order of config file checking in include defines
2019-09-02 22:17:25 +03:00
Jaeden Amero
95d448b63d
attestation: Erase storage before test
...
Be robust when keys can't be opened for deletion by erasing storage and
thereby all keys.
2019-09-02 17:10:59 +01:00
Jaeden Amero
3d1b8363db
Use PSA Crypto API 1.0b3
...
The PSA Crypto API has moved on from 1.0b2 to 1.0b3, bringing along with
it some breaking changes. Update Mbed OS to use the 1.0b3 API.
2019-09-02 17:10:59 +01:00
George Psimenos
93cebc189c
Avoid potential overflow
2019-09-02 15:48:30 +01:00
Hugues Kamba
97acdc59a3
Replace wait_ms calls with rtos::ThisThread::sleep_for
...
`wait_ms` is deprecated and its use generates a warning.
2019-09-02 15:24:10 +01:00
Hugues Kamba
e65a0c0a99
Remove minor build warnings
2019-09-02 15:04:58 +01:00
Kostiantyn Tkachov
08fd15796a
Removed TABs from the ALT source files
2019-09-02 17:00:13 +03:00
George Psimenos
4df70449fe
Replace difftime and float literals
2019-09-02 14:56:56 +01:00
Kostiantyn Tkachov
cdbf30dd0f
Removed obsoleted typedef for mbedtls_be128[] in aes_alt.c
2019-09-02 16:29:00 +03:00
Kostiantyn Tkachov
f702d15855
Fixed SHA ctx and ilen parameters checking
2019-09-02 15:20:11 +03:00
Kostiantyn Tkachov
50a8592104
Fixed SHA ctx and ilen parameters checking
2019-09-02 15:20:11 +03:00
Kostiantyn Tkachov
7cbfa84625
Initial commit to add mbedTLS hardware acceleration for Cypress chips to mbed-os sources
2019-09-02 15:20:11 +03:00
Martin Kojtal
39733cbc0b
Merge pull request #11306 from AnttiKauppila/ATHandler_improvements
...
At handler improvements
2019-09-02 12:08:44 +02:00
Lei Zhang
5a3562a76b
Bringdown interface when stopping softap
...
The interface should be brought down when stopping softap.
2019-08-30 08:59:36 -07:00
Roman Okhrimenko
ed9995e06c
PSOC6_SB: Initial commit to add CY8CPROTO_064_SB to mbed-os sources.
2019-08-30 15:10:18 +03:00
Antti Kauppila
9151606bb2
AT locks placed for UBlox AT handling
2019-08-30 08:54:34 +03:00
Martin Kojtal
c99b150bcf
Merge pull request #11356 from kyle-cypress/pr/whd-link-state-fix
...
Fix WHD link state change event handling
2019-08-30 07:44:40 +02:00
Martin Kojtal
a65ed8c3d8
Merge pull request #11303 from jeromecoutant/PR_H743ZI2_480
...
NUCLEO_H743ZI2 : increase system clock from 400 MHz to 480 MHz
2019-08-29 17:10:06 +02:00
Martin Kojtal
9203c88b1e
Merge pull request #11275 from VeijoPesonen/disable_nvstore
...
Enable building feature storage with a bare metal profile
2019-08-29 17:05:54 +02:00
Martin Kojtal
40a84fc96f
Merge pull request #11359 from anttiylitokola/update-mbed-coap-to-5.0.0
...
Update mbed-coap to version 5.1.0
2019-08-29 16:37:09 +02:00
Lei Zhang
0b2e7bbef9
Use event handlers for link state callback
...
Allows DHCP to listen for device disconnect and refresh ip lease on reconnect.
2019-08-29 07:19:46 -07:00
Jaeden Amero
4eb4b32910
psa: Update crypto service for PSA Crypto 1.0b3
2019-08-29 14:55:21 +01:00
Jaeden Amero
ea17d58b49
mbedtls: Update Mbed TLS and Mbed Crypto
...
Update Mbed TLS to 2.19.0d0 and Mbed Crypto to 2.0.0d1.
2019-08-29 14:55:05 +01:00
Veijo Pesonen
155f04713a
Revert "Sets NVStore disabled by default"
...
This reverts commit bda7678071
.
2019-08-29 14:50:40 +03:00
Martin Kojtal
8ef742a49c
Merge pull request #11370 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc1
...
Driver Updates + ARMC6 driver support + WIFI fixes
2019-08-29 13:35:06 +02:00
Antti Yli-Tokola
5f92db3c12
Add a flag to maintain backward compatibility
...
By default CoAP will create a copy of the whole data to be passed to application and it keeps the backward compatibility.
If enabled, application must NOT free the payload when it gets the COAP_STATUS_PARSER_BLOCKWISE_MSG_RECEIVED status.
And application must call sn_coap_protocol_block_remove() instead.
2019-08-29 13:34:24 +03:00
Martin Kojtal
453122944c
Merge pull request #11366 from 0xc0170/dev_rollup
...
Rollup part 2 for 5.14
2019-08-29 09:28:49 +02:00
Martin Kojtal
4d2078ebe8
Merge pull request #11367 from kyle-cypress/pr/cypress-5.14-rollup
...
Cypress 5.14 rollup
2019-08-29 08:42:49 +02:00
Martin Kojtal
c4a2e3f879
Merge pull request #11349 from VeijoPesonen/tdbstore_ecc_fix
...
TDBStore bugfix: won't rely on flash erase value to detect is a sector erased
2019-08-29 08:38:48 +02:00
Martin Kojtal
c1f1b2a609
Merge pull request #11339 from sathishm6/topic/pr-bct-auto-ip-fix
...
mbed-os/LwIP changes and fixes in auto-IP for Bonjour Conformance Test
2019-08-29 08:38:32 +02:00
aqib-ublox
7f36fbc86e
Driver Updates + ARMC6 driver support + wifi fixes
2019-08-29 11:33:29 +05:00
Kyle Kearney
8abada11f6
Add missing newlines to end of files
2019-08-28 10:56:15 -07:00
Lei Zhang
b27653af6f
Use individual headers instead of "mbed.h"
2019-08-28 10:56:15 -07:00
Kyle Kearney
26940e5c22
Add support for DHCP server with WHD
2019-08-28 10:56:15 -07:00
Kyle Kearney
0ee6dfd4a8
Fix deprecated wait_ms warning in Cypress BLE
...
Migrate to using ThisThread::sleep_for instead.
2019-08-28 10:56:15 -07:00
Mukund
41dded9ec5
Improve Cordio low power assist
...
Allow more flexibile configuration for BLE radio pins
2019-08-28 10:56:15 -07:00
Kyle Kearney
8c2dec1233
Update board hardware configuration
...
Include all configurator design files with each BSP
2019-08-28 10:56:15 -07:00
Kyle Kearney
e64fdba7fc
Update BSP and WifiInterface for WHD Changes
2019-08-28 10:56:14 -07:00
Martin Kojtal
de627dad6a
Merge branch 'read-int-zero' of git://github.com/dextero/mbed-os into dev_rollup
2019-08-28 18:37:46 +01:00
Martin Kojtal
206e52c574
Merge branch 'pr/tdbstore-missing-offset' of git://github.com/kyle-cypress/mbed-os into dev_rollup
2019-08-28 18:37:02 +01:00
Martin Kojtal
95fc8cfa2c
Merge pull request #11322 from kyle-cypress/pr/lwip-buffer-size
...
Updated the LWIP buffer pool size for PSoC6
2019-08-28 19:05:55 +02:00
Martin Kojtal
7eb97be5a3
Merge pull request #11358 from 0xc0170/dev_rollup
...
Rollup PRs for 5.14
2019-08-28 16:39:36 +02:00
Martin Kojtal
67d1bb180b
Merge pull request #11319 from kyle-cypress/pr/whd-1.30-update
...
Update WHD to 1.30.0
2019-08-28 16:11:24 +02:00
Antti Kauppila
2aac56f79a
NetworkInterface set_blocking() doxygen corrected
2019-08-28 13:12:07 +01:00
Vairamuthu Ramasamy
782734cae2
Added MBED_CONF_ prefix to QSPI pins, GitHub issue# 10060
2019-08-28 13:12:07 +01:00
Tymoteusz Bloch
83aa8b038b
Supressed coverity warnings for intentional NULL passing to ip_reass_dequeue_datagram
2019-08-28 13:12:07 +01:00
Kyle Kearney
5820a3172f
Fix typos in comments
2019-08-28 13:12:05 +01:00
Qinghao Shi
4a0ca21edd
BLE TEST: remove duplicated and failing test
2019-08-28 13:12:04 +01:00
Martin Kojtal
d6304e322c
Merge pull request #11181 from artokin/mbed_wisun_api_update
...
mbed-mesh-api: Add new API for Wi-SUN configuration
2019-08-28 13:50:13 +02:00
Antti Yli-Tokola
d74326e5cc
Update changelog about the breaking change
2019-08-28 14:22:03 +03:00
Martin Kojtal
a6372e521c
Merge pull request #11345 from yogpan01/fix-bare-metal-pdmc
...
Fix bare-metal configuration to support Pelion Device Management Client
2019-08-28 13:07:36 +02:00
Sathish Kumar Mani
a4aeee941d
mbed-os/LwIP changes and fixes in auto-IP for Bonjour Conformance Test
...
This PR is to fix the issues in LwIP for AutoIP which is required for passing Bonjour Conformance Test for mDNS. Following gives the summary of the changes/fixes added.
Changes:
1. Following issues are fixed in LwIP for AutoIP.
- Fixed bug in max conflict rate limiting: According to RFC section RFC 3927 Section 2.2.1 conflict probe interval should be increased to 60 seconds, once conflict count reaches after MAX_CONFLICTS (i.e., 10) counts. The initial value of 'autoip->tried_llipaddr' is 0. Hence the probe interval (i.e., autoip->ttw) should be increased to 60 secs when 'autoip->tried_llipaddr >= MAX_CONFLICTS'
- Added code to free 'autoip' client in autoip_stop() API: New 'autoip' client is allocated in autoip_start() API, and the client is not freed during autoip_stop(). This would result in memory leak, if not freed. Updated autoip_stop() API to take care of releasing the memory allocated for 'autoip' client.
2. Introduced a configurable macro "MBED_CONF_LWIP_DHCP_TIMEOUT" in "lwipopts.h" to configure DHCP timeout based on the usecase requirement. For example: bonjour conformance test would need a DHCP timeout value which is grater than 320 secs to run mDNS probing test to verify protocol compilance of the implementation.
Tested the fixes using Bonjour Conformance Test tool Version 1.5.0 for IPv4. It has successfully passed Bonjour Conformance Test.
2019-08-28 15:57:36 +05:30
Antti Yli-Tokola
2774e3f301
Update mbed-coap to version 5.0.0
...
- Reduce heap footprint by storing only single block when receiving a blockwise message.
* User is now responsible of freeing the data by calling sn_coap_protocol_block_remove() and must not free the payload separately.
- Bug fix: Request blockwise transfer if incoming payload length is too large and when it comes without block indication.
2019-08-28 11:26:55 +03:00
Arto Kinnunen
f8289ec0ac
mbed-mesh-api: Add API set_file_system_root_path
2019-08-28 09:34:30 +03:00
Arto Kinnunen
774162dd83
mbed-mesh-api: Add new Wi-SUN certificate API
...
Add new API for setting Wi-SUN:
-Setting own/trusted certificates
-Removing own/trusted certificates
2019-08-28 09:34:30 +03:00
Arto Kinnunen
c0f3cb7568
mbed-mesh-api: Add new Wi-SUN API
...
Add new API for setting Wi-SUN:
-network name
-regulatory domain, operating mode and operating class
2019-08-28 09:34:30 +03:00
Yogesh Pande
6edab0e13a
Fix to use correct build flag MBED_CONF_NANOSTACK_CONFIGURATION
...
The bare-metal configuration should be using MBED_CONF_NANOSTACK_CONFIGURATION
instead of MBED_CONF_NANOSTACK_CONFIG.
Fixing the typo for flagging.
2019-08-27 17:20:40 +03:00
Jammu Kekkonen
86640e5bfe
Bugfix: won't rely on erase value to detect is a sector erased
...
When flashing a binary STLink won't skip writing padding which happens
to be the same value as flash's erase value. STM32L4 based targets
have an additional 8-bit of embedded ECC for each 64-bit word of data.
The initial value, when a sector is erased, for the ECC bits is 0xFF.
When you write the erase value to a given address these bits gets
modified to something different due to the ECC algoritm in use. The
visible bits are intact but difference in ECC value prevents flipping
any 1's to 0's. Only way to proceed is to erase the whole sector.
2019-08-27 15:39:47 +03:00
Yogesh Pande
076deeb4a9
Bare metal support for running PDMC
...
PDMC requires event loop to also support bare metal configuration.
It requires to adapt eventloop for bare-metal configuration.
2019-08-27 13:09:56 +03:00
Antti Kauppila
d08d55da88
New ATHandler functions taken into use
...
New ATHandler functions taken into use for rest of the targets (BG96 was updated initially) to reduce code size. This means basically that new functions using variadic list approach are taken into use and with those one can usually write AT commands in single line instead of multiple lines.
Only internal changes and API's are not modified.
2019-08-27 09:15:51 +03:00
Sathish Kumar Mani
fe252a77c1
mbed-os/LwIP changes and fixes in auto-IP for Bonjour Conformance Test.
...
Changes:
1. Following issues are fixed in LwIP for AutoIP.
a) Fixed bug in max conflict rate limitting.
- According to RFC section RFC 3927 Section 2.2.1 conflict probe interval
should be increased to 60 seconds, once conflict count reaches after
MAX_CONFLICTS (i.e., 10) counts.
- The initial value of 'autoip->tried_llipaddr' is 0. Hence the probe
interval (i.e., autoip->ttw) should be increased to 60 secs
when 'autoip->tried_llipaddr >= MAX_CONFLICTS'
b) Added code to free 'autoip' client in autoip_stop() API.
- New 'autoip' client is allocated in autoip_start() API, and the client
is not freed during autoip_stop(). This would result in memory leak
if not freed.
- Updated autoip_stop() API to take care of releasing the memory allocated
for 'autoip' client.
2. Introduced a configurable macro "MBED_CONF_LWIP_DHCP_TIMEOUT" in "lwipopts.h"
to configure DHCP timeout based on the usecase requirement. For example:
bonjour conformance test would need a DHCP timeout value which is grater than
320 secs to run mDNS probing test to verify protocol compilance of the implementation.
2019-08-27 08:17:43 +05:30
Kyle Kearney
33493b12d9
Update WHD clients for interface changes
2019-08-26 16:05:47 -07:00
Jarkko Paso
2bcb1a6c9d
Merge commit '7c99079717dd610f0674f6cf38a77af14f987dc6'
...
* commit '7c99079717dd610f0674f6cf38a77af14f987dc6':
Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 7745556..276ff28
2019-08-26 15:46:10 +03:00
Jarkko Paso
b0f3ff2156
Merge commit '928754fbc507c71890fa69fbd9cd20ab37f1d2a6'
...
* commit '928754fbc507c71890fa69fbd9cd20ab37f1d2a6':
Squashed 'features/nanostack/coap-service/' changes from 3b447d2..e9edb1b
2019-08-26 15:21:38 +03:00
Jarkko Paso
00bf399628
Merge commit 'b7910939daa15a8e658dbc58bccaeb3bb101d338'
...
* commit 'b7910939daa15a8e658dbc58bccaeb3bb101d338':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 3c7d50e..4a19dc4
2019-08-26 15:13:00 +03:00
Martin Kojtal
02d1873c06
Merge pull request #11266 from u-blox/feature_adc_temp_conf
...
ADC internal temperature support and EMAC header fix
2019-08-26 11:08:47 +02:00
midd
2168b40948
Updated the LWIP buffer pool size for PSoC6
...
Increase size to 14 for all devices to increase heap availability.
2019-08-23 17:54:14 -07:00
Martin Kojtal
b005bf2133
Merge pull request #11269 from michalpasztamobica/coverity_fixes
...
storage: fix potential memory corruption and check return values
2019-08-23 15:49:14 +02:00
Martin Kojtal
3fb5802b19
Merge pull request #11298 from kyle-cypress/pr/kvstore-flash-size
...
Explicitly set rbp_internal_size for TARGET_PSOC6
2019-08-23 15:44:09 +02:00
Martin Kojtal
a1540c5f77
Merge pull request #11245 from dextero/8bit-sms
...
AT_CellularSMS: allow configuring SMS encoding (7-bit/8-bit) at initialization
2019-08-23 13:51:59 +02:00