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
Martin Kojtal
b9a6251c24
Merge pull request #10907 from RonEld/cc310_aes_port
...
Port aes cc310 driver
2019-08-23 11:47:17 +02:00
Martin Kojtal
c4711c16b7
Merge pull request #11259 from JanneKiiskila/fatfs-iar
...
FATFS / IAR compilation issue Pe029
2019-08-23 10:19:54 +02:00
Martin Kojtal
cf6fbda971
Merge pull request #11250 from JarkkoPaso/master
...
hal fhss timer: removed unnecessary and potentially unsafe memset
2019-08-23 10:19:20 +02:00
jeromecoutant
11e39febf6
STM EMAC : NUCLEO_H743ZI2 add
2019-08-23 09:46:56 +02:00
jeromecoutant
b705a9894a
STM EMAC : STM32H7 directory restructure
2019-08-23 09:46:17 +02:00
Matthew Macovsky
1b1f14d36b
Explicitly set rbp_internal_size for TARGET_PSOC6
...
The default computation assumes that a flash sector is several times
larger than a flash page. On PSoC 6 targets this is not the case
(the two values are the same) so the computed size is too small.
2019-08-22 17:41:25 -07:00
Kyle Kearney
06dd330320
Fix missing offset in TBStore read from flash
...
This could cause incomplete data retrieval and mismatch when reading
data in more than one chunk, because every chunk would be read to the
same location at the beginning of the output buffer.
2019-08-22 17:07:24 -07:00
Martin Kojtal
88dcf27e02
Merge pull request #11246 from AriParkkila/cell-bg96-ipv6
...
Cellular: Fix BG96 AT driver for IPv6
2019-08-22 11:08:23 +02:00
Martin Kojtal
5c09ff12ac
Merge pull request #11220 from jarvte/fix_cellular_dns_test
...
Fix cellular dns test with IAR compiled binary
2019-08-22 10:57:22 +02:00
Martin Kojtal
6812869ad5
Merge pull request #11270 from anttiylitokola/update-mbed-coap-to-4.8.1
...
Update mbed-coap to version 4.8.1
2019-08-22 10:49:12 +02:00
Martin Kojtal
edcde1ce8c
Merge pull request #10796 from NXPmicro/tickless
...
NXP: Enable MBED_TICKLESS on various NXP platforms
2019-08-22 10:30:14 +02:00
Janne Kiiskila
f149b4c309
IAR / FATFS - Pe029 error
...
IAR compilation fails at `_fs = { 0 };` due to
```
[Error] FATFileSystem.cpp@285,0: [Pe029]: expected an expression
```
Changing that object initializer list instead, as that seems
to pass IAR compilation, too.
Changed original memset to object initialiser list based on review
feedback from Kevin Bracey.
2019-08-22 10:58:35 +03:00
Janne Kiiskila
4ad24c0dc2
FATFS - Fix copyright year
...
It's 2019 now.
2019-08-22 10:58:35 +03:00
Martin Kojtal
d0c917cb32
Merge pull request #11274 from VVESTM/vve_eth_h7
...
Add ethernet support on NUCLEO_H743ZI board
2019-08-22 09:42:45 +02:00
Jaeden Amero
e31916f36f
attestation: Remove unused status variable
2019-08-21 19:43:58 +01:00
Jaeden Amero
3e5fa80ce3
psa: Eliminate some PSA_SUCCESS redefinition warnings
...
Remove PSA_SUCCESS redefinitions in the PSA compliance test PAL.
2019-08-21 19:43:58 +01:00
Jaeden Amero
273c62516d
crypto: Remove old compliance tests
...
We'll use the new ARM-software/psa-arch-tests directly instead for PSA
Crypto API 1.0b3. This commit removes the crypto compliance tests only
for now, leaving attestation and storage tests.
2019-08-21 19:43:58 +01:00
Vincent Veron
8ab6aecbe9
Move stm32xx_emac_config.h to family specific folder
...
This allows to specify which hal version to use for each family.
It can also be used to modify the thread stack size.
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-08-21 15:02:45 +02:00
Martin Kojtal
399b517a47
Merge pull request #10974 from mikaleppanen/nano_ppp
...
Created PPP interface and PPP service classes to netsocket
2019-08-21 14:54:31 +02:00
Martin Kojtal
476ce097b9
Merge pull request #11104 from tejanarahari/pr/enterprise-security-feature-support-pr2
...
Enterprise security support
2019-08-21 14:52:56 +02:00
Antti Yli-Tokola
7ba7f7e8d2
Update mbed-coap to version 4.8.1
...
- Store ACK's also into duplicate info list.
- ROM size optimization. Flash size has gone down ~1100 bytes.
**Closed issues:**
- IOTCLT-3592 - Client does not handle Duplicate ACK messages during blockwise registration correctly
2019-08-21 13:08:18 +03:00
Ari Parkkila
110fb7d524
Cellular: Fix BG96 AT driver for IPv6
2019-08-21 02:46:33 -07:00
Vincent Veron
93b8164830
lwip: STM32H7: specify heap location
...
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-08-21 11:41:37 +02:00
Vincent Veron
9f2e9aa576
Add EMAC support for NUCLEO_H743ZI
...
This port is based on :
* CurryGuy ethernet branch :
https://github.com/CurryGuy/mbed-os/tree/feature-stm32h7-emac
* STM32 Cube example :
Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS example
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-08-21 11:40:48 +02:00
Veijo Pesonen
8d44d8c130
Enables building storage with bare metal profile
...
To compile Mbed Bootloader with bare metal profile certain defines are
not added anymore automatically. Because of this checks for those
defines needed to be introduced.
2019-08-21 12:22:34 +03:00
Martin Kojtal
ff4dac9853
Merge pull request #11244 from AriParkkila/cell-dns-count
...
Netsocket: Change DNS retry and total attempt counts
2019-08-21 09:44:19 +02:00
Veijo Pesonen
bda7678071
Sets NVStore disabled by default
2019-08-21 10:32:00 +03:00
Michal Paszta
5a9183c549
storage: fix potential memory corruption and check return values
2019-08-21 09:26:35 +03:00
aqib-ublox
80e30f4258
ADc internal temperature suuport and EMAC header fix
2019-08-20 18:44:22 +05:00
Martin Kojtal
e4e6c645fa
Merge pull request #11204 from paul-szczepanek-arm/non-scan
...
BLE: add nonscannable connectable type
2019-08-20 13:58:32 +02:00
Mika Leppänen
4e60d2f39c
Corrected PPP thread stack sizes and network interface
...
Corrected PPP thread stack size for RZ_A1_EMAC, CYW943012P6EVB_01,
CY8CPROTO_062_4343W, CY8CKIT_062_WIFI_BT and CY8CKIT_062S2_43012
that have special configuration for PPP thread size. Removed
pppInterface() helper call from network interface. It causes binary
compatibility break with precompiled network interface classes. Call
is helper function to check network interface type in case it is
unknown, and is not mandatory or used with PPP.
2019-08-20 13:37:13 +03:00
Mika Leppänen
ab3a4699c9
Added missing header to wisun interface
2019-08-20 13:37:12 +03:00
Mika Leppänen
3b20d9ea42
Increased PPP stack size based on testing
...
Increased stack size from 768 to 816.
2019-08-20 13:37:12 +03:00
Mika Leppänen
3951422824
lwIP adds now PPP DNS servers to default interface
...
If PPP interface is the lwIP default interface, adds the PPP DNS
servers to default DNS server storage. If PPP is not default
interface, then adds DNS servers to interface specific storage.
2019-08-20 13:37:12 +03:00
Mika Leppänen
3102bb1340
Removed pbuf operations that were commented out
2019-08-20 13:37:12 +03:00
Mika Leppänen
a2df462f65
Nanostack changes for PPP service
...
Created PPP interface for PPP service. Re-used the ethernet tasklet
and PHY driver structure for PPP.
2019-08-20 13:37:12 +03:00
Mika Leppänen
3864e12172
lwIP changes for PPP service
...
Created (a new) PPP interface for PPP service. Removed lwip
dependencies to PPP (memory allocations etc.). Moved PPP
configuration options away from lwIP mbed_lib.json to new
PPP service. For backwards compatibility, using the old
options is also currently supported.
2019-08-20 13:37:12 +03:00
Mika Leppänen
c9cb8f8296
Created netsocket classes for PPP service and PPP interface
...
PPP service encapsulates the PPP protocol. PPP interface can be used as
helper class to bind PPP protocol with network stack (similar to
EMAC and L3IP interface). Added PPP interface to onboard network
stack class.
2019-08-20 13:27:54 +03:00
Mika Leppänen
a1e3a5d901
Created PPP service class
...
Created PPP service class that encapsulates the PPP protocol.
Class is similar to EMAC and L3IP classes with additional methods
to read IP and DNS server addresses negotiation using PPP and
to set PPP specific parameters (file handle for modem access etc.).
PPP service can use on its own thread or in run in mbed os event
Queue thread.
Added ppp_nsapi.cpp module that implements the nsapi_ppp.h
services.
Added ppp_nsapi.cpp module that implements the nsapi_ppp.h
services.
2019-08-20 13:27:54 +03:00
Kari Haapalehto
c518319fa3
Moved PPP from lwip directory to under netsocket
...
Moved PPP and renamed files and constants.
2019-08-20 13:27:54 +03:00
Martin Kojtal
0b49952b9e
Merge pull request #11249 from dextero/get-sms-zero
...
Make AT_CellularSMS::list_messages support index 0 in SMS inbox
2019-08-20 10:27:57 +02:00
Martin Kojtal
9ccfe49d12
Merge pull request #11247 from dextero/international-numbers
...
AT_CellularSMS: set "international" flag in PDU when applicable
2019-08-20 10:27:13 +02:00
Martin Kojtal
63084ad874
Merge pull request #11241 from teijokinnunen/lorawan-uplink-rx-fix
...
LoRaWAN: Terminate RX when receiving uplink messages
2019-08-20 10:24:51 +02:00
Martin Kojtal
083824807c
Merge pull request #11239 from Patater/import-mbedtls-crypto-from-mbedcrypto
...
crypto: Copy legacy crypto from Mbed Crypto
2019-08-20 10:24:41 +02:00
Martin Kojtal
7ee382bdc0
Merge pull request #11216 from paul-szczepanek-arm/fix-ad-parser
...
BLE: make advertising data parser handle early termination
2019-08-20 09:59:18 +02:00
Martin Kojtal
b849bc1e3d
Merge pull request #11201 from mirelachirica/bug_virtual_in_constructor
...
Cellular: Fixed improper AT handler setup through virtual calls in co…
2019-08-20 09:52:28 +02:00
Martin Kojtal
5904614696
Merge pull request #11183 from OpenNuvoton/nuvoton_m252kg_test
...
M252KG: Fix kvstore-static_tests failing with OOM
2019-08-20 09:49:58 +02:00
Martin Kojtal
64fb49e4ec
Merge pull request #11169 from dmaziec1/TLSSocketWrapper_recvfrom_modified
...
TLSSocketWrapper::recvfrom sets SocketAddress output variable
2019-08-20 09:41:39 +02:00
Martin Kojtal
a5a2036c65
Merge pull request #11224 from AnttiKauppila/Coverity_fixes
...
Coverity issues fixed
2019-08-20 09:40:20 +02:00
Jarkko Paso
2aacb1c527
hal fhss timer: all static functions inside anonymous namespace
2019-08-19 13:20:46 +03:00
Martin Kojtal
2e09a27e05
Merge pull request #11165 from VeijoPesonen/fix_internal_kvstore_config
...
Allows placing KVStore and update images on separate storage devices - to internal and external flash
2019-08-19 11:46:39 +02:00
Martin Kojtal
cc7e2f8279
Merge pull request #11222 from paul-szczepanek-arm/fix-recursive
...
BLE: fix recursive call
2019-08-19 10:24:26 +02:00
Marcin Radomski
17f6f1c0e3
Make AT_CellularSMS support index 0 in SMS inbox
...
When AT+CGML is used to retrieve list of SMS stored in modem inbox,
every message has an associated index. ETSI TS 127 005 v7.0.0 does not
specify what is the allowed range of such indices - all it says is
"integer type; value in the range of location numbers supported by the
associated memory".
Usually, AT modems use positive indexes (starting at 1). Quectel BG96
modem takes a different approach, indexing messages starting at 0.
Current implementation of `AT_CellularSMS::list_messages()` considers
index 0 invalid and ignores such message, effectively making it
impossible to access using mbed-os API.
This commit changes the behavior so that value of 0 is handled as any
other positive message index.
2019-08-16 14:19:29 +02:00
Marcin Radomski
726eace763
Do not fail on trailing data in read_int
...
Some tests depend on that behavior.
2019-08-16 14:14:58 +02:00
Marcin Radomski
c0032c9055
ATHandler::read_int: allow returning 0 successfully
2019-08-16 14:14:58 +02:00
Marcin Radomski
2bfa4e9b8d
AT_CellularSMS: set "international" flag in PDU when applicable
...
Currently, create_pdu receives a destination address without '+' prefix,
and always sets the "type of address" to "unknown". That means, the
number needs to contain appropriate international number prefix (00/011)
if necessary - which is not the case if the leading + is simply
stripped.
This changes send_sms behavior so that when a SMS is sent to an
international number (indicated by leading +):
- AT+CMGS command receives the number with + prefix,
- created PDU has the "international" flag set.
2019-08-16 13:30:59 +02:00
Marcin Radomski
f3e9501ac6
Increase PDU buffer size to fit 8-bit-encoded hex string
2019-08-16 13:20:37 +02:00
Ari Parkkila
2934a692c9
Netsocket: Change DNS retry and total attempt counts
2019-08-16 03:51:43 -07:00
Marcin Radomski
14f8d15242
Add option to set up SMS encoding
2019-08-16 12:24:54 +02:00
Teijo Kinnunen
10c0f20317
LoRaWAN: Terminate RX when receiving uplink messages
...
This prevents RX2 window to be enabled at the same time when repeating
transmission, when QoS repeated TX is in effect. Failure to do so
seems to place the LoRaWAN stack in a state where send() always fails
with WOULD_BLOCK error.
2019-08-16 12:56:58 +03:00
Jarkko Paso
3e9d7b3598
hal fhss timer: removed unnecessary and potentially unsafe memset
2019-08-16 11:46:10 +03:00
Jaeden Amero
b6c24e2e09
crypto: Copy legacy crypto from Mbed Crypto
...
Mbed TLS no longer provides legacy crypto C or H files. Obtain the files
from Mbed Crypto instead.
2019-08-16 09:20:03 +01:00
Jaeden Amero
82927057b9
lwip: Use correct include path for mbedtls
...
The portable and correct way to include Mbed TLS header files is
"mbedtls/someheader.h". It's Mbed OS specific, unecessary, and incorrect
to use "mbedtls/inc/mbedtls/someheader.h".
2019-08-16 09:20:03 +01:00
Mirela Chirica
75c823c1a3
Cellular: Fixed improper AT handler setup through virtual calls in constructor
...
Added AT handler setup method to be used for initialisation routines
that are virtual and therefore cannot be called from constructor.
2019-08-16 10:57:37 +03:00
Anna Bridge
f9eb870a47
Merge pull request #11198 from RonEld/remove_redundant_file
...
Remove redundant file accidentally added
2019-08-15 12:59:57 +01:00
Anna Bridge
2af2b1b18b
Merge pull request #11190 from jarvte/fix_wise1570_netsocket_tests
...
Cellular: failure when deleting created context is not considered error
2019-08-15 12:58:32 +01:00
Anna Bridge
797e58a2b3
Merge pull request #11148 from AriParkkila/cell-sim-pin
...
Cellular: Fix SIM pin enter command
2019-08-15 12:49:24 +01:00
Chun-Chieh Li
500221c6a0
Fix kvstore-static_tests failing with OOM
...
Forked 3 threads plus misc, so minimum (4 * OS_STACK_SIZE) heap are required.
2019-08-15 17:53:31 +08:00
Veijo Pesonen
722628be02
[TDBStore] changes the default TDBStore location
...
Thus far the default position has been after the application plus two
spare sectors. For simplicity and to have a predictable location for the
TDBStore with the default configuration the location is now switched to
the end of the flash. Two last sectors to be exact.
2019-08-15 09:26:57 +03:00
Paul Szczepanek
71f59eaf6c
add comments
2019-08-14 17:11:52 +01:00
Antti Kauppila
84063bf222
Coverity issues fixed
2019-08-14 16:22:05 +03:00
Martin Kojtal
0a73eda9d4
Merge pull request #11200 from jarvte/move_string_to_pdp_type
...
Cellular: moved string_to_pdp_type from AT_CellularContext to Cellula…
2019-08-14 12:53:20 +02:00
Teppo Järvelin
6a17d74b55
Cellular: notify global up after we have IP address
...
CellularContext now tries to get an IP address after connect and before
sending NSAPI_STATUS_GLOBAL_UP. Even if we don't the IP address from
the modem we will send NSAPI_STATUS_GLOBAL_UP and return success.
Modem has an ip address but for some reason some modems don't
give it to us.
2019-08-14 12:54:13 +03:00
paul-szczepanek-arm
280c55d57a
fix recursive call
2019-08-14 09:39:04 +01:00
paul-szczepanek-arm
8acd127640
handle early termination of ad struct
2019-08-13 14:49:18 +01:00
Martin Kojtal
b82cfcc38b
Merge pull request #11193 from michalpasztamobica/fat_stat
...
FATFileSystem::stat() enabled for all compilers
2019-08-13 11:23:10 +02:00
Mahesh Mahadevan
9ebbdbf1bb
MCUXpresso: Update KW41 nanostack drivers to not enter deep sleep when active
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:57:11 -05:00
Mahesh Mahadevan
85ef683bfc
MCUXpresso: Update ENET drivers to not enter deep sleep when active
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-08-12 10:57:08 -05:00
paul-szczepanek-arm
c79ffd112f
add nonscannable connectable type
2019-08-12 16:38:42 +01:00
Teppo Järvelin
3c1bf0a9e2
Cellular: moved string_to_pdp_type from AT_CellularContext to CellularUtil
...
string_to_pdp_type is a common method for AT and other layers.
Without moving there will be duplicate methods.
2019-08-12 10:27:57 +03:00
Ron Eldor
0b1b4cc908
Remove redundant file accidently added
...
Remove unneeded redundant file that was accidentally added.
2019-08-11 14:26:52 +03:00
Ron Eldor
d09e3ef3b4
Style fixes
...
1. Remove redundant extra lines.
2. Have the function parameters aligned.
3. Remove redundant white spaces.
2019-08-11 14:03:34 +03:00
Michal Paszta
406fcdc9b7
FATFileSystem::stat() enabled for all compilers
...
Macro which restricted compilation to GCC_ARM is removed.
Existing read_write() test is amended to call stat() and check that correct size is returned.
2019-08-09 15:52:49 +03:00
Teppo Järvelin
6e71932baf
Cellular: move RAT reading to better support ublox custom boards
...
AT commands used in read_radio_technology() function are not supported
by all boards so moving the function where it's actually used. Usage was
already inside of the #ifdef's.
2019-08-09 13:23:50 +03:00
Teppo Järvelin
10251ab3b2
Cellular: failure when deleting created context is not considered as an error
...
If delete fails there is nothing we or application can do. There is no point
returning an error for this. This affects to AT_CellularContext::disconnect
not returning an error if context delete fails.
2019-08-09 12:27:25 +03:00
Seppo Takalo
9bf85ef67e
Merge pull request #11179 from ARMmbed/storage_coverity_fixes
...
Zero initialise all NVStore&kvstore members
2019-08-07 17:23:03 +03:00
Seppo Takalo
3b0053c234
Merge pull request #11161 from desmond-blue/feature-fix-path-cloud-client
...
Fix include path issues on NRF5x with Cordio
2019-08-07 16:22:24 +03:00
Seppo Takalo
7d7416558a
Merge pull request #11073 from ARMmbed/feature-public-headers
...
Feature public headers
2019-08-07 16:04:45 +03:00
Seppo Takalo
a5e3336c19
Zero initialise all NVStore&kvstore members
2019-08-07 14:17:15 +03:00
Seppo Takalo
5f6379a55d
Merge pull request #11119 from Reda-RM/master
...
Riot Micro cellular device
2019-08-07 14:07:27 +03:00
Seppo Takalo
976c30c52b
Merge pull request #11162 from AriParkkila/cell-dns
...
Add DNS servers from cellular PDP to nsapi
2019-08-07 14:06:49 +03:00
Seppo Takalo
6781c793b6
Merge pull request #11173 from michalpasztamobica/coverity_fixes
...
Coverity and compilation warnings fixes
2019-08-07 14:06:04 +03:00
Michal Paszta
73b122b2c4
Coverity and compilation warnings fixes
2019-08-07 10:30:52 +03:00
Dominika Maziec
e9059c214c
TLSSocketWrapper::recvfrom sets SocketAddress output variable
...
UNITTEST added. TLSSocketWrapper unittest does not use stoip4_stub anymore.
2019-08-06 15:07:39 +02:00
Teja Narahari
d84b47728a
Enterprise security support
2019-08-06 14:46:37 +05:30
Seppo Takalo
46a56fb47b
Merge pull request #11154 from AriParkkila/cell-shutdown-stm
...
Cellular API shutdown to stop state machine
2019-08-06 11:34:44 +03:00
Seppo Takalo
dd2d585f30
Merge pull request #11149 from mirelachirica/remove_local_stack_types
...
Cellular: Remove unnecessary local variables
2019-08-06 11:29:56 +03:00
Seppo Takalo
13ee14c624
Merge pull request #11156 from artokin/nanostack_patch_for_mbed_os_5_13_x
...
Nanostack patch release for Mbed OS 5.13.x
2019-08-06 11:28:36 +03:00
Veijo Pesonen
9222e15848
Allows having KVStore in internal and update image in external flash
...
Fixes a bug where it has not been possible to have KVStore in internal
flash while an update image image has been kept in external storage.
2019-08-06 09:49:14 +03:00
Ari Parkkila
e1124668db
Cellular: Add DNS servers from PDP contexts to nsapi_dns
2019-08-05 21:53:24 -07:00
Seppo Takalo
937e791ae0
Merge pull request #10980 from vmedcy/tcpip-thread-priority
...
LwIP: make TCPIP_THREAD_PRIO configurable
2019-08-05 16:12:01 +03:00
Ari Parkkila
3f74a7f6f9
Fix nsapi_dns_add_server to add a server just once
2019-08-05 03:11:06 -07:00
desmond.chen
3880ae3e81
Fix include path issues on NRF5x with Cordio
2019-08-05 15:17:30 +08:00
Reda Maher
022b99325b
Cellular: Support Riot Micro cellular device
2019-08-03 23:42:26 +02:00
Hugues Kamba
f0f408b2d8
Upstream PR #11073 review request changes ( #11135 )
...
* Modify Doxygen grouping of `drivers` Public/Internal APIs
* Correct classification of `mbed_events.h`
* Amend name of Doxygen group containing Device Key API
* Classify `CallChain.h` as public API and relocate file
* Remove Doxygen group from `equeue_platform.h` as it has no Doxygen compliant documentation
* Move USB target specific code back to `usb/device/targets`
2019-08-02 12:32:40 +01:00
George Psimenos
3b23edb78c
Fix CI for branch feature-public-headers ( #11093 )
...
* Fix rtos include path in NRFCordioHCIDriver
* Flatten USB driver directory structure
* Add missing include for us_ticker
* Add more missing includes for us_ticker
* Fix mbed_hal_fpga_ci_test_shield/uart test
* Fix bare-metal build
* Fix Watchdog UNITTEST
* Fix Mbed OS 2 build for Public/Internal headers relocating
2019-08-02 12:32:40 +01:00
Hugues Kamba
bfa1b4dd84
Drivers/Events/RTOS Public and internal APIs cleanup ( #10955 )
...
Separate drivers, events, and rtos internal APIs from public APIs.
* Move source files to source subdirs
* Move internal headers to internal subdirs
* Add Doxygen comments for documenting internal and public APIs
* Remove source code from header files in order to remove include pre-processor directives
that included header files not directly used by said header files
* Explicitly include header files instead of implicit inclusions via third-party header files.
Release Notes
This will break user code that was using an internal API as the internal header files have been moved.
This will only break if the user was including the header file using a namespace (i.e #include "foo/bar.h" instead of #include "bar.h"
2019-08-02 12:23:47 +01:00
Arto Kinnunen
d902c1a135
Merge commit 'c51a57a0334645b14794f6082737b11d8b8c56db' into prepare_for_mbedos_5_13_3
...
* commit 'c51a57a0334645b14794f6082737b11d8b8c56db':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 0345477..3c7d50e
2019-08-02 13:52:37 +03:00
Arto Kinnunen
dac37a8994
Merge commit '489fa3adeb46ef38d46db4339dfe8935c9444b02' into prepare_for_mbedos_5_13_3
...
* commit '489fa3adeb46ef38d46db4339dfe8935c9444b02':
Squashed 'features/nanostack/coap-service/' changes from 3c79829..3b447d2
2019-08-02 13:51:07 +03:00
Seppo Takalo
818c1d6f0f
Merge pull request #11130 from Tharazi97/NotSupportedTest
...
Updated testcases
2019-08-02 13:27:54 +03:00
Seppo Takalo
2ca8487371
Merge pull request #11082 from AriParkkila/cell-bg96-dns
...
Cellular: Add BG96 AT driver with DNS support
2019-08-02 13:27:09 +03:00
Seppo Takalo
4a1f00a081
Merge pull request #10877 from u-blox/ubx_context_activation
...
Cellular: Ublox cellular context activation updated for C030_R412M
2019-08-02 13:24:37 +03:00
Ari Parkkila
ed3562e764
Cellular: Fix shutdown to stop statemachine
2019-08-02 02:26:12 -07:00
Ari Parkkila
cbe2b50a32
Cellular: Fix SIM pin enter command
2019-08-01 03:46:33 -07:00
Mirela Chirica
341cc2be03
Cellular: Remove unnecessary local variables
2019-08-01 13:26:05 +03:00
Seppo Takalo
54d7d7e4c3
Merge pull request #10913 from RonEld/sha512_cc310_porting
...
Port CC 310 sha 512 driver
2019-08-01 13:13:11 +03:00
int_szyk
ae6f8be146
Newline at the end of files
2019-08-01 08:44:58 +02:00
int_szyk
a8d8bd6c18
Astyle
2019-07-31 12:27:41 +02:00
int_szyk
8b68a1ea58
Updated testcases
2019-07-31 10:46:38 +02:00
Ari Parkkila
71c7ed2fb4
Cellular: Add BG96 AT driver with DNS support
2019-07-31 00:19:05 -07:00
mudassar-ublox
6cd60178fa
UBLOX cellular context activation updated for C030_R412M and updated AUTH configuration
2019-07-30 12:19:20 +05:00
Seppo Takalo
2c6280b9c7
Merge pull request #11066 from AriParkkila/cell-fix-restart
...
Cellular: Fix cellular statemachine stop and BG96 power up
2019-07-29 17:40:35 +03:00
Seppo Takalo
e88101f3d6
Merge pull request #10947 from RonEld/cc310_cmac_porting
...
Port the cryptocell 310 cmac driver
2019-07-29 17:39:17 +03:00
Ari Parkkila
742bfd3709
Cellular: Fix statemachine stop
2019-07-26 00:34:45 -07:00
Seppo Takalo
6ce2439c0f
Merge pull request #11086 from Tharazi97/Greentea_compile_without_serial
...
Mbed-os compile without DEVICE_SERIAL
2019-07-25 12:45:37 +03:00
Ron Eldor
a1c5fcd9f7
Add a deinit function
...
Add a deinit function that will be called and check inside
whether context is initialized. This function is called for
freeing the CC context, instead of every time check that it's
initizliaed and free it.
2019-07-24 15:23:46 +03:00
Seppo Takalo
8881da964c
Merge pull request #11090 from AriParkkila/cell-delete-context
...
Cellular: Fix to delete context just once
2019-07-24 11:15:50 +03:00
Ron Eldor
4e29c8f939
Make the cmac context a typedef
...
Make the cmac context a typedef, to be compatible with c code.
2019-07-23 16:05:33 +03:00
Ron Eldor
f492ce8405
Handle CC context correct
...
Initiate the CC context in the starts function and in the reset.
In the reset function, free aes context before.
Free the context in the finish function and reset function.
2019-07-23 16:05:27 +03:00
Seppo Takalo
0b8ae1b098
Merge pull request #11084 from mtomczykmobica/IOTSTOR-832
...
NVStore.cpp (and KVStore) - run-time failure handling missing
2019-07-23 15:28:26 +03:00
Ron Eldor
4cf3e1c1bc
Style fixes
...
Remove redundant extra lines.
2019-07-23 13:54:09 +03:00
Ari Parkkila
ac78b5ab16
Cellular: Fix to delete context just once
2019-07-23 03:04:24 -07:00
Seppo Takalo
3a96f436ea
Merge pull request #10847 from davidsaada/david_ps_add_sec_flags
...
PSA storage: Conform to "PSA 1.0.0" spec release
2019-07-23 12:05:22 +03:00
int_szyk
4c13c469d9
Can compile without serial
2019-07-22 16:17:52 +02:00
Marcin Tomczyk
6cdb8f0f49
NVStore.cpp (and KVStore) - run-time failure handling missing
2019-07-22 15:04:20 +02:00
Seppo Takalo
bec388ffb1
Merge pull request #11078 from bentcooke/52840_patch2
...
NRF52840: fix include path issues for ble pal cordio ll and gcc
2019-07-22 14:11:50 +03:00
Seppo Takalo
0e33dd7e62
Merge pull request #11080 from kyle-cypress/pr/cy8ckit-062s2-43012
...
Add target for CY8CKIT_062S2_43012
2019-07-22 14:09:33 +03:00
Kyle Kearney
40557cefeb
Add target for CY8CKIT_062S2_43012
2019-07-19 15:44:27 -07:00
Ben Cooke
4273221919
NRF52840: fix include path issues for cordio ll and gcc
2019-07-19 12:09:31 -05:00
Seppo Takalo
77786926bc
Merge pull request #11039 from kjbracey-arm/mstd
...
Add <mstd_xxx> C++ headers
2019-07-19 13:00:41 +03:00
Seppo Takalo
8006d5f3c3
Merge pull request #11035 from Patater/update-to-mbedtls-2.18.1rc1
...
mbedtls: Update to Mbed TLS 2.18.1
2019-07-19 11:22:13 +03:00
Ari Parkkila
7a5e4ca5da
Cellular: Fix BG96 power up
2019-07-18 23:13:36 -07:00
Kevin Bracey
0bb4c050b7
SingletonPtr: API extensions, make constexpr
...
* Adjust definition to make the default constructor `constexpr`.
This permits use in classes that want lazy initialization and their
own `constexpr` constructor, such as `mstd::mutex`.
* Add `get_no_init()` method to allow an explicit optimisation for
paths that know they won be the first call (such as
`mstd::mutex::unlock`).
* Add `destroy()` method to permit destruction of the contained object.
(`SingletonPtr`'s destructor does not call its destructor - a cheat
to omit destructors of static objects). Needed if using in a class
that needs proper destruction.
2019-07-18 20:02:04 +03:00
Seppo Takalo
2f136b977f
Merge pull request #11058 from paul-szczepanek-arm/make-weak-fix
...
BLE: allow overriding event signal
2019-07-17 23:30:16 +03:00
Balaji
69782a4ca6
LwIP: make TCPIP_THREAD_PRIO configurable
2019-07-17 18:51:45 +03:00
paul-szczepanek-arm
67c7a06a86
fix macro usage
2019-07-16 16:59:02 +01:00
Amanda Butler
5ca5e74806
Edit Readme.md
...
Edit file, mostly for active voice, formatting and parallel construction.
2019-07-16 09:46:10 -05:00
paul-szczepanek-arm
f13318df60
make event signal weak so it can be overridden
2019-07-16 13:49:20 +01:00
Kevin Bracey
a522dcfa0a
Replace deprecated wait calls
2019-07-15 10:13:50 +03:00
Kevin Bracey
fc8e8f67c6
Deprecate wait/wait_ms APIs
2019-07-15 10:13:50 +03:00
David Saada
fb3559d841
PSA storage: Conform to "PSA 1.0.0" spec release
...
- Add the no confidentiality & no replay protection flags
- Add actual size parameter in PS/ITS get APIs
- Change a few size parameters from uint32_t to size_t
2019-07-14 18:50:47 +03:00
Jaeden Amero
045cd67e6d
mbedtls: Update to Mbed TLS 2.18.1
...
Update to Mbed TLS 2.18.1 and Mbed Crypto 1.1.1.
2019-07-12 16:07:43 +01:00
Kevin Bracey
d53bd6120d
Merge pull request #10274 from kjbracey-arm/atomic_template
...
Add Atomic<T> template
2019-07-12 14:26:03 +03:00
Evelyne Donnaes
0f39f01595
Merge pull request #11027 from vmedcy/pr/cy-lwip
...
PSOC6: add LwIP configuration for Cypress boards
2019-07-12 11:22:11 +01:00
Volodymyr Medvid
579cd9a355
PSOC6: add LwIP configuration for Cypress boards
2019-07-11 15:47:38 +01:00
Kevin Bracey
607856ee9a
Set unit tests to C++14
...
Adjust some non-C++11-compatible code that failed as a result.
2019-07-09 19:08:57 +03:00
Ron Eldor
2dcaecea3c
Fix typo
...
suipport -> support
2019-07-09 11:42:37 +03:00
Ron Eldor
a08b150546
Explaining how to opt in modules
...
Add a section in the CC Readme file explaining how to enable the optional module.
2019-07-08 18:43:39 +03:00
Ron Eldor
6b17df7685
Make the alternative sha512 optional
...
Have the alternative sha512 undefined by default,
in order not to break backwards compatability.
2019-07-08 18:32:18 +03:00
Ron Eldor
a99ce834bd
Make the alternative aes optional
...
Have the alternative aes undefined by default,
in order not to break backwards compatability.
`MBEDTLS_CTR_DRBG_USE_128_BIT_KEY` remains defined for better usability.
2019-07-08 18:29:52 +03:00
Ron Eldor
77d8b067bf
Make the alternative cmac optional
...
Have the alternative cmac undefined by default,
in order not to break backwards compatability.
2019-07-08 18:27:54 +03:00
Ron Eldor
a5aac1e4b6
Fix functionality issues
...
FIx some functionality issues for better visibility:
1. Allocate the context only for 128 bit key
2. Change oreder of freeing the resources.
2019-07-08 18:12:47 +03:00
Ron Eldor
f5956ce90b
Style fixes
...
Fix minor style fixes and typos:
1. Change file name to correct one.
2. Change copyright year.
3. Insert whitespaces before and after paranthesis.
4. Put `*` next to pointer name.
2019-07-08 18:10:48 +03:00
Volodymyr Medvid
85a5bc0bf9
PSOC6: apply astyle to WHD EMAC driver implementation
2019-07-08 15:58:46 +03:00
Volodymyr Medvid
5cc66282dd
PSOC6: remove PSA targets
2019-07-08 14:49:26 +03:00
Volodymyr Medvid
1926ba8e18
TARGET_CYW43XXX: Added Bluetooth firmware
2019-07-08 14:49:26 +03:00
Volodymyr Medvid
572221446f
PSOC6: add WHD EMAC driver
2019-07-08 14:49:26 +03:00
Arto Kinnunen
faf7f79e03
Merge pull request #10971 from artokin/nanostack_libservice_update
...
Nanostack: sync libservice with changes in master copy
2019-07-08 11:42:57 +03:00
Martin Kojtal
4b7fd707f1
Merge pull request #10867 from teijokinnunen/lora_phy_freq_print_fix
...
LoRaPHY: Pass frequency set in rx_config() to caller
2019-07-05 11:22:18 +01:00
Martin Kojtal
eadc799584
Merge pull request #10919 from jeromecoutant/PR_AT_MUTEX
...
AT Cellular Network: mutex lock issue
2019-07-05 09:03:07 +01:00
Arto Kinnunen
51d37d5da4
Merge commit '8730005927c6e12a78957c2eda92dc5a9698cdea' into nanostack_libservice_update
...
* commit '8730005927c6e12a78957c2eda92dc5a9698cdea':
Squashed 'features/frameworks/nanostack-libservice/' changes from dd98c37..9af7568
2019-07-05 10:44:37 +03:00
Martin Kojtal
5bc30dff9f
Merge pull request #10948 from AGlass0fMilk/stop-flexing
...
BLE: Stop flexing on Tesla
2019-07-04 15:35:46 +01:00
Martin Kojtal
d2e5941bc3
Merge pull request #10894 from dgreen-arm/update-mbedtls-makefile
...
Add adjust-check-config script to mbedtls importer
2019-07-04 15:01:12 +01:00
Martin Kojtal
7059221817
Merge pull request #10925 from AnttiKauppila/buff_size_fix
...
Doubled ATHandler's BUFF_SIZE
2019-07-03 11:48:02 +01:00
George Beckstein
bb60251fdf
Remove flexing on Tesla 💪 💪 💪
2019-07-02 13:05:18 -04:00
Ron Eldor
641c518c4e
Port the cryptocell 310 cmac driver
...
Add support for CC310 CMAC driver returning
`MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for key size other than 128 bits,
and for crypto algorithms other than AES( e.g. DES).
2019-07-02 18:50:28 +03:00
Martin Kojtal
149d53cc89
Merge pull request #10619 from jamesbeyond/fm-iap
...
Fastmodel: enable flashIAP and kvstore
2019-07-02 14:23:00 +01:00
Antti Kauppila
c315672413
Doubled ATHandler's BUFF_SIZE
2019-07-02 10:17:06 +03:00
Philipp Steiner
3b904d580b
Solve bug: Low frequency clock will now selected by given "lf_clock_src" setting.
2019-07-01 15:38:22 +02:00
Ron Eldor
50d75394d3
Code improvements
...
1. Make common function for setting key, which receives
the direction as parameter.
2. Remove rediundant extra lines.
2019-07-01 13:37:26 +03:00
Martin Kojtal
d2c73f2bcd
Merge pull request #10842 from ghseb/cellular-stack-type-fixes
...
Cellular: Stack type fixes
2019-07-01 09:23:21 +01:00
Martin Kojtal
755c6b8c2f
Merge pull request #10861 from pauluap/lwip_use_recursive_mutex
...
Make the sys_arch_protect() mutex be recursive.
2019-07-01 09:19:29 +01:00
Martin Kojtal
6be510daa4
Merge pull request #10900 from TeroJaasko/armcc5_compilation_fixes
...
Armcc5 compilation fixes
2019-07-01 09:16:56 +01:00
Martin Kojtal
76f085bf2f
Merge pull request #10908 from kivaisan/fix_armc6_netconn_recv_tcp_pbuf
...
Fix netconn_recv_tcp_pbuf ARMC6 linker error
2019-07-01 09:16:36 +01:00
Martin Kojtal
193ba0fdea
Merge pull request #10910 from kivaisan/increase_dns_response_wait_time
...
Increase dns-response-wait-time
2019-07-01 09:16:10 +01:00
Martin Kojtal
60d047cae3
Merge pull request #10840 from u-blox/socket_flag_update
...
Cellular: cellular socket flags updated
2019-07-01 09:04:16 +01:00
jeromecoutant
758a4bb56a
AT Cellular Network: mutex lock issue
2019-06-28 16:08:52 +02:00
Ron Eldor
a060c7b0cb
Port CC 310 sha512 driver
...
Port the cc310 SHA512 driver, even though it is sw implementation.
Because the linker could not remove the cc310 sha512 implementation,
there was duplicate implementation of SHA512, without enabling
the sha512 alternative implementation.
2019-06-27 18:23:26 +03:00
Kimmo Vaisanen
df1d36ebb2
Increase dns-response-wait-time
...
In some cellular networks or with some modems, DNS response can take longer than 5 seconds to arrive.
2019-06-27 15:27:01 +03:00
Ron Eldor
a58457d8a5
Port aes cc310 driver
...
Add support for CC310 AES driver,
returning `MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED` for key size
other than 128 bits, and for AES modes not supported by the driver.
Use `MBEDTLS_CTR_DRBG_USE_128_BIT_KEY`.
2019-06-27 14:24:53 +03:00
Kimmo Vaisanen
ff88a751f7
Fix netconn_recv_tcp_pbuf ARMC6 linker error
...
If "lwip.tcp-enabled" is set to false, ARMC6 compilation fails to error
Error: L6218E: Undefined symbol netconn_recv_tcp_pbuf
LWIP::socket_recv() is TCP socket specific method so implementation can be
enabled only when LWIP_TCP flag is set.
2019-06-27 14:18:07 +03:00
Tero Jääskö
bae3043e92
cellular: AT: fix build on ARMCC5
...
ARMC5 failed to compile the code with debug-profile (!!) as va_list
is getting into std:: namespace when one includes <cstdarg>. Other
compilers seem to be more relaxed, and so is ARMC5 if compiled
with other profiles.
Add the explicit std:: to references of va_list.
While here, remove one extra copy of "#include "PlatformMutex.h""
and a "#include <stdarg.h>" which is kind of duplicate of
"#include <cstdarg>".
Error being fixed:
--8<--8<--8<--
Compile [ 81.8%]: ATHandler.cpp
[Error] ATHandler.h@552,0: #20 : identifier "va_list" is undefined
[Error] ATHandler.cpp@1226,0: #147 : declaration is incompatible with "void mbed::ATHandler::handle_args(const char *, <error-type>)" (declared at line 552 of "./mbed-os/features/cellular/framework/AT/ATHandler.h")
[ERROR] "./mbed-os/features/cellular/framework/AT/ATHandler.h", line 552: Error: #20 : identifier "va_list" is undefined
"./mbed-os/features/cellular/framework/AT/ATHandler.cpp", line 1226: Error: #147 : declaration is incompatible with "void mbed::ATHandler::handle_args(const char *, <error-type>)" (declared at line 552 of "./mbed-os/features/cellular/framework/AT/ATHandler.h")
./mbed-os/features/cellular/framework/AT/ATHandler.cpp: 0 warnings, 2 errors
2019-06-26 19:58:34 +03:00
Tero Jääskö
14bb4399b3
nanostack: silence compiler warnings for implicit virtual call_in
...
ARMCC reminds of the missing virtual declaration of call_in in the
Nanostack.h.
Warnings silenced:
---8<---8<---
Compile [ 52.3%]: LoWPANNDInterface.cpp
[Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
Compile [ 52.4%]: NanostackEMACInterface.cpp
[Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
Compile [ 52.5%]: MeshInterfaceNanostack.cpp
[Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
Compile [ 52.6%]: NanostackEthernetInterface.cpp
[Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
Compile [ 52.7%]: ThreadInterface.cpp
[Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
ompile [ 53.0%]: WisunInterface.cpp
[Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
2019-06-26 16:55:10 +03:00
Darryl Green
8f6667d3d2
Add adjust-check-config script to mbedtls importer
...
In Mbed OS, there are configuration options with Mbed TLS that we
are more comfortable allowing than we do with Mbed TLS on its own.
Add a check-config adjusting script to enable removing or changing
options in check_config.h
2019-06-26 13:26:18 +01:00
Martin Kojtal
68c3dc6161
Merge pull request #10864 from anttiylitokola/tlssocket-cert-debug-info
...
TLSSocket: print certificate info only when tracing is enabled
2019-06-26 09:09:15 +01:00
Martin Kojtal
e9e9bf3f8d
Merge pull request #10879 from Patater/mbed-crypto-everywhere
...
PSA Crypto for all targets
2019-06-25 15:21:38 +01:00
Martin Kojtal
4b438ac1de
Merge pull request #10834 from tymoteuszblochmobica/udp
...
Fixed UDP sendto if IP version not match
2019-06-25 11:03:03 +01:00
Martin Kojtal
63d1ea36f1
Merge pull request #10821 from kivaisan/refactor_apn_db
...
Cellular: Refactor APN db implementation to reduce memory usage
2019-06-25 11:02:24 +01:00
Martin Kojtal
34eefb49fa
Merge pull request #10858 from LMESTM/fix_cellular_properties
...
Check Cellular Properties have been set
2019-06-25 10:58:23 +01:00
Sebastian Stockhammer
142a223cf9
Fix astyle
2019-06-25 07:51:27 +02:00
Martin Kojtal
c9bdcd6b16
cellular: fix file permission
2019-06-24 22:23:10 +01:00
Martin Kojtal
979f26f74d
Merge pull request #10875 from mirelachirica/revert_ipv6_bg96
...
Cellular: Remove IPV6 and IPV4V6 as supported properties for BG96
2019-06-24 14:55:50 +01:00
Martin Kojtal
66b7165f38
Merge pull request #10845 from jeromecoutant/PR_TIMEOUT
...
Wrong timeout value in greentea tests
2019-06-24 12:18:34 +01:00
Martin Kojtal
13081a21ab
Merge pull request #10808 from mirelachirica/bg96_pdpdeact
...
Cellular: Added handling for BG96 network PDP context deactivation
2019-06-24 11:23:40 +01:00
Anna Bridge
15b5b5da23
Merge pull request #10694 from jarvte/set_authentication_type
...
Cellular: add method to set authentication type to CellularContext
2019-06-21 12:19:04 +01:00
mudassar-ublox
26f1d0b659
cellular socket flags updated
2019-06-21 10:05:35 +05:00
Jaeden Amero
24b1768f53
crypto: Enable use on non-PSA targets
...
Move PSA Crypto implementation files outside of a TARGET_PSA folder,
enabling use of PSA Crypto APIs on more Mbed OS targets.
2019-06-20 16:11:22 +01:00
Mirela Chirica
ce6415bfce
Cellular: Remove IPV6 and IPV4V6 as supported properties for BG96
...
IPV6 and IPV6V4 support is also network dependent not only modem.
Having these properties enabled for a modem requires a fallback
mechanism during PDP context activation. This mechanism is missing
at the moment and that can result in imposibility to establish
succesfull connection when network only supports IPV4 contexts.
2019-06-20 14:48:07 +03:00
Laurent Meunier
3286472de9
Check Properties have been set
2019-06-20 09:23:48 +02:00
Paul Thompson
91402f4d77
Make the sys_arch_protect() mutex be recursive.
...
Fixes #9744
Appears to be a lwIP porting bug. Comments in our porting layer say:
This function should support recursive calls from the same task or interrupt. In other words, sys_arch_protect() could be called while already protected.
2019-06-19 21:49:33 -07:00
Anna Bridge
363ad8ab14
Merge pull request #10825 from kivaisan/fix_plmn_debug_trace
...
Cellular: Fix PLMN debug trace for IAR
2019-06-19 15:04:24 +01:00
Anna Bridge
37640301e0
Merge pull request #10812 from jarvte/fix_multiple_urc_athander
...
Cellular: fix athandler to use correct timeout in case of multiple urc's
2019-06-19 15:03:36 +01:00
Anna Bridge
b8f413a4a2
Merge pull request #10811 from u-blox/ubx_socket_close_callback
...
socket close callback
2019-06-19 15:02:17 +01:00
Anna Bridge
5b0f45f685
Merge pull request #10807 from kjbracey-arm/lwip_tcp_pbuf
...
NSAPI/lwIP: Use netconn_recv_tcp_pbuf
2019-06-19 14:57:18 +01:00
Tymoteusz Bloch
b272c5f149
Fixed LWIPStack socket_sendto member to fail if interface IP4/6 version differ from destination adress IP version
2019-06-19 14:03:48 +02:00
Teijo Kinnunen
feb19eb035
LoRaPHY: Pass frequency set in rx_config() to caller
...
In AU/CN/US PHY, RX1 slot frequency is calculated in rx_config().
Since the caller is printing it to log, modify the frequency in
parameter structure so that the correct value will be printed.
2019-06-19 14:24:21 +03:00
Anna Bridge
2fd7f80f35
Merge pull request #10484 from trowbridgec/telit-me910-driver
...
Cellular: Telit ME910 driver
2019-06-19 12:07:25 +01:00
Anna Bridge
6000724de6
Merge pull request #10703 from AnttiKauppila/optimisation
...
Cellular: Removed boilerplate code
2019-06-19 12:06:10 +01:00
Antti Yli-Tokola
b5661ff16c
TLSSocket: print certificate info only when tracing is enabled
...
Flagging these functions out will reduce flash size more than 3k.
2019-06-19 10:05:10 +03:00
Anna Bridge
46be52636c
Merge pull request #10659 from LDong-Arm/replace_ArrayView
...
Replace uses of ArrayView with mbed::Span
2019-06-18 16:26:46 +01:00
jeromecoutant
bfd8bfdbc9
Wrong timeout value in greentea tests
2019-06-17 13:07:20 +02:00
Sebastian Stockhammer
7dc4c99b23
Allow IPV4V6 stack type
2019-06-17 10:06:27 +02:00
Sebastian Stockhammer
402c471e70
Require exact context type match
2019-06-17 10:03:06 +02:00
Chris Trowbridge
28f7a4e6a6
Moved DEFAULT_DELAY_BETWEEN_AT_COMMANDS constant to cpp file
2019-06-14 08:02:33 -04:00
Kimmo Vaisanen
d7858f6184
Cellular: Refactor APN db implementation to reduce memory usage
...
Reduce memory usage by moving actual APN database into single object file
instead of having it defined in header as a static.
2019-06-14 13:31:54 +03:00
Kimmo Vaisanen
b26314a799
Cellular: Fix PLMN debug trace for IAR
...
IAR does not allow printing from null pointer as parameter for %s. PLMN string
can be null depending on user configuration.
2019-06-13 15:35:37 +03:00
Antti Kauppila
1ed338ef28
Valgrind & unittest fixes
2019-06-13 15:15:53 +03:00
mudassar-ublox
3ad1ee1fe4
Style issue fixed
2019-06-13 16:58:50 +05:00
Anna Bridge
3e6f5eba6c
Merge pull request #10764 from mirelachirica/bg96_sockid_fix_ipv6_support
...
BG96 ipv6 support and socket id fix for BG96 and M26
2019-06-12 17:04:46 +01:00
Anna Bridge
4ad71c4d65
Merge pull request #10802 from Patater/update-to-mbedtls-2.18.0rc4
...
Update to mbedtls 2.18.0rc3
2019-06-12 16:09:02 +01:00
Anna Bridge
cda2031d1b
Merge pull request #10809 from kjbracey-arm/ns_list_stdint
...
ns_list: avoid UINT_FAST8_MAX (fix ARM C 5 builds)
2019-06-12 14:49:47 +01:00
Chris Trowbridge
ea5d8cf26d
Remove unnecessary init AT commands
2019-06-12 09:36:22 -04:00
Teppo Järvelin
6b11ca1371
Cellular: fix athandler to use correct timeout in case of multiple urc's
...
Start time was not updated when multiple urc's were found and so timeout
was set to zero. Now that start time is updated, timeout is correct.
2019-06-12 11:21:00 +03:00
mudassar-ublox
488d47b723
socket close callback
2019-06-12 12:15:10 +05:00
Kevin Bracey
5c3b15cf81
ns_list: avoid UINT_FAST8_MAX
...
Prevent compilation issues when someone has included <stdint.h> before
a header file that needs to include <ns_list.h>.
Some toolchains like ARM C 5 will not provide UINT_FAST8_MAX in C++
unless __STDC_LIMIT_MACROS is defined, and if this was not defined the
first time <stdint.h> was included, it's too late.
We can get the maximum value for our unsigned list offset by casting -1
to it, thanks to modulo arithmetic.
2019-06-11 17:13:27 +03:00
Anna Bridge
fc645bc3ed
Merge pull request #10805 from kjbracey-arm/armc5_blinky
...
Fix ARMC5 compilation
2019-06-11 15:07:43 +01:00
Martin Kojtal
ed69fc12ad
Merge pull request #10794 from tymoteuszblochmobica/dns
...
LWIP DNS servers setting/getting fixed.
2019-06-11 14:14:38 +01:00
Mirela Chirica
0339ffd1b9
Cellular: Added handling for BG96 network PDP context deactivation
2019-06-11 16:05:27 +03:00
Kevin Bracey
3b178a08ef
NSAPI/lwIP: Use netconn_recv_tcp_pbuf
...
Slight RAM+speed efficiency improvement - read the TCP implementation's
native pbufs, rather than forcing netconn_recv to generate netbuf
wrappers for us. Saves one small lwIP heap allocation per TCP packet
received.
2019-06-11 16:00:11 +03:00
Jaeden Amero
1470d06811
mbedtls: PSA entropy is compatible with other entropy
...
When using Mbed Crypto's PSA Entropy Injection feature on Mbed OS, it is
not required to opt out of having entropy sources added to your entropy
contexts by default (via MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES).
As integrated in Mbed OS, MBEDTLS_PSA_INJECT_ENTROPY is compatible with
actual entropy sources. PSA entropy injection is implemented using the
standard Mbed TLS NV Seed feature, and is as compatible with other
entropy sources as the standard Mbed TLS NV Seed feature which does
support entropy mixing.
2019-06-11 12:43:17 +01:00
Kevin Bracey
6df6decdfc
Fix ARMC5 compilation
...
Minor tweaks to fix ARM C 5 compatibility.
Pushing "ns_list.h" include to first makes sure "ns_types.h" is included
first, meaning it gets to define `__STDC_LIMIT_MACROS` before the first
include of <stdint.h>, which ensures that UINT8_MAX etc are defined.
2019-06-11 13:00:14 +03:00
Antti Kauppila
e19249f276
Tracing added for Handle_start + doxygen updates
2019-06-10 17:18:18 +03:00
Jaeden Amero
4917b10725
mbedtls: Update to Mbed TLS 2.18.0-rc3
2019-06-10 13:05:46 +01:00
Jaeden Amero
03b2c53ff6
mbedtls: Update to Mbed Crypto 1.1.0d2
2019-06-10 09:55:55 +01:00
Martin Kojtal
42dbcbdc86
Merge pull request #10772 from LDong-Arm/GenericGap_advParams
...
Workarounds for GAP advertising issues on Cordio
2019-06-09 18:21:41 +01:00
Martin Kojtal
dc77c40fe9
Merge pull request #10709 from LDong-Arm/nrf52_cordio
...
Default to Cordio BLE stack for NRF52* targets
2019-06-09 18:03:34 +01:00
Martin Kojtal
df84eb1b28
Merge pull request #10653 from desowin/stm-usb-host
...
STM USBHALHost: Fix NULL pointer dereference
2019-06-09 18:01:46 +01:00
Tymoteusz Bloch
4005c77f21
LWIP DNS servers setting/getting fixed.
2019-06-07 18:58:05 +02:00
Lingkai Dong
7426a8a860
Remove ArrayView
...
All use of ArrayView within mbed-os have been removed, and
it is not a public API.
2019-06-07 16:19:18 +01:00
Lingkai Dong
6f7f1337cd
BLE: Replace uses of ArrayView with mbed::Span
...
The platform API mbed::Span provides the same features as ArrayView.
2019-06-07 16:18:55 +01:00
paul-szczepanek-arm
1fe06f18c3
exculde test
2019-06-07 13:50:30 +01:00
Martin Kojtal
6a1ab73988
Merge pull request #10770 from Patater/update-to-mbedcrypto-1.1.0d1
...
mbed-crypto: Update to Mbed Crypto 1.1.0d1
2019-06-07 09:18:53 +01:00
Chris Trowbridge
9a1309f5f8
Modify ME910 driver to follow power on/off best practices and add custom get_context() function
2019-06-06 14:29:15 -04:00
Qinghao Shi
81c96a785d
Tests: enable kvstore test for Fastmodel for test code coverage
2019-06-06 18:54:59 +01:00
Qinghao Shi
111daa0a4c
FastModel: enable kvstore
2019-06-06 18:54:58 +01:00
Chris Trowbridge
0a717e435b
Add default soft/hard power on/off sequences for ME910
2019-06-06 10:26:51 -04:00
Chris Trowbridge
0d9facd921
Remove ME910 trace group #define
2019-06-06 10:26:50 -04:00
Chris Trowbridge
21a8ed8108
Remove ME910 flow control debug message
2019-06-06 10:26:50 -04:00
Chris Trowbridge
f0afd1f896
Remove unnecessary #includes
2019-06-06 10:26:50 -04:00
Chris Trowbridge
1a20ea11af
Remove default power on/off functions
2019-06-06 10:26:50 -04:00
Chris Trowbridge
841607d029
Add Telit ME910 driver
2019-06-06 10:26:50 -04:00
Antti Kauppila
43b67459ae
Assert handling added
2019-06-06 13:12:29 +03:00
Lingkai Dong
6165204b15
Workaround for legacy GAP advertising issue on Cordio LL
...
Due to some issue in Cordio link layer, advertising data does not
take effect unless we set it (or set it again) after advertising
parameters are set.
2019-06-06 10:49:35 +01:00
Lingkai Dong
f78364cb5a
Set extended advertising parameters upon first use of API v2
...
Previously, extended advertising parameters failed to be set
during BLE initialisation when the stack was not ready.
To work around this, we delay it to the first use of
useVersionTwoAPI.
2019-06-06 10:49:04 +01:00
Jaeden Amero
9676edd36b
mbed-crypto: Update to Mbed Crypto 1.1.0d1
2019-06-05 16:39:06 +01:00
Lingkai Dong
3373c5d24a
NORDIC_CORDIC pal_crypto: check if cryptocell310 is enabled
...
The config "cryptocell310-acceleration" is set by MCU_NRF52840
but individual targets may have crytocell310 feature disabled.
2019-06-05 09:53:53 +01:00
Martin Kojtal
fbc489e6a5
Merge pull request #10733 from pan-/fix-nrf52-memory-pools
...
Fix nrf52 memory pools
2019-06-04 21:01:15 +01:00
Vincent Coubard
618e1e623e
Cordio: Fix default COC parameters.
...
The stack doesn't cope with zero COC client or channel on IAR.
2019-06-04 14:45:45 +01:00
Martin Kojtal
04d0b0d1c8
Merge pull request #10654 from desowin/usbhost-msd
...
USBHostMSD: Implement BlockDevice get_type()
2019-06-04 12:56:52 +01:00
Martin Kojtal
b050a9df64
Merge pull request #10722 from Patater/auto-enable-psa-entropy-injection
...
mbed-crypto: Automatically enable entropy injection
2019-06-04 09:47:15 +01:00
Antti Kauppila
9d8969daa7
Small fixes and doxygen update
2019-06-04 10:41:16 +03:00
Martin Kojtal
752101d041
Merge pull request #10696 from AriParkkila/cell-ublox-at-connect
...
Cellular: Fix socket connect on UBLOX_AT driver
2019-06-03 08:52:43 +01:00
Martin Kojtal
5d33fe1dfa
unsupported USBHAL: fix coding style
2019-06-03 08:44:41 +01:00
Martin Kojtal
f0696417c5
Merge pull request #10647 from tymoteuszblochmobica/coverity
...
Fix LWIP warning issues found by Coverity scan
lwip_dns.c in function: dns_add_interface_server
CID 1399051 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)10. buffer_size_warning: Calling strncpy with a maximum size argument of 6 bytes on destination array new_interface_server->interface_name of size 6 bytes might leave the destination string unterminated.
line 434 strncpy(new_interface_server->interface_name, interface_name, INTERFACE_NAME_MAX_SIZE);
lwip_ip4_frag.c in function: ip_reass_free_complete_datagram
CID 1373164 (#1 of 1): Dereference after null check (FORWARD_NULL)7. var_deref_model: Passing null pointer prev to ip_reass_dequeue_datagram, which dereferences it. [show details]
line 209 ip_reass_dequeue_datagram(ipr, prev);
lwip_ip4_frag.c in function: ip_reass
CID 1373163 (#1-2 of 2): Dereference after null check (FORWARD_NULL)38. var_deref_model: Passing null pointer ipr_prev to ip_reass_dequeue_datagram, which dereferences it. [show details]
line 663 ip_reass_dequeue_datagram(ipr, ipr_prev);
lwip_api_msg.c in function: lwip_netconn_do_connected
CID 1373162 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)10. var_deref_model: Passing null pointer op_completed_sem to sys_sem_signal, which dereferences it. [show details]
line 1336 sys_sem_signal(op_completed_sem);
2019-06-03 08:41:53 +01:00
Martin Kojtal
9a3c175e96
Merge pull request #10588 from AriParkkila/cell-bg96-power
...
Cell bg96 power
2019-06-03 08:38:58 +01:00
Antti Kauppila
7f199ceeef
Added missing _cid handling
2019-06-02 18:55:50 +03:00
Vincent Coubard
11cb7f0119
BLE - tune Cordio LL default parameters to reduce the memory required.
2019-05-31 16:11:08 +01:00
Vincent Coubard
12bdc0ebdb
BLE - Fix Cordio LL extended advertising size.
2019-05-31 16:10:02 +01:00
Vincent Coubard
a74c4ce57f
BLE - Set rx ACL buffer size to the minimum viable in cordio conf.
2019-05-31 16:09:28 +01:00
Vincent Coubard
0baf04dfb4
Disable l2cap connection oriented channels in Cordio default conf.
2019-05-31 16:08:37 +01:00
Martin Kojtal
a8444bd6ff
Merge pull request #10651 from desowin/usbhost-set-address-wait
...
USBHost: Wait for device to implement SET ADDRESS
2019-05-31 12:37:19 +01:00
Martin Kojtal
523ad23a30
Merge pull request #10656 from jarvte/fix_cellularctx_destr
...
Cellular: AT_CellularContext disconnect in non-blocking mode
2019-05-31 12:35:59 +01:00
Jaeden Amero
4feb15c76a
mbed-crypto: Automatically enable entropy injection
...
Automatically enable entropy injection when the NV Seed feature is
requested on PSA targets. Add a warning note describing the state of the
current implementation of the entropy injection API.
Fixes #10720
2019-05-31 09:11:58 +01:00
Mirela Chirica
b57d978bbd
Cellular: Added IPV6 and IPV4V6 as supported properties for BG96
2019-05-30 14:07:33 +03:00
Mirela Chirica
ff2061aba4
Cellular: Fix requested socket id in socket_connect routines of BG96 and M26
2019-05-30 14:07:33 +03:00
Antti Kauppila
83d62fbb9c
astyle fixes
2019-05-29 20:13:22 +03:00
Antti Kauppila
77e8374058
Cellular: Removed boiler plate code
2019-05-29 16:17:08 +03:00
Ari Parkkila
73164710af
Cellular: Fix socket connect on UBLOX_AT driver
2019-05-29 03:19:07 -07:00
Teppo Järvelin
8922eeb014
Cellular: add method to set authentication type to CellularContext
...
Authentication type must be able to set. It was hard coded to CHAP.
Added unit tests for CellularContext to be able to add test for new function.
2019-05-29 09:46:15 +03:00
Martin Kojtal
9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
...
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
Martin Kojtal
cc491812a8
Merge pull request #10427 from kjbracey-arm/new_standards
...
Set compilers to C++14 and C11
2019-05-28 20:34:00 +01:00
Martin Kojtal
8fc2a3c92a
Merge pull request #10675 from 0xc0170/update-mbedtls-2.18.0-rc1
...
Update mbedtls 2.18.0 rc1
2019-05-28 20:24:18 +01:00
Kevin Bracey
2fbbd9d2ca
Introduce Semaphore::acquire methods
...
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().
Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".
Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
k-stachowiak
948d4379d8
Update Mbed TLS feature to 2.18.0-rc2
2019-05-28 11:00:16 +01:00
Martin Kojtal
19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
...
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
Tomasz Moń
a39cba0e52
USBHost: Wait for device to implement SET ADDRESS
...
The USB Device must change the address within 2 ms after completing
SET ADDRESS status stage.
Wait 2 ms before issuing GET DESCRIPTOR under the new address. In my
case, this completely resolves the timeout issues.
2019-05-27 12:22:59 +02:00
Teppo Järvelin
779fb6defd
Cellular: AT_CellularContext disconnect in non-blocking mode
...
Disconnect was supporting only blocking mode.
2019-05-27 12:23:29 +03:00
paul-szczepanek-arm
9bf2d0ae55
cryptocell acceleration as an option
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
4d236665a2
ifdef 52840 crypto
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
41e02279d3
config fixed for LL hci
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
c050faf268
fix typo
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
16bb7e5f04
fix merge conflixt
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
c9f8ca46ff
config now applies to MCU_840 instead of only DK
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
ac66a0040c
moved config to target nordic
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
0d1ca866ea
license updated
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
6b705c881f
remove usage of gpio and leds from nordic cordio LL as it interferes with normal function
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
e43aa12a5d
removed stray comma
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
1bbadde9c0
configs in mbed json
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
a6f639ba27
zero copy HCI as a config option
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
87f5e1f057
review comments addressed
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
7894a9321d
fix releaseing the WSF msg too early
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
88d000e18e
update LL runtime config to new version
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
00bd959abe
use TIMER2 instead
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
5025022ab8
handle extended reset
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
96040be349
wsf buffer transfers owenrship to controller
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
0de3510d1c
service immediately after sending
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
8ddaf84516
use pal version of load bd address
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
f13e966dc0
translate hci types
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
ccddf32f85
cleanup json
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
2232fd045b
handle all types
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
d1593fecc1
move nordic ll to target nordic
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
d09f66b4c5
move config to nordic ll
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
900ad78728
add doxygen
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
11abc6704f
cordio LL adaptation and config
2019-05-27 06:16:49 +01:00
paul-szczepanek-arm
1e8010dd81
cordi link layer 19.02 sources added
2019-05-27 06:16:49 +01:00
Kevin Bracey
5f8b966ff6
NRF52: C++11 fixes
2019-05-24 16:26:15 +03:00
Martin Kojtal
a434583b6e
Merge pull request #10442 from trowbridgec/patch-1
...
Cellular: Make AT_CellularContext::get_context() virtual
2019-05-24 12:38:35 +01:00
Martin Kojtal
ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
...
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Tomasz Moń
3116f329d7
USBHostMSD: Implement BlockDevice get_type()
...
This makes it possible to create instances of USBHostMSD class.
2019-05-24 12:40:30 +02:00
Tomasz Moń
f5527eaf0e
STM USBHALHost: Fix NULL pointer dereference
...
On STM32F746G Discovery boards, the USB OTG HS port does not have a
dedicated GPIO for controlling the USB VBUS.
This change fixes HardFault (NULL pointer dereference) that triggered
when such USB host port was used.
2019-05-24 11:56:23 +02:00
Martin Kojtal
c4cc9c4f1b
Merge pull request #10646 from LDong-Arm/connectionCount
...
Fix deprecation notice for ble::Gap::getState()
2019-05-24 09:11:58 +01:00
Ari Parkkila
e49d7bbdcd
Cellular: Add BG96 power control
2019-05-24 00:30:04 -07:00
Martin Kojtal
4567626ade
Merge pull request #10636 from u-blox/activation_status
...
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal
86bd7f05f0
Merge pull request #10634 from LDong-Arm/ble-api-update
...
BLE: fix deprecated API calls in battery and thermometer services
2019-05-23 21:37:19 +01:00
Tymoteusz Bloch
c1b72a71b5
Fixed LWIP warning issues found by Coverity scan
2019-05-23 18:53:44 +02:00
Lingkai Dong
c84a13c0f2
Fix deprecation notice for ble::Gap::getState()
...
The deprecation notice suggests getConnectionCount() which
did not land in the final API. The proper replacement is keeping
your own record and updating during connection and disconnection
callbacks.
2019-05-23 16:36:28 +01:00
Martin Kojtal
51b835b03b
Merge pull request #10473 from DanielDmlee/BG96_IPV6_only
...
Add exception case for IPV6 only mode of BG96.
2019-05-23 15:29:34 +01:00
Martin Kojtal
3801d4a1c3
Merge pull request #10635 from LDong-Arm/deprecated_ble_services
...
BLE: deprecate UARTService and suppress compiler warnings
2019-05-23 14:52:17 +01:00
Martin Kojtal
2a49ff6d50
Merge pull request #10640 from LDong-Arm/therm_char
...
BLE HealthThermometerService: correct GATT characteristics
2019-05-23 14:49:31 +01:00
Martin Kojtal
bd21c0eafa
Merge pull request #10639 from AriParkkila/sock_id_debacle
...
Cellular: Preventing Socket ID assignment until actual socket creation at the modem
2019-05-23 14:49:01 +01:00
Martin Kojtal
b735d73d47
Merge pull request #9221 from kfnta/tfm_musca_a1
...
Add ARM_MUSCA_A1 target
2019-05-23 14:48:06 +01:00
Jaeden Amero
60252b9988
mbedtls: Update to Mbed TLS 2.18.0-rc1
...
Update Mbed TLS to 2.18.0-rc1. Update Mbed Crypto to 1.1.0d0.
2019-05-23 14:47:42 +01:00
Jaeden Amero
262617935d
mbedtls: Update submodules after checkout
...
When importing, after checking out the specified release, update any
submodules present.
2019-05-23 14:47:42 +01:00
Jaeden Amero
ce2de9a9bf
mbedtls: Fetch instead of pull
...
Do a git fetch of mbedtls instead of a pull. We don't need to checkout
development, only the release specified.
2019-05-23 14:47:42 +01:00
Jaeden Amero
bb17408a14
mbedtls: Make imported version tag more verbose
...
When importing development releases of Mbed TLS into Mbed OS, it is
useful to be able to know a the particular git commit hash that was
imported. This change avoids ever creating a VERSION.txt for Mbed TLS
containing only "development", which is fairly useless since one doesn't
know where the development branch was at the time of import.
2019-05-23 14:47:42 +01:00
Martin Kojtal
b3328fdcc0
Merge pull request #10638 from AGlass0fMilk/fix-advertising-uuid-bug
...
Fix AdvertisingDataBuilder UUID Insertion Bug
2019-05-23 14:46:49 +01:00
Jaeden Amero
e3d1e27b89
mbedtls: Source crypto from Mbed Crypto
...
Use Mbed Crypto implementations of crypto. For example, use aes.c from
Mbed Crypto instead of the Mbed TLS copy.
2019-05-23 12:27:34 +01:00
Bilal Qamar
255e2e5623
Correction in AT Command
2019-05-23 16:15:10 +05:00
Martin Kojtal
b2abfc3529
Merge pull request #10624 from artokin/prepare_for_mbedos513
...
Nanostack release for Mbed OS 5.13
2019-05-23 11:16:56 +01:00
Bilal Qamar
4a37b13bd0
Coding style corrected
2019-05-23 14:26:38 +05:00
Lingkai Dong
ce775d58e9
BLE HealthThermometerService: correct GATT characteristics
...
As per official specification, temperature measurement requires
the GATT characteristic "INDICATE" instead of "NOTIFY".
Full credits to Jean-Marc Jobin (@jmjobin on GitHub) for
identifying the issue and proposing this fix.
2019-05-23 09:56:01 +01:00
Lingkai Dong
f3c29df377
Suppress warnings of deprecated API in deprecated services
...
Services that already have deprecation notices in place should
not trigger more warnings from the compiler.
2019-05-23 09:17:22 +01:00
Hasnain Virk
9e72fa29e6
Updating Ublox to accomodate socket id assignment
...
Changes to accomodate socket id assigment upon actual creation of the
socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk
2e53a71d45
Updating M26 to accomodate socket id assignment
...
This modem is a special case. It uses a given socket ID value rather
than providing one. A naive solution here would be to directly map the
index of a CellularSocket object in the CellularSocket container. But
considering the case where there are multiple sockets being opened (some
sockets being already created at the modem and some yet not created), direct mapping
to indices will not work. As it can happen that the CellularSocket
object is allocated but the socket id is not assigned yet as it is not
actually created on the modem.
In such a case, we check the container and assign the socket id from the
pool if an empty slot was found.
2019-05-22 23:44:09 -07:00
Hasnain Virk
3fffa3bd57
Updating BG95 to accomodate socket id assignment
...
Changes to accomodate socket id assignment upon actual creation of the
socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk
0308cb826a
Updating Gemalto Cinterion to accomodate socked id assignment
...
Changes introduced to accomodate the socket id assignment upon actual
creation of the socket at the modem.
2019-05-22 23:44:09 -07:00
Hasnain Virk
04242c7fa4
Updating BG96 to accomodate socket id assignment
...
Socket ids will be assigned in the create_socket_impl(...) method. This
is the point where an actual socket creation at the modem takes place.
2019-05-22 23:44:08 -07:00
Hasnain Virk
bded22ee98
Prevent assigning socket id until opened at modem
...
Local modem ip stacks vary in their implementations and the way of
working. Some of the modems may not open a socket until an IP context is
assigned. That's why we came up with a container that stores addresses of
any CellularSocket instances created on-demand by the application. When
the application requests opening a socket we store allocate and store the
premitive in the container however actual socket creation at the modem
may happen at a later stage, e.g., a call to send_to() may result in
actual opening of a socket.
That's why we must not assign socket ids in the CellularSocket object
during construction. It must happen when actual socket is opened and is
alive.
Another implication of the previous model is that we may have multiple
sockets created in our container but the actual socket ids are not
assigned yet, so we cannot directly map the socket id to the container
indices which has been happening previously.
To solve this issue we have promoted the AT_CellularStac::find_socket_index(...) method
to be a protected method rather than being private so that the children
can use the method to determine if the given index in the container
corrsponds to the assigned socket id or not.
We have given up on the socket->created flag and the whole decision
making to actually open a socket on the modem happens on the basis of a
valid socket being assigned or not.
2019-05-22 23:43:41 -07:00
Bilal Qamar
fb51501234
Timer stopped after exiting while loop
2019-05-23 11:09:43 +05:00
RFulchiero
69879bd382
Fix dangling #endif from rebase
2019-05-23 11:31:39 +08:00
Desmond Chen
b69dc2bdae
Update BLE SoftDevice from SDK14 to SDK15
...
- Adjust memory for SoftDevice
- Enable PRIO=5 for interrupt priority check
- Change NRF_SD_BLE_API_VERSION to 6
- Add handle and buffer for advertising and scanning
- Remove guard for phy update
- Change scatter files and mbed_lib.json for PR #8607
2019-05-23 11:31:31 +08:00
George Beckstein
4598a28cb7
Fixed bug that checked the wrong buffer size when inserting UUID information into an advertisement payload.
2019-05-22 15:56:14 -04:00
Oren Cohen
ed29d64053
CR changes
2019-05-22 17:25:08 +03:00
Michael Schwarcz
79976e0304
Update storage mbed_lib.json for MUSCA_A1_S
2019-05-22 17:17:21 +03:00
Michael Schwarcz
ff1c769c7e
Add ARM_MUSCA_A1 as a new target platform
...
Musca-A1 is a Cortex-M33 based target with security extension enabled.
- ARM_MUSCA_A1 is the non-secure target running mbed-os.
- ARM_MUSCA_A1_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_A1 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.
2019-05-22 17:17:20 +03:00
Lingkai Dong
31edc25ae7
Deprecate UARTService
...
UARTService is rarely used and has not been actively updated.
2019-05-22 13:49:23 +01:00
Lingkai Dong
1b71c934c4
BLE services: update to use the latest APIs
...
Update BatterService and HealthThermometerService to use
up-to-date BLE APIs.
Note: HealthThermometerService::updateTemperature() will
not check GAP connection which should be taken care of by
the caller.
2019-05-22 13:44:31 +01:00
Bilal Qamar
defc244db2
+UPSND sent to poll activation status
2019-05-22 16:52:03 +05:00
Martin Kojtal
06cf7871b9
Merge pull request #10602 from tymoteuszblochmobica/dns
...
Runtime DNS server addition implement
2019-05-22 08:51:54 +01:00
Daniel Lee
26c3bcf759
Add a check step of IPv6 network to BG96
...
Need to check IPv6 address when use IPv6 network via BG96.
Signed-off-by: Daniel Lee <daniel.lee2@arm.com>
2019-05-22 15:49:00 +09:00
Martin Kojtal
2da743625f
Merge pull request #10581 from pan-/cordio-tx-path
...
BLE - Management of Tx path on Cordio.
2019-05-21 15:04:17 +01:00
Devaraj Ranganna
7765d39283
The targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA are removed
...
due to partial implementation. Having FUTURE_SEQUANA_M0 and
FUTURE_SEQUANA PSA targets is misleading.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-05-21 15:00:31 +01:00
Martin Kojtal
b636241b2d
Merge pull request #10620 from anttiylitokola/update-coap-to-4.8.0
...
Update mbed-coap to version 4.8.0
2019-05-21 13:49:16 +01:00
Arto Kinnunen
07aac7b911
Merge commit '1c29564f653e93a2bda270b257c9bb239de9b61e' into prepare_for_mbedos513
...
* commit '1c29564f653e93a2bda270b257c9bb239de9b61e':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 84a07ce..0345477
2019-05-21 14:22:20 +03:00
Arto Kinnunen
a24db795a5
Squashed 'features/nanostack/coap-service/' changes from 086e7ba..3c79829
...
3c79829 Merge pull request #122 from ARMmbed/sync_with_mbedOS
5dd3ab9 (via Mbed OS) test_soap_connection_handler leaks memory when open_connection fails
git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 3c79829ee3bb2bf7d9308a88f2b5c3596f6fea4b
2019-05-21 14:21:19 +03:00
Martin Kojtal
02eaad45a4
Merge pull request #10476 from tymoteuszblochmobica/closetcp
...
LWIP TCP socket close - disconnecting fix
2019-05-21 09:34:45 +01:00
Martin Kojtal
5f36041579
Merge pull request #10598 from mikaleppanen/wisun_cert_conf
...
Add Wi-Sun certificate options to mesh api configuration json
2019-05-21 09:10:34 +01:00
Martin Kojtal
344ad4372c
Merge pull request #10593 from kivaisan/fix_target_flow_control_flags
...
Cellular: Fix flow control pin configs for BC95 and Gemalto targets
2019-05-21 08:47:07 +01:00
Martin Kojtal
85d72bafeb
Merge pull request #10615 from andrewc-arm/patch_cc1
...
This allows CPP application to use the functions from cc.h.
2019-05-21 08:42:07 +01:00
Antti Yli-Tokola
68400add4a
Update mbed-coap to version 4.8.0
...
Make sn_coap_protocol_linked_list_duplication_info_remove API to public. User might want to delete some messages from the duplicate list.
Enable support for unified client configuration.
2019-05-21 09:30:04 +03:00
Martin Kojtal
6b7a13f619
Merge pull request #10580 from paul-szczepanek-arm/fix-hardcoded-acl
...
BLE: put the acl buffer size in config
2019-05-20 14:13:45 +01:00
Tymoteusz Bloch
cdd31a5fc7
Runtime DNS server addition implement
2019-05-20 14:21:25 +02:00
Arto Kinnunen
9687f59555
Update mesh related configuration help texts
...
-Update mbed-mesh-api nanostack heap-size configuration help
-Add WISUN to netsocket default-mesh-type configuration help
2019-05-20 13:29:53 +03:00
Martin Kojtal
d4122b0b3a
Merge pull request #10454 from u-blox/ublox_odin_driver_os_5_v3.7.0_rc1
...
Enterprise_mode_+_wifi_configuraiton_api: update ODIN drivers to v3.7.0 RC1
2019-05-20 10:54:45 +01:00
Andrew Chong
67f8e35201
This allows CPP application to use the functions from cc.h.
2019-05-20 13:32:58 +08:00
Anna Bridge
25019df05e
Merge pull request #10554 from jarvte/remove_compile_warnings
...
Cellular: fixed compile warnings from cellular
2019-05-17 13:07:51 +01:00
Mika Leppänen
9e22354f63
Corrected json and added check to ensure that needed json options are set
2019-05-17 10:42:26 +03:00
Mika Leppänen
5fbbfee201
Added Wi-Sun certificate options to mesh api configuration json
...
Added possibility to configure Wi-Sun root certificate, own certificate
and own certificate keys to mesh api.
2019-05-16 15:04:03 +03:00
Vincent Coubard
cb97b3c2e2
BLE - Document GattClientEventHandler::on_write_command_sent.
2019-05-16 11:40:46 +01:00
Anna Bridge
6344b9db2c
Merge pull request #10579 from kevinong0108/fix_cellular_quectel_bg96
...
Cellular: fix Quectel BG96 missing unlock at socket_connect
2019-05-16 10:58:32 +01:00
Kimmo Vaisanen
d0fff05443
Cellular: Fix flow control pin configs for BC95 and Gemalto targets
2019-05-16 12:15:38 +03:00
paul-szczepanek-arm
ebcff4b2d2
improve wording of the docs
2019-05-15 13:25:28 +01:00
Anna Bridge
8e44a75a75
Merge pull request #10575 from paul-szczepanek-arm/CCC-writeback-fix
...
BLE: fix CCC callback not being called when writing to a CCC
2019-05-15 12:06:58 +01:00
Pekka Pesu
93cb530b94
add BG96 povermanagemet
2019-05-15 00:50:39 -07:00
Pekka Pesu
4d3f1a456d
BG96 power handling added
2019-05-15 00:50:32 -07:00
Martin Kojtal
26aa16ff39
Merge pull request #10557 from jarvte/fix_cellularcontext_init
...
Cellular: Initialize CellularContext member variables in correct class
2019-05-15 08:48:54 +01:00
kevin.ong
75162f9e1a
cellular: fix style
2019-05-15 01:08:11 +08:00
Vincent Coubard
ca7be271c9
BLE: Remove incorrect calls to GattServer::handleDataSentEvent
2019-05-14 17:16:05 +01:00
Vincent Coubard
de482e4029
BLE: Create and handle write_command Event.
...
This event is raised when a write command has been sent to the controller. It can be used to queue a new write command.
2019-05-14 17:13:51 +01:00
Vincent Coubard
e814a3cfb3
BLE: handle GattServerEvents::GATT_EVENT_DATA_SENT
2019-05-14 17:12:02 +01:00
Vincent Coubard
134f71e6ba
BLE: Connect generic gatt client as pal EventHandler.
2019-05-14 17:11:29 +01:00
paul-szczepanek-arm
26fe4dd174
add info on rx acl buf size
2019-05-14 16:57:14 +01:00
paul-szczepanek-arm
064e8de93d
put the acl buffer size in config
2019-05-14 16:52:24 +01:00
kevin.ong
20a06d8c2d
cellular: fix Quectel BG96 missing unlock at socket_connect
2019-05-14 22:39:42 +08:00
paul-szczepanek-arm
eda064563c
no read callback for CCC
2019-05-14 11:20:14 +01:00
paul-szczepanek-arm
de2743b702
not include attribute write cback for CCC
2019-05-14 10:16:08 +01:00
Teppo Järvelin
d56c8cafa8
Cellular: fixed compile warnings from cellular
2019-05-14 08:48:29 +03:00
Martin Kojtal
3ea1c56124
Merge pull request #10147 from kjbracey-arm/atomic_bitwise
...
Assembler atomics
2019-05-13 14:18:05 +01:00
Martin Kojtal
1aa95c017b
Merge pull request #10456 from tymoteuszblochmobica/multihoming
...
LWIP 2.1.2 tcpip thread stack overflow fix.
2019-05-13 14:17:36 +01:00
Martin Kojtal
f65e30eb21
Merge pull request #10523 from yossi2le/yossi_fix_general_filesystem_tests
...
Removing support of FLASHIAP in general_filesystem tests
2019-05-13 13:28:34 +01:00
Martin Kojtal
e7b8ccf0ae
Merge pull request #10511 from AriParkkila/cell-statemachine-timeout
...
Cellular: Fix setting of statemachine timeout
2019-05-13 06:41:29 +01:00
Martin Kojtal
03cda262c3
Merge pull request #10500 from andrewc-arm/patch-2
...
This removes many const char* warnings related with LWIP_ASSERT()
2019-05-12 20:07:52 +01:00
Anna Bridge
97e1c9cbaf
Merge pull request #10287 from linlingao/pr10177
...
Enable MTS_DRAGONFLY_F411RE to register with Pelion
2019-05-10 16:21:46 +01:00
Tymoteusz Bloch
51610cc90c
Fixed TCP connection close.
...
If TCP FSM is in ESTABLISHED state, waits for TCP close handshaking until TIME_WAIT
The purpose is to prevent eth/wifi driver stop and FIN ACK corrupt.
This may happend if network interface disconnect follows immediately after socket_close.
2019-05-10 17:00:38 +02:00
Teppo Järvelin
e4ee870b2e
Cellular: Initialize CellularContext member variables in correct class
...
CellularContext member variables were initialized in inheriting class.
Now in base class where they should be initialized so that every inheriting
class don't have to init them.
2019-05-10 11:43:48 +03:00
Ari Parkkila
830b4234e9
Cellular: Fix setting of statemachine timeout
2019-05-09 04:42:30 -07:00
aqin
43759c0c4b
Enterprise mode + wifi configuraiton api
2019-05-08 17:52:04 +05:00
Olli-Pekka Puolitaival
842d145d91
Py3 fixes for test scripts
2019-05-08 13:46:01 +03:00
Anna Bridge
41fe7ed728
Merge pull request #10496 from andrewc-arm/patch-1
...
Allow application to override LWIP_RAW
2019-05-07 15:59:22 +01:00
Anna Bridge
0ac1c97ed2
Merge pull request #10355 from OpenNuvoton/nuvoton_kvstore_other_bd
...
KVStore: Support external storage out of mbed-os tree
2019-05-07 15:56:41 +01:00
Tymoteusz Bloch
461efaae0a
LWIP 2.1.2 tcpip thread stack overflow fix.
...
Applied missing LWIP patch to PPP/utils.c
"Major Refactoring & extensions" commited on May 23, 201 by hasnainvirk
LWIP 2.1.2 tcpip thread stack is restored to 1200 bytes
2019-05-07 15:19:41 +02:00
Martin Kojtal
13880dcd1b
Merge pull request #10465 from jarvte/fix_imsi_length
...
Cellular: fix calls to ATHandler::read_string(...) give correct size
2019-05-03 08:38:40 +01:00
Martin Kojtal
4da21c04fe
Merge pull request #10463 from mirelachirica/wise_1570_tcp_endpoint_close
...
Cellular: Add WISE-1570 handling for socket closing URC
2019-05-03 08:35:45 +01:00
Martin Kojtal
3eaad5fd9f
Merge pull request #10485 from JanneKiiskila/nvstore-compiler-warning
...
NVStore.cpp compiler warning removal (os_ret)
2019-05-03 08:20:45 +01:00
Lin Gao
84b8517905
Increase tcpip thread size for MTS_DRAGONFLY_F411RE
2019-05-02 11:34:30 -05:00
Lin Gao
2c22f549e9
Add option to keep post_binary_hook and make it default. It can be disabled by setting it to null
2019-05-02 11:25:20 -05:00
Yossi Levy
130cab4bb4
Removing FLASHIAP support form general_filesystem tests as it is marked as skip anyway
2019-05-02 15:40:48 +03:00
Yossi Levy
f74d545a9d
When reading ROT from KVStore the return ROT key size was ignored
2019-04-30 17:44:24 +03:00
Martin Kojtal
094f648123
Merge pull request #10488 from kivaisan/add_cellularproperty_description
...
Cellular: Add description for CellularProperty
2019-04-30 09:40:08 +01:00
Martin Kojtal
1ce073a9c2
Merge pull request #10402 from jarvte/disconnect_per_context
...
Cellular: send disconnect to correct ctx
2019-04-29 13:17:59 +01:00
Andrew Chong
aba02273ea
This removes many const char* warnings related with LWIP_ASSERT()
2019-04-27 22:47:00 +08:00
Andrew Chong
058f07452a
Allow application to override LWIP_RAW
2019-04-27 00:22:00 +09:00
Anna Bridge
f28b82b831
Merge pull request #10475 from kivaisan/ns_eventloop_tick_timer
...
Implement nanostack eventloop tick timer
2019-04-26 13:38:17 +01:00
Anna Bridge
1647282de9
Merge pull request #10462 from michalpasztamobica/nanostack_semaphore_release_connecting
...
Nanostack: release connect_semaphore only when it is pending
2019-04-26 13:37:53 +01:00
Anna Bridge
1b63aadb5e
Merge pull request #10461 from caixue1102/mbed-os-rda
...
Update wifi driver for rda target UNO_91H
2019-04-26 13:37:28 +01:00
Anna Bridge
a98157a387
Merge pull request #10453 from hasnainvirk/minor_doc_update
...
Cellular: Minor doc update for CellualrSocket object
2019-04-26 13:37:01 +01:00
Anna Bridge
016ce322b4
Merge pull request #10434 from michalpasztamobica/nanostack_network_handler_fix
...
Nanostack network handle does not always call status cb for BOOTSTRAP events
2019-04-26 13:33:46 +01:00
Anna Bridge
9f18456114
Merge pull request #10410 from michalpasztamobica/nanostack_translate_sendmsg_errors
...
Nanostack: translate errors from sendmsg
2019-04-26 13:32:59 +01:00
Anna Bridge
b1cd3dab16
Merge pull request #10258 from davidsaada/david_remove_feature_storage
...
Remove FEATURE_STORAGE and all underlying deprecated features
2019-04-26 13:31:37 +01:00
Kevin Bracey
87396e0bf6
Assembler atomics
...
Reimplement atomic code in inline assembly. This can improve
optimisation, and avoids potential architectural problems with using
LDREX/STREX intrinsics.
API further extended:
* Bitwise operations (fetch_and/fetch_or/fetch_xor)
* fetch_add and fetch_sub (like incr/decr, but returning old value -
aligning with C++11)
* compare_exchange_weak
* Explicit memory order specification
* Basic freestanding template overloads for C++
This gives our existing C implementation essentially all the functionality
needed by C++11.
An actual Atomic<T> template based upon these C functions could follow.
2019-04-26 13:12:35 +03:00
Kimmo Vaisanen
38aa56efa8
Cellular: Add description for CellularProperty
2019-04-26 12:37:52 +03:00
Mirela Chirica
948f8b52d0
Cellular: Added WISE-1570 handling for socket closing URC
2019-04-26 10:12:12 +03:00
Janne Kiiskila
300c3e767c
NVStore.cpp compiler warning removal (os_ret)
...
One gets this compiler warning from nvstore.cpp:
```
Compile [ 48.6%]: nvstore.cpp
[Warning] nvstore.cpp@814,9: variable 'os_ret' set but not used [-Wunused-but-set-variable]
```
Turns out it's caused by the fact that the variable is only used
with MBED_ASSERTs, which get optimized out or not, depending on your
build profile. In reality we do not need a separate variable for that
in my opinion though, so we can just use the ret-variable instead
and drop the os_ret variable completely and thus avoid this
compiler warning.
2019-04-25 22:55:29 +03:00
Kimmo Vaisanen
7349bc8a47
Implement nanostack eventloop tick timer
...
Nanostack eventloop tick timer can be used in case high resolution
platform timer is not needed. One usecase for that is Pelion
Cloud client when using for example cellular connectivity. This enables
PDMC application to enter deep sleep state.
2019-04-25 12:01:52 +03:00
Teppo Järvelin
1abf600d03
Cellular: fix calls to ATHandler::read_string(...) give correct size
...
ATHandler::read_string(...) buffer size param was changed a long time ago
to include also NULL. Some calls still gave wrong size after this change.
2019-04-25 11:20:05 +03:00
ccli8
63d9cde507
KVStore: Support block device out of mbed-os tree
...
To support block device out of mbed-os tree in KVStore, user needs to:
1. Configure blockdevice to "other".
2. Override get_other_blockdevice() to provide block device out of mbed-os tree.
2019-04-25 09:56:20 +08:00
Michal Paszta
2b26a62cc7
Nanostack: release connect_semaphore only when it is pending
...
Only release if the current _connect_status is CONNECTING. If the semaphore is released many times for each connect, then the next connect will not wait(), as it will be able to decrement the semaphore imediatelly.
2019-04-24 11:31:16 +03:00
蔡雪 (Xue Cai)
d6730f5afc
Update wifi driver for rda target UNO_91H
2019-04-24 11:29:50 +08:00
Hasnain Virk
4eaffb4b03
Minor doc update
...
Socket ID is usually spitted out by the modem, however there are cases
when the modem is actully taken in as an input argument, e.g., in the
case of QUECTEL M26 modem. This minor knit clarifies that the
CellularSocket::id can be an input argument.
2019-04-23 12:36:29 +03:00
Chris Trowbridge
a457b80e81
More access modifier changes
2019-04-18 15:14:08 -04:00
Chris Trowbridge
b59228988c
Make AT_CellularContext::get_context() virtual
2019-04-18 15:02:41 -04:00
Martin Kojtal
46603f831e
Merge pull request #10411 from mirelachirica/bg96_tcp_endpoint_close
...
Cellular: Added BG96 handling for socket closing URC
2019-04-18 18:00:30 +01:00
Martin Kojtal
7392d51460
Merge pull request #10394 from kjbracey-arm/networking_warnings
...
Networking: Fix some ARMC6 warnings
2019-04-18 13:15:45 +01:00
Martin Kojtal
3ec9c190d0
Merge pull request #10314 from kjbracey-arm/rt1050_dcache
...
i.MX RT1050: Reactivate data cache
2019-04-18 09:49:13 +01:00
Martin Kojtal
658a41c015
Merge pull request #10417 from paul-szczepanek-arm/fix-coverity
...
suppress coverity error
2019-04-18 08:16:14 +01:00
Martin Kojtal
998cdf2223
Merge pull request #10418 from marcemmers/fix-cordio-gattserver-insert-characteristic
...
CordioGattServer: reset settings variable before ANDing the properties to it
2019-04-18 08:14:34 +01:00
Michal Paszta
8d1edc7db8
Nanostack network handle does not always call status cb for BOOTSTRAP events
...
UBLOX_EVK_ODIN_W2 advertises more events than we expect.
1) When disconnecting first network connectivity is lost and then an
actual disconnection event arrives. The first one is unexpected.
2) When reconnecting MESH_BOOTSTRAP_START_FAILED shows up, but the board
eventually manages to connect
2019-04-17 19:31:36 +03:00
Kevin Bracey
69c6cc341b
Networking: Fix some ARMC6 warnings
...
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-17 16:03:44 +03:00
Teppo Järvelin
9d67a8b61c
Cellular: send disconnect to correct ctx
...
Disconnect was sent to all CellularContext classes even it concerned
one specific context. Some disconnect events are still sent to all
context classes. These event are coming from network and ment for all
context classes or event did not specify cid.
2019-04-17 13:53:40 +03:00
Mirela Chirica
88ea0db30d
Cellular: Added BG96 handling for socket closing URC
2019-04-17 11:25:58 +03:00
Martin Kojtal
b2b2fcea7b
Merge pull request #10375 from AriParkkila/cell-context-cleanup
...
Cellular: Fix to delete PDP context on disconnect
2019-04-17 09:23:52 +01:00
Marc Emmers
d11cf287ac
Make sure to reset settings before applying the properties
2019-04-16 16:28:28 +02:00
paul-szczepanek-arm
482e9c390c
suppress coverity error
2019-04-16 14:19:31 +01:00
Michal Paszta
d1d0118752
Nanostack: translate errors from sendmsg
...
Translate errors to NSAPI_ERROR_*, instead of always returning
NSAPI_ERROR_DEVICE_ERROR
2019-04-16 15:03:50 +03:00
Martin Kojtal
1a14b9705a
ExhaustibleBD: licensed under Apache 2.0
...
Fixing license, to the same one as .cpp file.
2019-04-16 10:32:23 +01:00
Martin Kojtal
4401d41428
Merge pull request #10053 from AriParkkila/cellular-state-timeout
...
Cellular: Make CellularStateMachine timeouts configurable
2019-04-15 08:53:11 +01:00
Martin Kojtal
b0ba3d3dad
Merge pull request #10353 from tymoteuszblochmobica/multihoming
...
Update to LWIP 2.1.2
2019-04-15 08:49:51 +01:00
Cruz Monrreal
f1c4a029c2
Merge pull request #9844 from cmonr/travisCI-refactor
...
Travis CI: Stages, OS update, apt-get relief!
2019-04-12 09:17:55 -05:00
Tymoteusz Bloch
42b5680697
Multihoming fixed according to new LWIP implementation.
2019-04-11 20:54:48 -05:00
Tymoteusz Bloch
1632cc9ee4
Initial version of LWIP 2.1.2
2019-04-11 20:54:48 -05:00
Cruz Monrreal
b8410d85ab
Merge pull request #10369 from tymoteuszblochmobica/l3_interfacefix
...
L3IP interface input handler change.
2019-04-11 20:21:20 -05:00
Martin Kojtal
f56808f9bf
Merge pull request #10368 from kfnta/sequana_flash_ps
...
FUTURE_SEQUANA_PSA fix PSA Protected storage
2019-04-11 14:00:39 +01:00
Ari Parkkila
79c54372f2
Cellular: Fix to delete PDP context on disconnect
2019-04-11 03:58:56 -07:00
Tymoteusz Bloch
7d13b758cb
L3IP input now use tcpip_input instead of ip_input
2019-04-10 17:49:04 +02:00
Oren Cohen
f70e069838
Configure PS with tdbstore
2019-04-10 17:33:37 +03:00
Hasnain Virk
34fc828601
Flagging WEAK method implementation for default construction
...
CellularDevice::get_default_instance() is a weak method and is overriden
by either a default construction provided in the code or by application
at some stage. This method needs to be flagged otherwise using another
driver will be hindered by the default overriding of this driver.
2019-04-10 12:52:38 +03:00
Ari Parkkila
e0f8b2116a
Cellular: Fix CellularStateMachine timeout configurations
2019-04-09 22:02:38 -07:00
Cruz Monrreal
6dbc00dd8a
Merge pull request #10292 from hasnainvirk/ec2x_driver
...
Cellular: Basic driver for Quectel EC25/EC21
2019-04-09 11:06:51 -05:00
Cruz Monrreal
cec5a85761
Merge pull request #10354 from hasnainvirk/compile_error_at_handler
...
Cellular: Using new rather than malloc in debug_print
2019-04-09 11:06:15 -05:00
Cruz Monrreal
d1672d0200
Merge pull request #10341 from mirelachirica/check_urc_resp_stop_1
...
Cellular: Check for URC during AT response stop
2019-04-09 11:05:56 -05:00
Teppo Järvelin
8234f00506
Cellular: fix state machine to compile after master rebase
...
Fix automatic rebase error with cellulardevice.cpp
2019-04-09 14:00:59 +03:00
Teppo Järvelin
2470a3611c
Cellular: new state machine state and better info from stm
...
Added new state (signal quality) and more information about progress
so application/driver can build recovery logic.
2019-04-09 13:44:45 +03:00
Hasnain Virk
9229aba87d
Using new rather than malloc in debug_print
...
Using malloc will require us to add stdlib.h somewhere in the path for
the application. Maybe the CI apps are adding stdlib.h and that's why
the code would have worked. In a custom app, it can happen that the
header is not included. Using new avoids the need to add stdlib.h
anywhere and it is more in line with C++.
2019-04-09 12:25:59 +03:00
Martin Kojtal
a59ba20aec
Merge pull request #10338 from jarvte/fix_deleting_of_stm
...
Cellular: Fix deleting of state machine to correct class
2019-04-09 10:59:15 +02:00
Martin Kojtal
47838ea4be
Merge pull request #10340 from paul-szczepanek-arm/fix-negotiate-mtu
...
BLE: fix missing implementation call
2019-04-09 10:58:59 +02:00
Mirela Chirica
f100cd59c8
Cellular: Check for URC during AT response stop
2019-04-09 11:15:28 +03:00
Hasnain Virk
69efed266d
Marking TX and RX pins for UARTSerial as NC
...
For default construction of the driver, it would be necessary to define
the pins. However as we don't know the correct pins, until/unless user
sets them up for us. So it makes sense to mark the pins as NC. It would
be easier to debug if the pins are set to NC if user forgot to set them
up.
2019-04-09 10:20:38 +03:00
Cruz Monrreal II
f6b9109934
Fixed littlefs tests to be Py3 compat
2019-04-08 10:45:07 -05:00
Hasnain Virk
7ebfa90753
Adding pin polarity and changing the constructor
...
To make this driver more useful, we needed to do some changes. The
wirings for the modem can differ on the board so we also need to be
flexible in our approach.
It is now mandatory to provide the power pin and pin polarity in the
constructor alongwith the file handle. Reset pin is optional.
2019-04-08 17:32:52 +03:00
Hasnain Virk
57d9e27532
Tidying up the boiler plate code
...
A little tidying up was needed as there was some boiler plate code that
could be shoved into a corner and reused.
2019-04-08 17:32:52 +03:00
Hasnain Virk
24178bc374
AT+CGSN with EC2X does not take parameter
...
Standard 3GPP TS27.007 states that the AT+CGSN command can optionally
have type parameter that determines the output. However Quiectel EC2X
series doesn't accept parameters. We need to reflect that in the
cellular properties setup.
2019-04-08 17:32:52 +03:00
Hasnain Virk
df7f8cdfcf
CREG can handle lac/ci/lat
...
AT+CREG command can also provide information regarding lac/ci/lat etc so
we should set the mode correctly in cellular properties structure.
2019-04-08 17:32:52 +03:00
Hasnain Virk
ab978bde6c
Removing left over tracing
...
A test trace was left lurking around. Removed in this commit.
2019-04-08 17:32:52 +03:00
Hasnain Virk
04299e45a3
Basic driver for Quectel EC25/EC21
...
Provides basic power up / power down sequences for Quectel EC2X series
modems. Can be used in PPP mode. For using the on-board IP stack, we
will need to add and implement classes that provide context.
Driver constructor takes power and reset control pins along with the
FileHandle. A default construction is provided which can be chosen by
the application in its mbed_app.json. Otherwise the user is free to
construct as per demand.
2019-04-08 17:32:52 +03:00
paul-szczepanek-arm
217b295f46
missing default impl
2019-04-08 14:56:23 +01:00
Teppo Järvelin
fe5f97895b
Cellular: Fix deleting of state machine to correct class
2019-04-08 12:50:29 +03:00
paul-szczepanek-arm
b6836d9f83
fix missing implementation call
2019-04-08 10:33:09 +01:00
Martin Kojtal
801e555121
Merge pull request #9981 from janjongboom/patch-8
...
test_soap_connection_handler leaks memory when open_connection fails
2019-04-08 10:39:56 +02:00
Martin Kojtal
71c84e851f
Merge pull request #10299 from NXPmicro/Fix_MXRT1050_ENET
...
MIMXRT1050: Fix ENET issues
2019-04-04 16:03:24 +02:00
Martin Kojtal
c2ebb79723
Merge pull request #9814 from LMESTM/dev_NUCLEO_WB55RG
...
Adding NUCLEO_WB55RG support
2019-04-04 15:30:07 +02:00
Kevin Bracey
6fe50763f3
i.MX RT1050: Reactivate data cache
...
Since commit 12c6b1bd8 , the i.MX RT1050 has effectively had its data
cache disabled, as the SDRAM was marked Shareable; for the Cortex-M7,
shareable memory is not cached.
This was done to make the Ethernet driver work without any cache
maintenance code. This commit adds cache maintenance and memory barriers
to the Ethernet driver, and removes the Shareable attribute from the
SDRAM, so the data cache is used again.
Cache code in the base fsl_enet.c driver has not been activated - the
bulk of it is in higher-level Read and Write calls that we're not using,
and there is one flawed invalidate in its initialisation. Instead
imx_emac.cpp takes full cache responsibility.
This commit also marks the SDRAM as read/write-allocate. As the
Cortex-M7 has its "Dynamic read allocate mode" to automatically switch
back to read-allocate in cases where write allocate is working poorly
(eg large memset), this should result in a performance boost with no
downside.
Activating write-allocate is also an attempt to provoke any flaws in
cache maintenance - the Ethernet transmit buffers for example will be
more likely to have a little data in the cache that needs cleaning.
2019-04-04 12:06:24 +03:00
Mahesh Mahadevan
65942ba906
MIMXRT1050: Fix ENET issues
...
This is a fix for Issue 10239. The change aligns
the receive buffer lengths
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-03 08:18:58 -05:00
paul-szczepanek-arm
20d6cd9cc5
add default services first
2019-04-03 12:14:06 +01:00
Martin Kojtal
8cbcc55f88
Merge pull request #10121 from kivaisan/improve_at_trace
...
Cellular: Improve ATHandler AT debug traces
2019-04-03 09:00:30 +02:00
Martin Kojtal
82e6b2fba4
Merge pull request #10229 from u-blox/cellular_device_test
...
Cellular: Power ON Wait Increased for C030_U201
2019-04-02 09:32:06 +02:00
Cruz Monrreal
0d47e23ed6
Merge pull request #10280 from davidsaada/david_remove_cfstore_version
...
Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file)
2019-04-01 17:03:31 -05:00
Cruz Monrreal
cf4118f4ae
Merge pull request #10056 from jarvte/context_act_ppp_retry_logic
...
Cellular: retry logic for CellularContext connect
2019-04-01 17:03:17 -05:00
Martin Kojtal
1b4f6ae3c4
Merge pull request #10270 from marcemmers/advertising-builder
...
BLE SimpleAdvertisingBuilder moved functions out of mbed_assert calls
2019-04-01 11:03:43 +02:00
Kimmo Vaisanen
aff3815790
Cellular: Improve ATHandler AT traces
...
Original AT traces had several issue:
- Can be overwritten by other traces (printf/mbed-trace)
- No way to know which direction message was going (TX or RX)
- <cr> and <ln> characters were not visible in trace
etc.
This commit addresses those issues using mbed-trace and showing separately
each filehandle write and read.
2019-04-01 11:40:04 +03:00
mudassar-ublox
3d960ac272
wait increased for all cases
2019-04-01 10:36:49 +05:00
David Saada
50b2f20172
Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file)
2019-03-31 18:15:12 +03:00
Teppo Järvelin
c6e5595cec
Cellular: retry logic for CellularContext connect
...
State machine has retry logic until device is attached to network.
After this CellularContext does the context activation e.g. connect.
There was no retry logic for context activation. Added logic to
CellularContext level so it's available for at and (upcoming)ril layers.
2019-03-29 14:12:23 -05:00
Cruz Monrreal
f552f9db24
Merge pull request #10146 from kjbracey-arm/CellularInterface_tidy
...
CellularBase -> CellularInterface tidy
2019-03-29 10:22:32 -05:00
Laurent Meunier
a744343931
STM32WB: disable debug lines when not needed
...
When doing so, do not disbale GPIO clocks as they may be used by other
drivers !
As a result, debug will be disabled by default, but can be enabled by
either modifying code or selecting MBED debug profile.
2019-03-29 16:21:46 +01:00
Laurent Meunier
6336e4bee7
STM32WB: Handle re-init case of transport layer
...
Issue was seen when running BLE_GAP example from
mbed-os-example-ble.
In STM32WB, the M0 core cannot be reset except if the whole target
is reset. So in case of re-initialization of the BLE stack, the
transport layer should not be initialized again. The HCI reset
command will do the job.
2019-03-29 16:21:44 +01:00
Laurent Meunier
c72b0e7ca4
STM32WB: fix some styling in HCI driver
2019-03-29 16:21:44 +01:00
Laurent Meunier
9b2acb25a3
STM32WB: handle extended reset
...
as suggested during review, apply same sequence as in:
b96c0ac986
2019-03-29 16:21:44 +01:00
Laurent Meunier
fd6f12f8a4
STM32WB: move HCI driver to target specific folder
...
Need to move stm32wb_HCIDriver.cpp to target specific folder otherwise
it could mess up with other STM targets.
2019-03-29 16:21:44 +01:00
Laurent Meunier
6caa4d487f
STM32WB: Add SPDX identifier to new files
...
also update the copyright year when needed
2019-03-29 16:21:44 +01:00
Laurent Meunier
740e296f6b
STM32WB: fix compilation issue with ARMC6
2019-03-29 16:21:43 +01:00
Laurent Meunier
3ebf7c9db3
STM32WB: remove duplicate file
2019-03-29 16:21:43 +01:00
Laurent Meunier
c53021b77f
STM32WB: Update headers
2019-03-29 16:21:43 +01:00
Laurent Meunier
e925bd711b
STM32WB: Set a random static address during init
2019-03-29 16:21:42 +01:00
Laurent Meunier
08965e1190
STM32WB: add debug trace group in BLE Transport Layer
2019-03-29 16:21:42 +01:00
Laurent Meunier
5871a712dc
STM32WB: Move STM32WB utilies from FEATURE_BLE to targets folder
...
These files are not BLE specific, but also needed for some clock setting
for instance.
In order to compile an MBED2 application, we need to move the files.
2019-03-29 16:21:40 +01:00
Laurent Meunier
27e7e4d9df
NUCLEO_WB55RG: Rework Clock and sleep support
...
- move hw_conf.h file to targets/TARGET_STM/TARGET_STM32WB directory as
this is used also out of BLE feature.
- create a dedicated hal_deepsleep function as the behavior in WB is a lot
different from other existing STM32 targets
- update clock tree configuration to directly clock the entire tree @ 32MHz
out of HSE. This is needed as we want to let the M0 core running without
any change on M0-side of clocks when M4 enters /exits deep sleep.
2019-03-29 16:21:40 +01:00
Laurent Meunier
6234b3578c
NUCLEO_WB55RG: add Cordio HCI and Transport Layer driver
...
The STM32WB Coridio driver includes:
- the Cordio HCI driver handling the reset sequence. During reset sequence
the TX POWER level is set and the BD address is defined if found in OTP
or option bytes. The rest of the sequence is based on the standard CORDIO
HCI driver example.
- The Transport Layer part handles sending and receiving messages to the
WB controller running on cortex-M0 of the STM32WB target. The messages
are shared through shared memory and mailboxes system based on IPCC HW.
2019-03-29 16:21:39 +01:00
Laurent Meunier
16ed1097aa
NUCLEO_WB55RG: WB Transport Layer Cube files modifications
...
- Need to force ARM packed redefinition
- Configure LL stack in LL mode only
- Remove warning in shci_tl.c (PLACE_IN_SECTION)
2019-03-29 16:21:39 +01:00
bcostm
e8a49e9605
NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer
2019-03-29 16:21:39 +01:00
Cruz Monrreal
9c381f27ec
Merge pull request #10243 from michalpasztamobica/nanostack_bringdown_blocking
...
Nanostack::EthernetInterface::bringdown() can handle blocking mode
2019-03-29 10:20:47 -05:00
Cruz Monrreal
eef1b4868d
Merge pull request #10094 from desmond-blue/fix_ble_gattserver_autorization_list
...
BLE: Fix ble gattserver autorization list registration
2019-03-29 10:11:50 -05:00
Cruz Monrreal
1c35b95d89
Merge pull request #10072 from nick-atmosphereiot/master
...
Adding variable length attributes to Maxim Feather
2019-03-29 10:10:21 -05:00
Marc Emmers
bd74cb2ab7
Removed function calls from mbed_assert, which caused the functions to be ignored in release mode
2019-03-29 09:47:28 +01:00
Cruz Monrreal
4af3c38078
Merge pull request #10210 from jarvte/cellulardevice_from_context
...
Cellular: CellularContext must provide access to CellularDevice
2019-03-28 17:09:48 -05:00
Cruz Monrreal
716beb96ad
Merge pull request #10214 from hasnainvirk/rx_metadata_toa
...
LoRaWAN: Adding TOA and Channel info in RX metadata
2019-03-28 17:07:39 -05:00
Cruz Monrreal
cd8d362899
Merge pull request #10231 from artokin/nanostack_armc6_update
...
Nanostack ARMC6 update
2019-03-28 17:07:32 -05:00
Cruz Monrreal
48c78ae79a
Merge pull request #9971 from KariHaapalehto/status_callback
...
Correct thread status callback functionality
2019-03-28 17:05:34 -05:00
David Saada
732dd36c90
Remove FEATURE_STORAGE and all underlying deprecated features
2019-03-28 23:10:05 +02:00
Cruz Monrreal
d3d0622ac8
Merge pull request #10230 from u-blox/cellular_network_test
...
Cellular: cellular_network_test Compilation Error Removed
2019-03-27 17:07:32 -05:00
Cruz Monrreal
4cdc3b7cb8
Merge pull request #10219 from paul-szczepanek-arm/fix-legacy-scan-timeout
...
BLE: fix scan timeout being called from interrupt
2019-03-27 13:35:06 -05:00
Michal Paszta
ccc83f7e3b
Nanostack::EthernetInterface::bringdown() can handle blocking mode
...
This let the tests-network-interface test pass for nanostack.
2019-03-27 16:34:46 +02:00
Hasnain Virk
8fd791db49
Adding TOA and Channel info in RX metadata
...
We provide now downlink channel frequency and time on air for the
received frame in the RX metadata.
Previously the channel information in both TX and RX metada contained
the index number of the channel. That information wasn't very useful
except the index numbers of default channels. To make more sense of the
meta data, we now store the channel frequency in the channel parameter
rather than the index number of the channel.
RX time on air is collected from the radio driver and it is assumed that
the downlink frame had 8 downlink preamble symbols (plus 4.25 of the
preambles added by the chip) for LoRa modulation.
This commit also include a bit of tidying of RX frequency storage in rx
configuration parameters storage. Previously we were missing filling in
the RX1 frequency correctly.
2019-03-27 10:23:43 +02:00
Cruz Monrreal
2520c77e75
Merge pull request #10110 from theamirocohen/improve_gen_bd_tests
...
Improve genenral BlockDevice tests
2019-03-27 00:34:19 -05:00
Cruz Monrreal
a0a265ad84
Merge pull request #10196 from hasnainvirk/premature_rx2_fix
...
LoRaWAN: Fixing premature RX2 closure
2019-03-27 00:26:12 -05:00
Cruz Monrreal
365cf1143e
Merge pull request #10162 from pan-/cordio-driver-notify-inactivity
...
BLE - Notify HCI driver of host stack inactivity
2019-03-27 00:26:02 -05:00
Cruz Monrreal
e8e6ad4a06
Merge pull request #10190 from tymoteuszblochmobica/fixtcp
...
Fixed compilation error in LWIPStack class if lwip tcp is disabled.
2019-03-27 00:23:37 -05:00
Cruz Monrreal
eff15804b7
Merge pull request #10154 from itziardelatorre/itziar
...
Fix for LoRaWAN downlink sequence counter rollover
2019-03-27 00:22:37 -05:00
paul-szczepanek-arm
82112b6c52
simplify call
2019-03-26 10:53:10 -05:00
paul-szczepanek-arm
de539e146b
update comments
2019-03-26 10:53:10 -05:00
paul-szczepanek-arm
dad6844167
bounce scan timeout of the queue
2019-03-26 10:53:10 -05:00
mudassar-ublox
71e5a1d2e7
cellular_network_test compilation error removed
2019-03-26 18:04:42 +05:00
Amir Cohen
ba6748fe41
Improve general Block Device tests
...
Fixing all rand issues, aligning erase addresses, moving prints to debug mode.
2019-03-26 14:49:57 +02:00
mudassar-ublox
0ed71541c5
power on wait increased for C030_U201
2019-03-26 17:06:05 +05:00
Arto Kinnunen
adedd05139
Fix compiler warnings in Nanostack HAL
...
Fix compiler warnings:
-"warning: 'size' argument to memset is '0'"
-"warning: implicit declaration of function"
2019-03-26 13:19:33 +02:00
Arto Kinnunen
f348325dbd
Squashed 'features/nanostack/coap-service/' changes from 227cc3d..086e7ba
...
086e7ba Adjust variable scope (#121 )
git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 086e7ba8a1afdcfe3df16ae92ef28cae1af5a4a6
2019-03-26 13:19:18 +02:00
Teppo Järvelin
b0ee22c96b
Cellular: CellularContext must provide access to CellularDevice
...
When using NetworkInterface::get_default_instance() application gets handle
to CellularInterface which is actually CellularContext derived from CellularInterface.
Application needs also handle to CellularDevice to open other interfaces.
2019-03-26 07:29:11 +02:00
Martin Kojtal
ac118eaedc
Merge pull request #10164 from Patater/tls-2.17.0
...
tls: Update Mbed TLS to 2.17.0
2019-03-23 16:33:52 +01:00
Martin Kojtal
f6fc71c501
Merge pull request #10152 from Patater/crypto-1.0.0
...
crypto: Update Mbed Crypto to 1.0.0
2019-03-23 16:33:32 +01:00
Hasnain Virk
2691b83c4e
Fixing premature RX2 abort
...
A bug while setting up RX start timers would result in premature closusre
of RX2 window. The 'ack_Timeout_timer' would be invoked prematurely and
at that time RX2 window may be being demodulating. This resulted in
massive instability with any test that relied on Confirmed traffic or
lower data rates.
To fix the issue, we must know the length of the RX window in
milliseconds and for this purpose we have extended the
'get_rx_window_params(...)' API. The length of the time the window
may remain open must be accounted for while setting up
'ack_timeout_timer'.
2019-03-22 15:15:51 +02:00
Hasnain Virk
2618813c70
Ack timeout must be at least 2 seconds
...
While calculating ack timeout, we were ending up getting a random value
which may become less than 2 seconds. This is not allowed as per v1.0.2
specification.
To fix the issue we now take the random number from 0 to 2000 ms and
then add that to the fixed 2000 ms ack timeout value, guaranteeing a
value at least equal to 2000 ms.
2019-03-22 15:15:51 +02:00
Martin Kojtal
1d8c3d4553
Merge pull request #10179 from u-blox/n2xx_provide_default
...
Cellular: C030_N2XX default interface
2019-03-22 06:33:24 +01:00
Martin Kojtal
e7a4658256
Merge pull request #10180 from AriParkkila/fix-wise-1570
...
Fix SPIF speed for MTB_ADV_WISE_1570 and max packet size for BC95
2019-03-22 06:32:39 +01:00
Tymoteusz Bloch
646c925d60
Fixed compilation error in LWIPStack class if lwip tcp is disabled.
2019-03-21 17:58:31 +01:00
Martin Kojtal
014a5ec487
Merge pull request #10172 from kivaisan/fix_plmn_iar_trace
...
Cellular: Fix plmn trace for IAR
2019-03-21 10:05:20 +01:00
Ari Parkkila
bdd07b6a37
Cellular: Fix max packet size for BC95 driver
2019-03-21 01:11:28 -07:00
mudassar-ublox
2f37e371b4
C030_N2XX default interface
2019-03-21 11:57:32 +05:00
Martin Kojtal
839e977bee
Merge pull request #10138 from jarvte/athandler_filehandle_not_usable
...
Cellular: don't allow ATHandler read/write if filehandle not usable
2019-03-20 15:39:12 +01:00
Kimmo Vaisanen
06caa0ff14
Cellular: Fix plmn trace for IAR
...
IAR compiler does not seem to like printing null strings.
2019-03-20 14:39:07 +02:00
Martin Kojtal
23cd1aa083
Merge pull request #10140 from jarvte/astyle_fixes
...
Cellular: fix astyle for files that already in master
2019-03-20 13:24:23 +01:00
Martin Kojtal
c6d3d8326e
Merge pull request #10005 from TeemuKultala/cellular_remove_device
...
cellular: remove last CELLULAR_DEVICE references
2019-03-20 13:18:23 +01:00
Kevin Bracey
9ad90691a3
CellularBase -> CellularInterface tidy
...
Remove remaining references to deprecated CellularBase in code, avoiding
one warning.
Add deprecation to Doxygen.
2019-03-20 10:12:14 +02:00
Jaeden Amero
20598bcea1
tls: Update Mbed TLS to 2.17.0
...
There are no differences from the previously imported version of Mbed
TLS other than the version number.
2019-03-19 16:55:56 +00:00
Vincent Coubard
339c57f6a7
BLE - Use low power timeout in cordio::BLE::callDispatcher .
2019-03-19 16:26:29 +00:00
Vincent Coubard
63b7e69d89
BLE - Signal to the HCI driver when the host stack is inactive
2019-03-19 16:25:24 +00:00
Vincent Coubard
7ee811141b
BLE - Add CordioHCIDriver::on_host_stack_inactivity
...
This callback should be called by the host stack when it has no pending activities. It allows a driver to put its controller to sleep.
2019-03-19 16:08:04 +00:00
itziar
4c1fedd72a
Applied suggested astyle fix(es)
2019-03-19 10:11:15 +01:00
itziar
5beef7405c
Bug related to downlink sequence counter rollover
2019-03-19 10:11:14 +01:00
Martin Kojtal
54602f55ba
Merge pull request #10108 from theamirocohen/fix_is_valid_erase
...
Fix functionality for FlashIAPBD & SlicingBD
2019-03-19 09:31:33 +01:00
Jaeden Amero
11ef5a0a72
crypto: Update Mbed Crypto to 1.0.0
...
There are no differences from Mbed Crypto 1.0.0d7 other than the version
number.
2019-03-18 16:17:02 +00:00
Teppo Järvelin
de7520bd97
Cellular: fix astyle for files that already in master
2019-03-18 13:50:10 +02:00
Teppo Järvelin
174d95709c
Cellular: don't allow ATHandler read/write if filehandle not usable
...
For example after going to ppp mode we must block at write and
read as filehandle is not usable.
2019-03-18 13:37:48 +02:00
Martin Kojtal
6b84b14ab6
Merge pull request #10081 from jarvte/move_call_CGEREP
...
Cellular: call AT+CGEREP after sim is ready
2019-03-18 11:26:41 +01:00
Teemu Kultala
614b014d05
cellular: remove last CELLULAR_DEVICE references
2019-03-18 10:07:30 +02:00
Martin Kojtal
964f5ad321
Merge pull request #10098 from ghseb/credentials-for-connection-profile
...
Cinterion Cellular: Setup connection profile with username and password
2019-03-18 08:13:32 +01:00
Martin Kojtal
4cf22b39d6
Merge pull request #10029 from AriParkkila/cellular-device_serial
...
Cellular: Remove compile dependency of UARTSerial
2019-03-18 08:12:27 +01:00
Teppo Järvelin
dba3d42362
Cellular: call AT+CGEREP after sim is ready
...
Current implementation did call AT+CGEREP before sim was ready
and it was failing in most modems.
2019-03-18 08:10:09 +02:00
Cruz Monrreal
05f18fc7f6
Merge pull request #10100 from ghseb/support-ehs5-e
...
Cellular: Support Cinterion EHS5-E cellular module
2019-03-16 23:00:51 -05:00
Cruz Monrreal
c81a292921
Merge pull request #10092 from desmond-blue/fix-ble-on_phy_update_complete
...
BLE:fix on_phy_update_complete function
2019-03-16 23:00:37 -05:00
Cruz Monrreal
6c4b4a5212
Merge pull request #10084 from mirelachirica/info_resp_issue_8829
...
Cellular: AT information response to return false on empty prefix
2019-03-16 22:59:24 -05:00
Cruz Monrreal
b433b16a11
Merge pull request #10014 from artokin/nanostack_interface_error_mapping
...
Update nanostack-interface error mapping
2019-03-16 22:58:24 -05:00
Cruz Monrreal
9ecde429f9
Merge pull request #9992 from pan-/ble-use-low-power-ticker
...
BLE - Use low power timing primitives
2019-03-16 22:56:43 -05:00
Cruz Monrreal
961c9e2e13
Merge pull request #9988 from paul-szczepanek-arm/fix-cordio-tick
...
BLE: fix tick rate set to 10 ms
2019-03-16 22:56:24 -05:00
Cruz Monrreal
e697d3770d
Merge pull request #9935 from jarvte/lwip_timeout_bringup_link
...
Increased timeout for lwip waiting netif_is_link_up
2019-03-16 22:54:57 -05:00
Cruz Monrreal
7fa995860f
Merge pull request #9921 from desmond-blue/fix_Cordio-insert-characteristic-handle-error
...
BLE:Cordio:Fix insert characteristic not handle error
2019-03-16 22:54:37 -05:00
Cruz Monrreal
7cdc5b057c
Merge pull request #9919 from pan-/workaround-extended-report
...
BLE - Report extended advertising in legacy handler
2019-03-16 22:54:21 -05:00
Cruz Monrreal
dbb33ef423
Merge pull request #9801 from vmedcy/fix-eventqueue-h
...
Correctly include EventQueue.h
2019-03-16 22:52:40 -05:00
David Saada
eb5cef84fd
Add bootloader support for the LPC55S69 board
...
bla
2019-03-16 00:13:40 +02:00
Martin Kojtal
78a3d99c81
Merge pull request #9941 from marcuschangarm/fix-rspif
...
Add missing RSPIF component to the defaut BlockDevice handler
2019-03-15 18:08:04 +01:00
Martin Kojtal
686095e213
Merge branch 'remove_no_greentea' of https://github.com/kfnta/mbed-os into rollup
2019-03-15 08:46:14 +00:00
Martin Kojtal
4cf7864bb5
Merge branch 'wisun_network_default_name' of https://github.com/artokin/mbed-os into rollup
2019-03-15 08:45:57 +00:00
Martin Kojtal
4a24bd1f0a
Merge branch 'fix_lwip_debug_log_compile' of https://github.com/jarvte/mbed-os into rollup
2019-03-15 08:45:26 +00:00
Martin Kojtal
759627ff12
Merge branch 'plmn_stm_fix2' of https://github.com/jarvte/mbed-os into rollup
2019-03-15 08:45:14 +00:00
Martin Kojtal
74f13dd8de
Merge branch 'fix_Cordio-descriptor-set-cback' of https://github.com/desmond-blue/mbed-os into rollup
2019-03-15 08:44:55 +00:00
Martin Kojtal
0597e33765
Merge branch 'patch-9' of https://github.com/janjongboom/mbed-os into rollup
2019-03-15 08:44:40 +00:00
Martin Kojtal
9960ea93ed
Merge branch 'fix-ble-cordio-reset-sequence' of https://github.com/desmond-blue/mbed-os into rollup
2019-03-15 08:43:59 +00:00
Sebastian Stockhammer
744e648673
Disable dual stack mode for ehs5-e
2019-03-15 09:32:26 +01:00
Sebastian Stockhammer
6b7b36a3b4
Revert "Disable dual stack mode"
...
This reverts commit 8611474e6c .
2019-03-15 09:31:49 +01:00
Sebastian Stockhammer
8611474e6c
Disable dual stack mode
2019-03-15 09:26:43 +01:00
Sebastian Stockhammer
2c3c14c52b
Fix registration modes and disable CGSN with type
2019-03-15 09:00:56 +01:00
Martin Kojtal
0e37fc206c
Merge pull request #10097 from 0xc0170/rollup
...
Rollup PRs: simple fixes
2019-03-15 08:04:29 +01:00
Desmond Chen
196a7666fe
BLE:Fix gattserver authorization list update permission check
2019-03-15 12:11:12 +08:00
Cruz Monrreal
08617098d6
Merge pull request #10088 from avolinski/master
...
Temporary disable Crypto HW accelerator on UBLOX_EVK_ODIN_W2
2019-03-14 21:43:59 -05:00
Cruz Monrreal
d53ff0b3c4
Merge pull request #10101 from kfnta/nxp_reduce_its
...
LPC55S69_S: reduce ITS size to 32KB
2019-03-14 13:22:47 -05:00
Amir Cohen
7fac0722a4
Fix functionality for FlashIAPBD & SlicingBD
...
Due to discovery of inconsistent sector sizes in devices storage the is_valid_erase function was adjusted,
For FlashIAPBD the 'code size' was included to the calculation, preventing faulty "virtual" addresses calculation.
For SlicingBD the same error was fixed and in all 3 validation functions that sent addresses for validation and program/read/erase
different addresses.
2019-03-14 17:46:10 +02:00
avolinski
f976ce3c18
Temporary disable Crypto HW accelerator on STM32F439xI chipset due to issue: https://github.com/ARMmbed/mbed-os/issues/10095
2019-03-14 17:00:06 +02:00
Michael Schwarcz
dca3ebe9f6
LPC55S69_S: reduce ITS size to 32KB
...
- Reduce LPC55S69 secure side ITS from 64KB to 32KB
2019-03-14 15:49:44 +02:00
Sebastian Stockhammer
febcea00f3
Support Cinterion EHS5-E cellular module
2019-03-14 13:50:10 +01:00
Yossi Levy
0880f90d48
Updating CY8CKIT_062_WIFI_BT_PSA bootloader image
2019-03-14 14:26:23 +02:00
Oren Cohen
2fd7dc9b8d
Update features/FEATURE_BOOTLOADER/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT_PSA/mbed_lib.json
...
Co-Authored-By: yossi2le <yossi.levy@arm.com>
2019-03-14 14:26:23 +02:00
Yossi Levy
dd27a3400b
mbed-os to support bootlader for Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE
2019-03-14 14:26:23 +02:00
Martin Kojtal
b80c961dae
Merge pull request #10034 from evgenibo/flash_protected_region_config
...
PSA: PSoc 6 configurable secure memory size
2019-03-14 13:23:58 +01:00
Martin Kojtal
5252163534
Merge pull request #9900 from michalpasztamobica/dns_async_handle_would_block
...
DNS send returning WOULD_BLOCK forces delayed retry
2019-03-14 13:01:20 +01:00
Martin Kojtal
8b94f3b2ff
Merge branch 'patch-7' of https://github.com/janjongboom/mbed-os into rollup
2019-03-14 11:37:26 +00:00
Martin Kojtal
d5eb98e66a
Merge branch 'cellular_BC95_leak_fix' of https://github.com/TeemuKultala/mbed-os into rollup
2019-03-14 11:37:10 +00:00
Martin Kojtal
4df969fc2c
Merge branch 'tr-debug-cell' of https://github.com/sarahmarshy/mbed-os into rollup
2019-03-14 11:36:59 +00:00
Sebastian Stockhammer
ee17c7c996
Setup connection profile with username and password
2019-03-14 12:03:12 +01:00
Evgeni Bolotin
c0bc56737b
modify rpb base address for M0
2019-03-14 11:29:46 +02:00
Oren Cohen
fc97a75632
Remove #ifndef NO_GREENTEA from tests
2019-03-14 11:16:44 +02:00
Martin Kojtal
ab0bc65e0d
Merge pull request #9873 from wajahat-ublox/udnsrn_timeout
...
Corrected timeout for +UDNSRN command
2019-03-14 09:38:20 +01:00
Martin Kojtal
c0c02e2bd8
Merge pull request #9872 from KariHaapalehto/burst_nonblock_test_fix
...
Fix for NUCLEO_F207 UDPSOCKET_ECHOTEST_BURST_NONBLOCK fails.
2019-03-14 09:16:59 +01:00
Martin Kojtal
cf76b74aad
Merge pull request #9837 from jarvte/drop_bg96_cgact_support
...
Cellular: CGACT not supported in coming firmware in BG96
2019-03-14 09:16:39 +01:00
Martin Kojtal
76fe7267e7
Merge pull request #9637 from u-blox/C030_N211_Cellular_Driver
...
Cellular: UBLOX_C030_N211 Cellular API's
2019-03-14 09:11:06 +01:00
Desmond Chen
a70f0e6780
BLE:Fix cordio reset sequence
2019-03-14 15:41:10 +08:00
Desmond Chen
a6df7b2bd7
BLE:fix on_phy_update_complete function
2019-03-14 11:42:03 +08:00
Michael Schwarcz
f6ab217892
Reduce 32KB from LPC55S69_S binary size
2019-03-13 18:21:37 +02:00
Mirela Chirica
d12de2a199
Cellular: AT information response to return false on empty prefix
2019-03-13 15:49:33 +02:00
Nick
44c5c7ef5a
Formatting fix
2019-03-13 07:58:24 -04:00
Ari Parkkila
903a6f2e7e
Cellular: Remove compile dependency of UARTSerial
2019-03-12 23:57:43 -07:00
Nick
e08b200eef
Adding variable length attributes to Maxim Feather
2019-03-12 18:49:45 -04:00
Kari Haapalehto
d9448364da
Correct thread status callback functionality.
...
At the start-up, there was 2 NSAPI_STATUS_CONNECTING callbacks,
so extra one removed from ThreadInterface.cpp.
At the network lost case, there was NSAPI_STATUS_DISCONNECTED and
NSAPI_STATUS_LOCAL_UP callbacks. NSAPI_STATUS_DISCONNECTED has been removed,
since the NSAPI_STATUS_LOCAL_UP is enought.
2019-03-12 13:13:55 +02:00
Martin Kojtal
84e4decad0
Merge pull request #10042 from paul-szczepanek-arm/fix-pal-paths
...
BLE: fix conflicting include by qualifying cordio pal includes
2019-03-12 08:26:53 +01:00
Netanel Gonen
053e07b6dc
change the include to mbedtls/config.h
2019-03-11 19:03:08 +02:00
paul-szczepanek-arm
abb2942fc5
qualify cordio pal includes
2019-03-11 16:52:40 +00:00
Michal Paszta
ee056daf86
DNS recv/send returning WOULD_BLOCK force delayed retry
2019-03-11 13:33:06 +02:00
Martin Kojtal
774294d1e2
Merge pull request #10012 from donatieng/ublox_odin_w2_static_random_addr
...
Generate BLE Static Random Address on U-blox Odin-W2 platform
2019-03-09 17:40:21 +01:00
Sarah Marsh
ae45096ce6
Fix undefined tr_debug for QUECTEL_BG96 cellular feature
2019-03-08 11:22:11 -06:00
Arto Kinnunen
f0d7e205ff
Update nanostack-interface error mapping
...
Use status NSAPI_ERROR_PARAMETER instead of NSAPI_ERROR_UNSUPPORTED
when error is caused by parameter.
2019-03-08 16:28:20 +02:00
Mahesh Mahadevan
c607b8ab1a
LPC55S69: Update the KVStore config files
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-08 07:33:47 -06:00
Donatien Garnier
041d53de25
Generate BLE Random Static Address on U-blox Odin-W2 platform
2019-03-08 12:50:08 +00:00
Martin Kojtal
b19fa515a6
Merge pull request #9982 from artokin/nanostack_update_for_mbedos_512
...
Nanostack update for Mbed OS 5.12
2019-03-08 12:05:00 +01:00
Martin Kojtal
820a2e284d
Merge pull request #9908 from morser499/pr/cy-mbed-os-5.12.0
...
Pr/cy mbed os 5.12.0
2019-03-08 11:01:41 +01:00
Cruz Monrreal
57ec1d57b9
Merge pull request #9990 from kfnta/sync_complinace_test_to_latest
...
Sync PSA compliance test to latest version
2019-03-07 23:36:56 -06:00
Vincent Coubard
b183ba1d01
BLE - Use LowPower Ticker and Timer for address rotation and scan timeout.
2019-03-07 16:49:58 +00:00
Vincent Coubard
a105db38ce
BLE - Use LowPowerTimer instead of Timer in the Cordio stack.
2019-03-07 16:45:46 +00:00
Vivek Pallantla
0cce5d53b8
PSOC6 deep-sleep changes
...
- Enable add MBED_TICKLESS in targets/targets.json
- BLE : deep-sleep aware HCI transport driver
- WIFI: deep-sleep aware driver
- Rebuild WICED libraries with Low Power changes
2019-03-07 08:40:20 -08:00
Oleg Kapshii
aedec74b9a
Added support for PSA target to WIFI_BT board
...
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-07 08:40:20 -08:00
Cruz Monrreal
ff78bc4b7c
Merge pull request #9973 from kfnta/tfm_num_threads
...
TF-M config: Add max_ns_thread_count parameter
2019-03-07 10:28:11 -06:00
paul-szczepanek-arm
42d3a58d66
change tick rate to 1 ms
2019-03-07 16:07:25 +00:00
Nir Sonnenschein
c99f03d0ce
add mbed_lib.json to prevent inclusion in bare-metal builds
2019-03-07 18:04:59 +02:00
Nir Sonnenschein
517bb1a64a
remove sid.h as it is now supplied by PSA
2019-03-07 18:04:27 +02:00
Nir Sonnenschein
a772d9d327
add comment explaining attestation keys for test use
2019-03-07 17:50:54 +02:00
Jan Jongboom
a5c6d423bc
tsi/main.cpp is using wrong `printf` format
...
`%` needs to be escaped as well.
2019-03-07 16:36:29 +01:00
Jan Jongboom
3e4010748c
test_soap_connection_handler leaks memory when open_connection fails
...
sckt_data is not free'd when `coap_connection_handler_open_connection` fails.
2019-03-07 16:27:59 +01:00
Arto Kinnunen
e92e7b9a88
Merge commit 'fbef0d8e70234611e131a94c4f4e97bd99634548'
...
* commit 'fbef0d8e70234611e131a94c4f4e97bd99634548':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 76da6a5..84a07ce
2019-03-07 17:26:32 +02:00
Jan Jongboom
eed2b390d9
Dead pointer usage in GenericSecurityManager
...
`pscrk` is set to the address of `csrk`, but `csrk` is out of scope when using the resulting value. There's no guarantee that the memory is still valid.
2019-03-07 16:21:52 +01:00
Cruz Monrreal
a87c7c82f3
Merge pull request #9312 from kfnta/psa_compliance
...
PSA compliance tests suite
2019-03-07 09:14:58 -06:00
Nir Sonnenschein
4edb6dac6c
removed redundant code + added comment
...
Thanks @cmonr.
2019-03-07 12:30:57 +02:00
Michael Schwarcz
14aa347040
TF-M config: Add max_ns_thread_count parameter
2019-03-07 12:18:19 +02:00
Teemu Kultala
71a1ed9c8e
cellular: BC95 memory leak fix
2019-03-07 11:58:20 +02:00
Cruz Monrreal
7b3cc93cb4
Merge pull request #9907 from pan-/fix-cordio-conf
...
BLE - Fix cordio configuration
2019-03-06 13:45:41 -06:00
mudassar-ublox
f19a412a55
Applied suggested astyle fixes
2019-03-06 11:00:50 +05:00
Cruz Monrreal
26920fe0cc
Merge pull request #9931 from offirko/offir_nxp
...
Reduce number of threads in block device test
2019-03-05 22:48:10 -06:00
David Saada
3c14dd4d6e
Fix test skip message to not enough heap
2019-03-05 22:42:46 +02:00
offirko
4075d6ee49
Add pre test resource verifications
2019-03-05 22:42:45 +02:00
offirko
e41118796a
Reduce number of threades in block device test
...
In addition, prevent FS tests from running on internal flash,
due to the fact that file system on internal flash is not part of
our offering (TDBStore should be used there instead).
2019-03-05 22:40:24 +02:00
Martin Kojtal
63dd5cba35
Merge pull request #9920 from sbutcher-arm/mbedtls-5.12-release
...
Update Mbed TLS for 5.12 release to Mbed TLS development HEAD
2019-03-05 18:15:52 +01:00
Marcus Chang
ee8632f993
Add missing RSPIF component to the defaut BlockDevice handler
2019-03-05 08:25:48 -08:00
Netanel Gonen
2982907e37
rework for mbed-os intf for ACK tests
...
-rework test wrapper functions to simplify test main
-move greentea init before test setup code to avoid boards losing sync.
2019-03-05 17:07:34 +02:00
Teppo Järvelin
a830dbf47d
Cellular: removed manual registering state.
...
Simplified state machine by removing manual registering state.
This was done as some modems did not have all the needed at commands
for checking the registered network. Some modem run out of memory as when
checking correct network there might be so many networks available.
Manual registration still works but it does not do any checks to which network
it's registered. Moved manual registering at command earlier in state machine so it forces
registering to a correct network. Internal refactor/fix, does not affect applications.
2019-03-05 13:17:25 +02:00
Teppo Järvelin
5d04df7afc
Fix lwip to compile if MBED_CONF_LWIP_DEBUG_ENABLED is defined
...
File features/lwipstack/lwip-sys/arch/cc.h fails to compile
with error: 'MBED_NORETURN' does not name a type.
Fix with adding correct include.
2019-03-05 12:19:25 +02:00
Teppo Järvelin
5680ce5f56
Increased timeout for lwip waiting netif_is_link_up
...
Cellular PPP connect fails too often if timeout is 15s so increased to 60 seconds.
Tested to be enough with BG96 and MTB_MTS_DRAGONFLY.
2019-03-05 12:08:35 +02:00
David Saada
eb29af5f8a
Fix direct access to device key test for small erase/program ratio
...
This commit fixes the failure in the "Direct access to device key" test,
when working with internal flash components, whose erase size to program
size ratio is small. In such cases, the last two sectors are not large
enough to store the device key.
2019-03-05 11:32:29 +02:00
Desmond Chen
3fe18a1f7d
BLE:Cordio:Fix insert characteristic not handle error
2019-03-05 09:57:21 +08:00
mudassar-ublox
578fb7ae2b
updated api and removed Astyle issue
2019-03-04 16:47:15 +05:00
Martin Kojtal
e75794ec6e
Merge pull request #9888 from ARMmbed/feature-armc6
...
ARM Toolchain update to ARM Compiler 6.11(ARMC6)
2019-03-04 12:23:38 +01:00
Arto Kinnunen
7ec9be6a6d
Update Wi-SUN network default name
2019-03-04 10:07:31 +02:00
Desmond Chen
070a412432
BLE:Cordio:insert_descriptor check r/w properties
2019-03-04 11:08:15 +08:00
Simon Butcher
5285b39c01
Update Mbed TLS to the latest development version
...
This updates Mbed TLS to the latest development version, commit 535ee4a35b9c
in the Mbed TLS repo.
2019-03-03 23:04:00 +00:00
Simon Butcher
86825a65b6
Move the Mbed TLS target to the development branch
...
Before moving to the new release of Mbed TLS, this moves the default imported
version of Mbed TLS to the development branch, and will import the HEAD of the
branch, not just a specific release.
2019-03-03 22:59:00 +00:00
Simon Butcher
21c6c90519
Make the storage configs dependent on the PSA label
...
This commit makes the storage configurations - setting
MBEDTLS_PSA_CRYPTO_STORAGE_C, MBEDTLS_PSA_CRYPTO_STORAGE_ITS_C and unsetting
MBEDTLS_PSA_CRYPTO_STORAGE_FILE_C - dependent on the PSA label being defined for
the target.
Previously these symbols were always defined for all platforms which could
cause problems for targets that don't yet support PSA.
2019-03-03 22:55:38 +00:00
Nir Sonnenschein
1650a923eb
add main functions to each compliance test
...
add main function to each compliance test , moving shared code to a common file
2019-03-03 22:50:59 +02:00
Nir Sonnenschein
eae1252c29
changes to test infrastructure to adapt it to green-tea
...
changes to test infrastructure to adapt it to green-tea
Make ITS testing default
Fix IAR build issues
2019-03-03 22:47:33 +02:00
Vincent Coubard
25438875c9
BLE - Report extended advertising in legacy handler if legacy API in use.
...
Workaround for the Cordio stack as extended advertising can be reported for a legacy advertising command.
2019-03-03 19:30:42 +00:00
Nir Sonnenschein
b64fb53d43
[api-tests]: Updated to cb58d2c
2019-03-03 15:51:26 +02:00
Cruz Monrreal
4043623805
Merge pull request #9864 from paul-szczepanek-arm/cordio-host-upgrade
...
BLE: Cordio host upgrade
2019-03-01 18:54:51 -06:00
kegilbert
194fa129fb
Update recently added previous macro name uses in tests
2019-03-01 13:53:47 -06:00
kegilbert
8cef1904c5
Move socket-stats-enable to socket-stats-enabled.
...
This conforms with the other stats config option names
2019-03-01 13:31:33 -06:00
Vincent Coubard
b21e1d23d5
BLE - Register the Att call handler whenever the GATT_SERVER is available.
2019-03-01 18:33:22 +00:00
Vincent Coubard
77511c3983
BLE - Call SecInit unconditionally as it is required by low HCI level driver
...
That module handles random number incomming from the controller. Overhead is low (less than 150 bytes of flash).
2019-03-01 18:32:19 +00:00
Vincent Coubard
2f98901050
BLE - Avoid calling v2 API in GenericGap::reset_ if not required.
2019-03-01 18:31:06 +00:00
Martin Kojtal
10f2c05318
Merge pull request #9898 from jarvte/connect_disconnect_fix
...
Cellular: fix connect-disconnect sequence called many times
2019-03-01 17:34:30 +01:00
paul-szczepanek-arm
61b063129d
MBED_WEAK in random spot removed
2019-03-01 15:05:59 +00:00
paul-szczepanek-arm
f740985627
remove define that trips up IAR
2019-03-01 14:46:43 +00:00
Teppo Järvelin
0905f01438
Cellular: Removed API get_connection_status() from CellularNetwork
...
This was left accidentally after refactoring.
It wasn't giving correct states after refactoring.
CellularContext::get_connection_status should be used instead.
2019-03-01 14:51:05 +02:00
Teppo Järvelin
ec73c8a9c7
Cellular: fix connect-disconnect sequence called many times
...
Fix syncing back to at mode after ppp disconnect.
Fix AT_CellularContext flags and states to allow new connect after disconnect.
Fix that state machine is not reseted in disconnect is it's running (might be
running because of another context or new connect already started).
2019-03-01 14:47:41 +02:00
paul-szczepanek-arm
34ef17370b
fix signing permissions
2019-03-01 11:58:52 +00:00
paul-szczepanek-arm
e247852043
reinstate fixes
2019-03-01 11:23:28 +00:00
paul-szczepanek-arm
0c855780d1
remove duplicate headers
2019-03-01 10:59:44 +00:00
paul-szczepanek-arm
64e70e8ca0
cordio controller change from library to source
2019-03-01 10:59:44 +00:00
paul-szczepanek-arm
a3c1345d45
these consts are not in fact const
2019-03-01 10:59:42 +00:00
paul-szczepanek-arm
fdb10908cc
fix warning of no return
2019-03-01 10:59:42 +00:00
paul-szczepanek-arm
2c10b93a12
deal with not implemented functions
2019-03-01 10:59:42 +00:00
paul-szczepanek-arm
8989e39bb1
update copyright years
2019-03-01 10:59:42 +00:00
paul-szczepanek-arm
dc66204c1b
cordio host sources updated
2019-03-01 10:59:41 +00:00
Cruz Monrreal
f8d254fc4c
Merge pull request #9790 from paul-szczepanek-arm/ble-conf
...
Ble conf
2019-02-28 22:08:41 -06:00
Cruz Monrreal
024cae5442
Merge pull request #9835 from orenc17/no_greentea
...
Add define to skip greentea sync
2019-02-28 18:24:09 -06:00
Cruz Monrreal
aaf3ce4741
Merge pull request #9727 from pan-/optimize-size
...
BLE API devirtualization
2019-02-28 18:20:36 -06:00
Senthil Ramakrishnan
65e765148a
Fix configuration_store.h to use right toolchain check flags
2019-02-28 11:56:31 -06:00
paul-szczepanek-arm
54a866c159
add broadcaster ifdef and pull headers into ifdef
2019-02-28 17:18:30 +00:00
Vincent Coubard
72e5d3f603
BLE - Filter user facing implementation based on configuration
2019-02-28 16:31:59 +00:00
Vincent Coubard
4e172ba22d
BLE - Fix conditional directive.
2019-02-28 16:31:34 +00:00
Vincent Coubard
74bc6774f9
BLE - Fix conditional directive.
2019-02-28 16:31:07 +00:00
Vincent Coubard
eeca03f952
BLE - Fix exclusion of getMaxAdvertisingSetNumber and getMaxAdvertisingDataLength
2019-02-28 16:29:21 +00:00
Vincent Coubard
3142f26def
BLE - Exclude services if GattServer is not available.
2019-02-28 16:28:15 +00:00
Vincent Coubard
5ae59fc534
BLE - Improve FEATURE_PRIVACY conditions.
2019-02-28 14:47:07 +00:00
Vincent Coubard
24f7f36f01
BLE - Return supported feature based on compile time features.
2019-02-28 14:23:19 +00:00
Vincent Coubard
04891b205c
BLE - Conditionally handle gap events.
2019-02-28 14:13:45 +00:00
Vincent Coubard
ea9554dfbc
BLE - restrict AttConnRegister to GattServer.
2019-02-28 14:12:56 +00:00
Vincent Coubard
9566af64fb
BLE - Fix initialization of extended advertising modules.
2019-02-28 13:51:50 +00:00
Vincent Coubard
6a3f3d187e
BLE - Conditionnally remove LESC and privacy event processing.
2019-02-28 13:45:05 +00:00
Vincent Coubard
20c4e4ced5
BLE - Fix call to implementation.
2019-02-28 13:40:09 +00:00
Vincent Coubard
020c5b4262
BLE - Disabling SecurityManager connection handling when security disabled.
2019-02-28 13:34:05 +00:00
Vincent Coubard
af09f7b8ab
BLE - Disable peer csrk retrieval if signing disabled.
2019-02-28 13:30:36 +00:00
Vincent Coubard
ca44ce3cd8
BLE - Conditionally expose SecurityManager::enableSigning
2019-02-28 13:27:16 +00:00
Vincent Coubard
eeb14c5ce6
BLE - Conditionally include address rotation at compile time
2019-02-28 13:26:51 +00:00
Vincent Coubard
632851e5ae
BLE - Small reordering to reduce diff.
2019-02-28 12:02:23 +00:00
Vincent Coubard
9e5e23aad6
BLE - Remove conditional directive in construction of Cordio objects.
2019-02-28 11:37:21 +00:00
Vincent Coubard
a31d1012db
BLE - Cleanup CordioPalSecurityManager conditional directives.
...
- Within constructor
- Within member declaration
- Private function declaration and definition.
2019-02-28 11:36:36 +00:00
Vincent Coubard
b0d62a7090
BLE - Fix conditional code within CordioPalGenericAccessService.
2019-02-28 11:35:34 +00:00
Vincent Coubard
dedc204daa
BLE - Cleanup CordioGattServer conditional directives.
2019-02-28 11:34:35 +00:00
Vincent Coubard
831241df12
BLE - Cleanup GenericSecurityManager conditional directives
...
- Inheritance lisr
- Within constructor
- Within member declaration
- Private function declaration and definition.
2019-02-28 11:33:49 +00:00
Vincent Coubard
e706b6cc52
BLE - Cleanup Generic GattClient conditional directives.
...
- Inherithance list
- private functions exposed
- members declaration.
2019-02-28 11:32:51 +00:00
Vincent Coubard
07f3ca2723
BLE - Cleanup GenericGap conditional directive
...
- Within constructor
- Within member declaration
- Private function declaration and definition.
2019-02-28 11:31:48 +00:00
Vincent Coubard
593cf2bd7c
BLE - Remove conditional compilation of FileSecurityDb
2019-02-28 11:30:07 +00:00
Vincent Coubard
f7df97bed7
BLE - Remove conditionnal directive within GattClient::WriteOp_t
2019-02-28 11:29:35 +00:00
Vincent Coubard
c9d719a8ca
BLE - Cleanup conditional directives in Gap.
...
- Remove conditional directives for member variables.
- Remove conditional directive for processXXX functions that are exclusively used by implementation.
- Remove conditional directives on types exported by the class.
2019-02-28 11:28:55 +00:00
Vincent Coubard
126a7a966e
BLE - Cleanup conditional directives in gap/Gap/
...
- Remove directives from event handler type
- Expose privacy default configuration unconditionally
- Fix conditional test for connect and cancelConnect.
2019-02-28 11:27:02 +00:00
Vincent Coubard
bc10a09c4e
BLE - Remove conditional directive removing functions in pal.
2019-02-28 11:24:08 +00:00
Vincent Coubard
3c9e778433
BLE - Remove conditionnal directive within services
2019-02-28 11:23:05 +00:00
Vincent Coubard
06b26d4e8a
BLE - remove conditional directive from value types
2019-02-28 11:22:37 +00:00
mudassar-ublox
d34b0475a9
C030_N211 api's update and removed N2XX_CellularNetwork class
2019-02-28 14:20:55 +05:00
Teppo Järvelin
4077898de1
Cellular: fix issue where CGACT not supported in coming firmware in BG96.
2019-02-28 08:36:31 +02:00
Vincent Coubard
ba9aa6b641
Fix rebase mistakes.
2019-02-27 22:15:06 +00:00
paul-szczepanek-arm
cd2501bb64
tab fix
2019-02-27 21:52:07 +00:00
paul-szczepanek-arm
a034bf875e
gatt server pass
...
mostly phy and security issues
2019-02-27 21:52:07 +00:00
paul-szczepanek-arm
f8c28fcbe7
privacy pass
2019-02-27 21:51:16 +00:00
paul-szczepanek-arm
aa6342b265
cordio security pass
2019-02-27 21:47:22 +00:00
paul-szczepanek-arm
bc3ff56504
partial security pass
2019-02-27 21:46:08 +00:00
paul-szczepanek-arm
a1815e31f0
correct dependencies for central and peripheral
2019-02-27 21:39:07 +00:00
paul-szczepanek-arm
c3a72073be
cordio extended peripheral pass
2019-02-27 21:39:07 +00:00
paul-szczepanek-arm
e950da11f2
extended doesn't depends on phy
2019-02-27 21:39:06 +00:00
paul-szczepanek-arm
ec6783ed77
cordio peripheral role pass
2019-02-27 21:39:06 +00:00
paul-szczepanek-arm
45eca7c373
cordio observer role pass
2019-02-27 21:36:26 +00:00
paul-szczepanek-arm
eb16fb6053
broadcaster role cordio pass
2019-02-27 21:34:00 +00:00
paul-szczepanek-arm
c198603c63
ble ifdefs
2019-02-27 21:17:15 +00:00
paul-szczepanek-arm
e44c3edede
fix gap ifdefs
2019-02-27 21:17:15 +00:00
paul-szczepanek-arm
909b78fc14
complete gap feature ifdef
2019-02-27 21:15:54 +00:00
paul-szczepanek-arm
630b2fe792
more gap ifdefs
2019-02-27 21:08:15 +00:00
paul-szczepanek-arm
1d5b7d4056
ifdef source files based on features
2019-02-27 21:00:11 +00:00
paul-szczepanek-arm
c8d8c4e159
merge failure fix
2019-02-27 21:00:10 +00:00
paul-szczepanek-arm
30ad32a465
ifdef out security features
2019-02-27 20:59:35 +00:00
paul-szczepanek-arm
9e710d4309
git review changes
2019-02-27 20:59:35 +00:00
paul-szczepanek-arm
cb3d79bf9b
update descriptions
2019-02-27 20:57:10 +00:00
paul-szczepanek-arm
7974726659
fixed conf file (tabs and order)
2019-02-27 20:57:09 +00:00
paul-szczepanek-arm
208eb200f1
gatt client signing
2019-02-27 20:57:09 +00:00
paul-szczepanek-arm
3e03c11832
guard class fields with ifs
2019-02-27 20:55:58 +00:00
paul-szczepanek-arm
33e8826361
whitelist feature
2019-02-27 19:46:43 +00:00
paul-szczepanek-arm
bc69e15638
revert accidental changes
2019-02-27 19:46:42 +00:00
paul-szczepanek-arm
dc3aba181e
fix BLE_CONNECTABLE_FEATURE macro
2019-02-27 19:46:12 +00:00
paul-szczepanek-arm
5a97706aab
added #if guards to cordio ble
2019-02-27 19:46:12 +00:00
Cruz Monrreal
b5bb1c1211
Update features/frameworks/greentea-client/source/greentea_test_env.cpp
...
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-02-27 21:38:16 +02:00
paul-szczepanek-arm
bed567825f
connectable is a feature not role
2019-02-27 19:31:47 +00:00
paul-szczepanek-arm
b60eaf14a2
require macros to be defined
2019-02-27 19:31:47 +00:00
paul-szczepanek-arm
26cc72f191
add more feature toggles in cordio init
2019-02-27 19:31:47 +00:00
paul-szczepanek-arm
9a22db0e96
implied features
2019-02-27 19:31:46 +00:00
paul-szczepanek-arm
ab4e47661d
move config to ble feature
2019-02-27 19:31:46 +00:00
paul-szczepanek-arm
212e9477d3
require at least one role observer or broadcaster
2019-02-27 19:31:46 +00:00
paul-szczepanek-arm
aefab05e5a
add all the features and rename existing non-roles to features
2019-02-27 19:31:46 +00:00
Steve Cartmell
8e36ed4b1e
feat(ble): Guard out the CordioBLE initialisation code
2019-02-27 19:29:51 +00:00
Steve Cartmell
72d28d920a
feat(ble): Guard out Observer code when role is disabled
2019-02-27 19:29:51 +00:00
Steve Cartmell
5d73a03a64
feat(ble): Guard out SecurityManager code when role is disabled
2019-02-27 19:24:40 +00:00
Steve Cartmell
73f7ffb124
feat(ble): Guard out GattServer code when role is disabled
2019-02-27 19:24:39 +00:00
Steve Cartmell
6e301ce148
feat(ble): Guard out GattClient code when role is disabled
2019-02-27 19:23:31 +00:00
Steve Cartmell
9806f91ecf
feat(ble): Add preprocessor check to determine enabled roles are valid
...
A number of BLE roles depend on each other, checking within the target
configuration file for a valid configuration is infeasible. Move the
validation to the preprocessor and fail to compile if some required
roles are not enabled.
2019-02-27 19:00:08 +00:00
Martin Kojtal
7027eac9c6
Merge pull request #9838 from artokin/nanostack_for_mbed_os_5_12
...
Nanostack release for Mbed OS 5.12
2019-02-27 13:46:32 +01:00
Martin Kojtal
5b78adc69c
Merge pull request #9856 from Patater/update-mbedcrypto-1.0.0d7
...
crypto: Update Mbed Crypto to 1.0.0d7
2019-02-27 13:45:38 +01:00
Martin Kojtal
6bdbe754cd
Merge pull request #9799 from VeijoPesonen/bugfix-esp8266-dns
...
Increase events.share-eventsize to 768B because of ESP8266 AT driver and asynchronous DNS
2019-02-27 11:30:38 +01:00
Martin Kojtal
7a5831ae0a
Merge pull request #9843 from desmond-blue/fix_Cordio-Gatts-write-permission
...
Fix cordio gatts configuring write permission
2019-02-27 10:48:22 +01:00
Arto Kinnunen
5486a38527
Merge commit 'b182455f1947ff8fa48f37ad5fde17d89d67efa5'
...
* commit 'b182455f1947ff8fa48f37ad5fde17d89d67efa5':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 2cd155b..76da6a5
2019-02-27 11:02:44 +02:00
Wajahat Abbas
bafb145dfb
Corrected timeout for +UDNSRN command
2019-02-27 13:44:36 +05:00
Kari Haapalehto
7de864c465
Fix for NUCLEO_F207 UDPSOCKET_ECHOTEST_BURST_NONBLOCK fails.
...
Increase eth-rxbufnb from 1 to 2 will fix the problem
2019-02-27 10:33:24 +02:00
Jaeden Amero
d63677f207
crypto: Update to Mbed Crypto 1.0.0d7
2019-02-27 07:24:50 +00:00
Cruz Monrreal
bf92043627
Merge pull request #9795 from Patater/update-mbedcrypto-1.0.0d5
...
crypto: Update to Mbed Crypto 1.0.0d5 and then to 1.0.0d6
2019-02-26 15:55:03 -06:00
Cruz Monrreal
d29312e7ac
Merge pull request #9808 from ARMmbed/feature-iar8
...
IAR 8 feature branch merge
2019-02-26 15:30:27 -06:00
Amir Cohen
5c7f6cb755
Merge SPIF & QSPIF components test to general block device tests
...
The SPIF and QPIF components tests are fully merged into general block device tests and were deleted
2019-02-26 10:28:45 -06:00
Amir Cohen
b8fed58f12
Modifing general block device tests doe to targets enhancement
...
Due to targets enhancement some boards failed the general block device tests for flashiap component,
The fails were due to boards containing inconsistent sector sizes.
The tests were modified but should be improved to address the problem.
Rand() function issues were fixed.
2019-02-26 09:24:09 -06:00
Deepika
d2e11966fc
Revert "rand() by default does increment of 1, randomizing more"
...
This reverts commit f7a6d254f6 .
2019-02-26 09:21:19 -06:00
Vincent Coubard
73f29e7733
BLE - Fix qualification of abort and terminate.
2019-02-26 13:18:18 +00:00
Vincent Coubard
9ab284940a
BLE - Devirtualization of the NRF52 softdevice port.
2019-02-26 13:18:18 +00:00
Vincent Coubard
ddbb177e33
BLE - Devirtualization of the NRF51 port.
2019-02-26 13:18:17 +00:00
Vincent Coubard
b86049d1e7
BLE - Devirtualization of the legacy NRF51822 port.
2019-02-26 13:18:17 +00:00
Vincent Coubard
0323d91f04
BLE - Devirtualization of the Maxim port .
2019-02-26 13:18:17 +00:00
Vincent Coubard
536443b1f8
BLE - Devirtualization of the Cordio port.
2019-02-26 13:18:17 +00:00
Vincent Coubard
04d26f7ab5
BLE - Devirtualize ::ble::generic::GenericSecurityManager
...
Two parameters are expected by the template:
- TPalSecurityManager a template class of the security manager of the form TPalSecurityManager<EventHandler>. The GenericSecurityManager is the event handler.
- SigningMonitor a template in the form SigningMonitor<Handler>.
2019-02-26 13:18:17 +00:00
Vincent Coubard
b135074821
BLE - Devirtualize ble::generic::GattClient
...
GenericGattClient is parametized by two types:
- The template of the PalGattClient
- The SigningMonitorEventHandler
Note that the PalGattClient template must be of the form PalGattClient<EventHandler>. The event handler being the GenericGattClient.
2019-02-26 13:18:17 +00:00
Vincent Coubard
39e938bf8e
BLE - Devirtualize ble::generic::GenericGap
...
Expected types are similar to the type expected by the constructor:
- PalGap
- PalSecurityManager
- ConnectionEventMonitorEventHandler
Note that for the PalGap we expect a **template** of the form PalGap<EventHandler>
2019-02-26 13:18:17 +00:00
Vincent Coubard
e70fb27d55
BLE - cleanup includes.
2019-02-26 13:18:17 +00:00
Vincent Coubard
fb39848481
BLE - Cleanup deprecation implementation bits in BLE.cpp
2019-02-26 13:18:17 +00:00
Vincent Coubard
7796e733ad
BLE - Devirtualize ::SecurityManager
...
The interface now lives in ::ble::interface::SecurityManager. The implementation type is expectected to exported as ble ::ble::impl::SecurityManager by the implementation.
2019-02-26 13:18:17 +00:00
Vincent Coubard
6d2592a137
BLE - Devirtualize ::GattServer.
...
The interface is defined in ::ble::interface::GattServer and an implementation must export the implementation type ::ble::impl::GattServer.
2019-02-26 13:18:17 +00:00
Vincent Coubard
e56fd682a1
BLE - Devirtualize ::GattClient
...
Interface definition now lives in ble::interface::GattClient. An implementation must export the implementation type in ::ble::impl::GattClient.
2019-02-26 13:18:17 +00:00
Vincent Coubard
43e87fb04d
BLE - Devirtualize ::ble::Gap
...
The interface definition now lives in ::ble::interface::Gap.
The implementation must export the implementation types as ::ble::impl::Gap.
2019-02-26 13:18:17 +00:00
Vincent Coubard
1ad726322f
BLE - Devirtualization of ::Gap
...
The interface definition now lives in ::ble::interface::LegacyGap. Implementation must export the implementation type as ble::impl::LegacyGap.
2019-02-26 13:18:17 +00:00
Vincent Coubard
2d007eee42
BLE - Devirtualize pal::SigningEventMonitor
...
The event handler has been extracted out of SigningEventMonitor declaration and SigningEventMonitor instantion requires the implementation and event handler type.
2019-02-26 13:18:17 +00:00
Vincent Coubard
50de4c8a44
BLE - Devirtualize pal::SecurityManager
...
The event handler has been extracted out of SecurityManager declaration and instantion of the interface requires the implementation and event handler type.
2019-02-26 13:18:17 +00:00
Vincent Coubard
e1371f8149
BLE - Devirtualize pal::GattClient
...
The event handler has been taken out of GattClient declaration and an instantiation requires the actual implementation and the type that handle events.
2019-02-26 13:18:17 +00:00
Vincent Coubard
0749100676
BLE - Devirtualize pal::Gap
...
The event handler has been taken out of Gap declaration and the instantiation must provide an implementation and the type that plays the event handler role.
2019-02-26 13:18:17 +00:00
Vincent Coubard
6514bbd1f0
BLE - Devirtualize pal::ConnectionEventMonitor
...
The event handler has been extracted out of the monitor declaration.
2019-02-26 13:18:17 +00:00
Vincent Coubard
71b8d8a2f3
BLE - devirtualize pal::AttClientToGattClientAdapter
2019-02-26 13:18:17 +00:00
Vincent Coubard
333a31507b
BLE - devirtualize pal::AttClient
2019-02-26 13:18:17 +00:00
Vincent Coubard
7e78433cec
BLE - replace some usages of Gap::Handle_t by ble::connection_handle_t
2019-02-26 13:18:17 +00:00
Vincent Coubard
bc098d0272
BLE - add static interface helper.
2019-02-26 13:18:17 +00:00
mudassar-ublox
6c347eafe5
C030_N211 cellular api refactoring
2019-02-26 17:28:01 +05:00
Arto Kinnunen
650f9d9887
Merge commit '514ed9930160b041a598b922a3b69789e2fb6fcf'
...
* commit '514ed9930160b041a598b922a3b69789e2fb6fcf':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from c5ee9e4..2cd155b
2019-02-26 11:04:54 +02:00
Veijo Pesonen
517799fd06
NetworkStack: halts if unable to add an event to the event queue
2019-02-26 09:44:15 +02:00
Desmond Chen
0143229bd0
Fix Cordio Gatts descriptor configuring write permission
2019-02-26 11:30:57 +08:00
d-kato
78923d8135
Add missing license description to RZ/A1 driver
2019-02-26 11:52:29 +09:00
Cruz Monrreal
044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
...
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Cruz Monrreal
d0881ad259
Merge pull request #9813 from paul-szczepanek-arm/cordio-cfg
...
BLE: Cordio build time configuration through mbed_lib.json
2019-02-25 17:28:56 -06:00
Cruz Monrreal
8ec8674e4e
Merge pull request #9833 from donatieng/remove_beetle
...
Remove Arm Beetle target for Mbed OS 5.12
2019-02-25 17:27:22 -06:00
Cruz Monrreal
e7d8d9c5d2
Merge pull request #9834 from SeppoTakalo/copyright
...
Add missing copyright header to STM32 driver
2019-02-25 17:27:05 -06:00
Cruz Monrreal
2b811daaf8
Merge pull request #9821 from cydriftcloud/send-hci-reset-after-patchram-download
...
PSOC6: send HCI reset after patch RAM download
2019-02-25 10:33:37 -06:00
paul-szczepanek-arm
f62217b3dd
typos
2019-02-25 15:33:52 +00:00
paul-szczepanek-arm
a7297186b5
fixed names
2019-02-25 15:30:55 +00:00
paul-szczepanek-arm
e75c534445
stray comma
2019-02-25 15:23:35 +00:00
Arto Kinnunen
9784e93ae0
Merge commit '7a7888227901179597fffc163a23dd15c8d055a9'
...
* commit '7a7888227901179597fffc163a23dd15c8d055a9':
Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from b8b664b..7745556
2019-02-25 15:53:04 +02:00
Michal Paszta
42404be824
Change all wifi and WiFi occurences to Wi-Fi
2019-02-25 14:54:18 +02:00
Arto Kinnunen
16e2a85ad1
Merge commit '12a2437b39d1ecccb0cfeee4d69e071af03b84de'
...
* commit '12a2437b39d1ecccb0cfeee4d69e071af03b84de':
Squashed 'features/frameworks/mbed-trace/' changes from 0a4f6be..642a459
2019-02-25 14:48:18 +02:00
Arto Kinnunen
b68e5edbc7
Merge commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7'
...
Nanostack v10.1.0 for Mbed OS 5.12
* commit '780e9afb8f3b8f09e66573e7d4ba096dd9a87dd7':
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 513a38e..c5ee9e4
2019-02-25 14:24:47 +02:00
Seppo Takalo
7a33700bb4
Replace Copyright ARM with a proper Apache 2 license header
2019-02-25 14:17:42 +02:00
Oren Cohen
78ec812f3a
Add define to skip greentea sync
2019-02-25 14:16:45 +02:00
Seppo Takalo
b14df9e0de
Add missing copyright header to STM32 driver
2019-02-25 14:09:36 +02:00
Donatien Garnier
176e5779ce
Remove Arm Beetle target
...
Deprecation in preparation for Mbed OS 5.12 and move to IAR8 and ARMC6
2019-02-25 12:09:03 +00:00
Arto Kinnunen
433ab3e843
Merge commit 'e046a96f8bd369720d4bf65dd4441ad19ebe22e7'
...
* commit 'e046a96f8bd369720d4bf65dd4441ad19ebe22e7':
Squashed 'features/nanostack/coap-service/' changes from c45afcd..227cc3d
2019-02-25 13:40:37 +02:00
Arto Kinnunen
ab1cfc5c7e
Merge commit '14ff147a610d775c157ffc48b4e4521d0a6493f0'
...
* commit '14ff147a610d775c157ffc48b4e4521d0a6493f0':
Squashed 'features/frameworks/mbed-trace/' changes from 7a1bd34..0a4f6be
2019-02-25 13:01:32 +02:00
Arto Kinnunen
3b1ccfac0a
Merge commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed'
...
* commit 'd53d1dffb7405776dd84fa24a2eec7c18f445fed':
Squashed 'features/frameworks/nanostack-libservice/' changes from 1d4c358..dd98c37
2019-02-25 13:00:32 +02:00
Arto Kinnunen
220470c577
Merge commit '99c2f61463ded19baa49346f6210f9eb3e62161f'
...
* commit '99c2f61463ded19baa49346f6210f9eb3e62161f':
Squashed 'features/nanostack/sal-stack-nanostack-eventloop/' changes from 778c4db..b8b664b
2019-02-25 12:56:24 +02:00
paul-szczepanek-arm
6842c8718b
revert macros
2019-02-25 09:52:21 +00:00
paul-szczepanek-arm
6a2b6b891a
use existing macro names
2019-02-25 09:49:16 +00:00
David Saada
671c5a0510
Remove unnecessary prints in FileSystemStore class
2019-02-24 14:23:40 +02:00
Lei Zhang
a47b365776
PSOC6: send HCI reset after patch RAM download
...
After the patch RAM download is completed, a HCI reset should be sent in order to initialize the registers. Some of the initialization won't be called if the HCI reset is not sent after firmware download.
2019-02-22 23:43:52 -08:00
Deepika
f7a6d254f6
rand() by default does increment of 1, randomizing more
...
Random number generation in case of IAR 8, requires TLS support.
Thread local storage is not part of Mbed OS, test is updated to have random
numbers sparse, but in future random number creation should be moved to main
thread, or use some other logic for randomization instead of rand() call.
2019-02-22 16:44:54 -06:00
paul-szczepanek-arm
4b0296a6e1
prepared writes options
2019-02-22 13:52:21 +00:00
paul-szczepanek-arm
4470f64581
mention config in readme
2019-02-22 11:33:23 +00:00
paul-szczepanek-arm
86546440d7
put cordio cfg in mbed_lib.json
2019-02-22 11:28:28 +00:00
Jaeden Amero
e5c1e0b7a7
crypto: Update to Mbed Crypto 1.0.0d6
2019-02-22 09:54:01 +00:00
Jaeden Amero
c101a224bc
crypto: Update to Mbed Crypto 1.0.0d5
2019-02-22 09:53:59 +00:00
Michal Paszta
08b06e25d0
Document network parameters in netsocket/mbed_lib.json
2019-02-22 10:13:21 +02:00
Cruz Monrreal
870bd05904
Merge pull request #9708 from davidsaada/david_protected_storage
...
Implement PSA protected storage & restructure PSA storage implementation
2019-02-21 17:30:56 -06:00
Cruz Monrreal
50af2c341c
Merge pull request #9752 from mirelachirica/add_comment_fix_warning
...
Add comment fix warning
2019-02-21 17:30:34 -06:00
David Saada
41eb5cbfd9
Implement PSA protected storage & restructure PSA storage implementation
...
- Move all PSA storage code under psa/storage directory
- Create a global PSA error codes header, eliminating ITS specific ones
- Create a common header file for PSA storage type definitions,
eliminating ITS specific ones
- Create a common implementation for PS & ITS
- Implement protected storage feature
- Change ITS test to be common to PS as well
2019-02-21 20:58:59 +02:00
Volodymyr Medvid
b0a33273ff
Correctly include EventQueue.h
...
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h
By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:
mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared
Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-02-21 17:59:05 +02:00
Martin Kojtal
d030c04a60
Merge pull request #9219 from hasnainvirk/lorawanbase_migration
...
LoRaWAN: Retiring LoRaWANBase class
2019-02-21 13:55:11 +01:00
Martin Kojtal
dbd92c746b
Merge pull request #9387 from tymoteuszblochmobica/Sockets
...
Multihoming initial release
2019-02-21 13:50:03 +01:00
mudassar-ublox
da797ef946
C030_N211 cellular api
2019-02-21 14:44:20 +05:00
Jaeden Amero
fdc57f88cf
crypto: Update to Mbed Crypto 1.0.0d4
2019-02-20 22:21:16 +02:00
Cruz Monrreal
b088bd493a
Merge pull request #9759 from michalpasztamobica/memory_handling_fixes
...
Multiple memory handling fixes
2019-02-20 12:07:45 -06:00
Cruz Monrreal
b1d0d9e95c
Merge pull request #9776 from ConradBraam/adv_builder
...
adv builder helper now returns an object
2019-02-20 12:04:51 -06:00
Martin Kojtal
5ada4bf9af
Merge pull request #9746 from blind-owl/retire_cellularbase_class
...
Cellular: retire CellularBase class
2019-02-20 15:30:43 +01:00
Conrad Braam
57033ee91a
adv builder helper now returns an object
2019-02-20 13:54:38 +00:00
Tymoteusz Bloch
641189c357
Multihoming change parameter orded in gethostbyname
2019-02-20 14:37:33 +02:00
Michal Paszta
fa6a3f5604
Multiple memory handling fixes
...
Based on valgrind reports running on unit tests following changes were introduced:
* TLSSocketWrapper frees allocated cert buffer in case of errors from mbedtls,
* nsapi_addr has a mem_init() function, initializing all of its memory during construction.
2019-02-20 14:15:57 +02:00
Martin Kojtal
2d30d0ff99
Merge pull request #9762 from vmedcy/psoc6-target-updates
...
PSOC6: update the psoc6pdl and HAL to the latest version
2019-02-20 11:23:54 +01:00
Jaeden Amero
4a25069611
crypto: Update Mbed Crypto to 1.0.0d3
2019-02-20 11:31:30 +02:00
Martin Kojtal
4b83fe1103
Merge pull request #9763 from paul-szczepanek-arm/gattserver-fix
...
BLE: fixed initialisation order in GattServer
2019-02-20 09:40:44 +01:00
Jari Poyhonen
7a195ae227
Cellular: fix for binary compability requirement for CY8CKIT_062_4343W
2019-02-20 10:03:34 +02:00
Cruz Monrreal
2234dac127
Merge pull request #9751 from AriParkkila/athandler-set_at_timeout
...
Cellular: Fix ATHandler set/restore_at_timeout with mutex lock
2019-02-19 15:29:38 -06:00
Cruz Monrreal
e3bc37b4de
Merge pull request #9655 from mirelachirica/nonip_doxygen_updates
...
Cellular: Non-IP doxygen updates
2019-02-19 15:29:14 -06:00
Cruz Monrreal
feae56eea1
Merge pull request #9493 from RonEld/add_platform_initialization_in_trng_test
...
Initialize platform in trng test
2019-02-19 15:27:40 -06:00
Cruz Monrreal
62aae6ae3b
Merge pull request #9753 from artokin/update_nanostack_hal_license_and_copyright
...
Update Nanostack_HAL licenses and copyright year
2019-02-19 15:26:55 -06:00
paul-szczepanek-arm
db4aecb275
fixed initialisation order
2019-02-19 17:26:43 +00:00
Volodymyr Medvid
cefc7452c9
PSOC6: do not reconfigure BT GPIO pins in CYW43XXX HCIDriver
2019-02-19 17:59:04 +02:00
Tymoteusz Bloch
49141376ee
Multihoming initial release
...
Added Multihoming feature to LWIP (ability to use more than one network interfaces) for increasing networking reliability.
This involves:
LWIP interface
LWIP IP routing
DNS storage
Sockets (bind to interface name possibility)
possibility to add non default network interface
cellular middleware modifications if cellular connection is used
2019-02-19 17:39:46 +02:00
Martin Kojtal
400fd82972
Merge pull request #9705 from AriParkkila/cellular-socket-gt
...
Cellular: Fix cellular stack and drivers for netsocket tests
2019-02-19 15:42:56 +01:00
Martin Kojtal
23c494b60a
Merge pull request #9748 from desmond-blue/fix_Cordio_ATTS_callback
...
BLE:Cordio: ATTS setting for write cback should use bitwise or
2019-02-19 15:42:06 +01:00
Martin Kojtal
723236f855
Merge pull request #9307 from mtomczykmobica/ONME-3949
...
Configuration options for STM_EMAC buffer counts
2019-02-19 14:09:24 +01:00
Arto Kinnunen
932b3a2938
Update Nanostack_HAL licenses and copyright year
...
-Add Apache License to files that were missing a licence
-Update copyright year
2019-02-19 12:53:38 +02:00
Mirela Chirica
c75e4a87ee
Cellular: Remove compiling warning
2019-02-19 12:23:55 +02:00
Jari Poyhonen
b0c7c266c6
Cellular: add SPDX identifier
2019-02-19 10:42:04 +02:00
Mirela Chirica
9ddb843cc8
Cellular: Added explanatory comment for AT cellular stack's socket_open routine
2019-02-19 10:18:08 +02:00
Ari Parkkila
d48adcce2c
Cellular: Fix ATHandler set/restore_at_timeout with mutex lock
2019-02-19 00:16:45 -08:00
Marcin Tomczyk
a5f93e0b07
ONME-3949 Configuration options for STM_EMAC buffer counts
2019-02-19 08:18:18 +01:00
Desmond Chen
79e8bf4bc9
BLE:Cordio: ATTS setting for write cback should use bitwise or
2019-02-19 14:19:44 +08:00
Ari Parkkila
605a42d38f
Cellular: Fix Gemalto/Cinterion socket open defer
2019-02-18 06:24:42 -08:00
Jari Poyhonen
90c9a85397
Cellular: retire CellularBase class
...
It was decided to retire CellularBase class which served as a pure
virtual interface class from which Cellular network stack
implementations would get inherited. However, the current view is that
we may be the only user of it so we could retire CellularBase.
2019-02-18 11:50:43 +02:00
Ron Eldor
77f9faf46c
Use a mutex in platform setup \ teardown functions
...
Use a singleton Mutex in platforms_alt functions, to be shared
with the trng function, to save RAM. Rename `platform_alt.c`
to `platform_alt.cpp` as the mutex is in a `singletonPtr`
template class.
2019-02-18 11:43:32 +02:00
Ron Eldor
c94b5861e4
Add mbedtls platform setup and teardown to modules
...
Add calls to `mbedtls_platform_setup()`
and `mbedtls_platform_teardown()` to all modules and tests using Mbed TLS.
2019-02-18 11:43:32 +02:00
Mirela Chirica
57a93bbd0a
Cellular: Non-IP doxygen updates
2019-02-18 09:53:59 +02:00
Ari Parkkila
cdc28b5baf
Cellular: Fix CellularDevice mutex unlock
2019-02-17 23:53:53 -08:00
Ari Parkkila
50a276ead8
Cellular: Fix Quectel BG96 driver RTS/CTS setup
2019-02-17 23:53:11 -08:00
Ari Parkkila
9329430871
Cellular: Fix Quectel M26 drivers
2019-02-17 23:52:08 -08:00
Ari Parkkila
3bcf51385e
Cellular: Handling of TCP endpoint closed
2019-02-17 23:51:08 -08:00
Ari Parkkila
5aaf42c418
Cellular: ATHandler debugging relieved
2019-02-17 23:49:01 -08:00
Cruz Monrreal
fdd2a9402a
Merge pull request #9728 from AriParkkila/at-handler-clear-sigio
...
Cellular: Fix sigio to be released in ATHandler destructor
2019-02-15 12:41:44 -06:00
Cruz Monrreal
7f248970ec
Merge pull request #9660 from blind-owl/clean_cellular_trace
...
Cellular: clean sensitive information from trace
2019-02-15 12:28:25 -06:00
Cruz Monrreal
6d619eba32
Merge pull request #9709 from hasnainvirk/nfc_doxy
...
Reverting to original doxy configuration
2019-02-15 12:26:46 -06:00
Ari Parkkila
0c697f4421
Cellular: Fix sigio to be released in ATHandler destructor
2019-02-15 05:07:36 -08:00
Martin Kojtal
a3500a3040
Merge pull request #9654 from anttiylitokola/mbed-coap-to-4.7.4
...
Update mbed-coap to version 4.7.4
2019-02-15 10:58:06 +01:00
Martin Kojtal
dc1574456f
Merge pull request #9601 from hasnainvirk/mem_leak_link_adr
...
LoRaWAN: Proper size checks for link ADR cmds & correct include path in Unittests framework
2019-02-15 10:22:58 +01:00
Martin Kojtal
a7b949028c
Merge pull request #9537 from paul-szczepanek-arm/mtu-events
...
BLE: Add MTU events
2019-02-15 10:17:24 +01:00
Cruz Monrreal
67abaf5fa7
Merge pull request #9706 from jarvte/fix_powering_onboard_modems
...
Cellular: fix onboard modems powering failure.
2019-02-14 20:26:51 -06:00
Hasnain Virk
726eff9305
Proper size checking for link ADR commands
...
In a specific branch path 'adr_settings' in link_adr_request() API, the
structure adr_settings of type link_adr_params_t will be rendered
uninitialized. To prevent this we initialize the construct as zero.
In addition to that, to handle the case properly we should check for the
command identifier and the command payload length anticipating contiguous
blocks of adr commands. If we find a discrepency in size, we should
abort.
2019-02-14 17:15:42 +02:00
Cruz Monrreal
c07410d78c
Merge pull request #9628 from kfnta/bare-metal-updates
...
Bare metal mbed_lib updates
2019-02-14 09:13:34 -06:00
Cruz Monrreal
39441655bf
Merge pull request #9684 from KariHaapalehto/ethernet_tasklet_correction
...
enet_tasklet_disconnect() should generate event to tasklet.
2019-02-14 09:13:15 -06:00
Hasnain Virk
f36e896ff1
Reverting to original doxy configuration
...
This commit essentially brings back old code. We did an attempt to
resolve doxy issues with nfc durint docathlon, but it introduced more
issues and yak shaving rather than being a useful exercise.
Unfortunately the previous attempt got merged. This commit attempts to
restore the style maintained by original developers. From here they can
take over.
2019-02-14 17:06:38 +02:00
paul-szczepanek-arm
d801ed340e
removed redundant qualifier tripping up GCC
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
cdd5c9f3b0
fix nrf52 mtu
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
193092f6d9
added spdx licence ident
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
f52b20c169
move cpp to sources
2019-02-14 12:34:35 +00:00
paul-szczepanek-arm
1cea53b6a7
use grandfathered convention for class members names and initialise them
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
3808db90b2
require pal event handler to be complete
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
de60b2a56a
remove unused converter
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
03b747a6f6
Get the pal event handler from pal gattclient
2019-02-14 12:34:34 +00:00
paul-szczepanek-arm
b628285254
route mtu changed events to server and client instead of gap
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
a3f635eb88
fix type name
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
c10fc2eb8e
add API to trigger MTU negotiation
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
02d5391cd0
fix possible truncation
2019-02-14 12:34:33 +00:00
paul-szczepanek-arm
b6df6d54a1
change event names
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
356ec39d02
fix style
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
21ad886e9e
handle mtu and data len events for softdevice
2019-02-14 12:34:32 +00:00
paul-szczepanek-arm
06a2a403e9
fix typos
2019-02-14 12:34:31 +00:00
paul-szczepanek-arm
108d6908be
route ble events to gap
2019-02-14 12:34:31 +00:00
paul-szczepanek-arm
c452d8ff0e
add mtu events
2019-02-14 12:34:31 +00:00
Teppo Järvelin
e4018bd9bb
Cellular: fix onboard modems powering failure
...
Don't call soft power on if device was already powered.
Some modems need to wait before sending anything to modem after soft powering.
2019-02-14 12:39:37 +02:00
Jari Poyhonen
b6a0892e86
Cellular: clean sensitive information from trace
...
Information removed from the cellular subsystem trace log:
* SIM pin
* APN username and password
Added get_debug() to ATHandler.h to get the current trace state in order
to support suspend/resume of trace output.
2019-02-14 09:22:54 +02:00
Cruz Monrreal
d36ebe707b
Merge pull request #9691 from naveenkaje/fix_btle_clockconfig_warning
...
btle: fix build warning about unused clockConfiguration
2019-02-13 19:15:06 -06:00
Cruz Monrreal
b66678d6d7
Merge pull request #9696 from naveenkaje/thread_extn_warning_fix
...
features: nanostack: fix warning in thread_extension.h
2019-02-13 18:29:53 -06:00
Cruz Monrreal
9be82d96d8
Merge pull request #9694 from naveenkaje/fix_icmpv6_warning
...
nanostack: icmpv6: fix build warning
2019-02-13 18:29:33 -06:00
Cruz Monrreal
e310458a88
Merge pull request #9692 from naveenkaje/fix_ublox_celluar_warning
...
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
2019-02-13 17:12:51 -06:00
Cruz Monrreal
e34ecae6c2
Merge pull request #9681 from NeilMacMullen/cross-compilation
...
Make a few trivial syntactic changes to better support cross-compilation
2019-02-13 17:10:23 -06:00
Cruz Monrreal
583980fa2f
Merge pull request #9576 from yossi2le/yossi_remove_redundant_ifdef
...
Remove redundant ifdef DEVICE_TRNG from DeviceKey
2019-02-13 17:09:57 -06:00
Oren Cohen
bb775c2e69
Storage mbed_lib.json files
2019-02-13 20:36:00 +02:00
Cruz Monrreal
b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
...
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Naveen Kaje
1f015aa0b7
features: nanostack: fix warning in thread_extension.h
...
Fix the following build warning seen with GCC
Compile [ 51.2%]: thread_bootstrap.c
[Warning] thread_extension.h@88,44: statement with no effect [-Wunused-value]
2019-02-13 10:48:33 -06:00
Naveen Kaje
0563276466
btle: fix build warning about unused clockConfiguration
...
Fix the following build warning seen with both GCC and ARM_CC
[Warning] btle.cpp@115,0: #177-D: variable "clockConfiguration" was declared but never referenced
2019-02-13 10:42:48 -06:00
Naveen Kaje
8d0c94e8dc
nanostack: icmpv6: fix build warning
...
Fix the following build warning seen when building with GCC
Compile [ 54.2%]: icmpv6.c
[Warning] icmpv6.c@1091,16: this statement may fall through [-Wimplicit-fallthrough=]
2019-02-13 10:34:51 -06:00
Yossi Levy
d8d91c336a
Adding MBEDTLS_ENTROPY_NV_SEED macro check in device key to allow key derivation when there is no TRNG but there is DRBG
2019-02-13 14:18:45 +02:00
Kari Haapalehto
31c40130d6
enet_tasklet_disconnect() should generate event to tasklet.
...
enet_tasklet_disconnect() is now generating event to ethernet_tasklet,
which will then handle it.
2019-02-13 13:57:03 +02:00
Cruz Monrreal
e84319fe70
Merge pull request #9326 from hasnainvirk/nfc_doxy
...
Doxygen correction
2019-02-12 20:27:17 -06:00
Cruz Monrreal
3e6cd4e89d
Merge pull request #9501 from caixue1102/mbed-os-rda
...
Add WIFI support for RDA target UNO_91H
2019-02-12 20:05:27 -06:00
Naveen Kaje
02e42fef3e
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
...
Fix this build warning seen when building with ARMCC
Compile [ 13.7%]: UBLOX_AT_CellularNetwork.cpp
[Warning] UBLOX_AT_CellularNetwork.cpp@65,0: #111-D: statement is unreachable
2019-02-12 15:50:23 -06:00
Cai
d92e33dcee
Add WIFI support for RDA target UNO_91H
2019-02-12 22:59:53 +08:00
Neil MacMullen
f29c5b22a1
Keep style linter happy
2019-02-12 14:37:07 +00:00
Neil MacMullen
a7f4cbcdce
Make a few trivial syntactic changes to better support cross-compilation
2019-02-12 12:01:05 +00:00
Hasnain Virk
2670eaf82d
Doxygen correction
...
Adding to proper group so that the API doxygen appears into the class
hierarchy group rather than data strutures.
2019-02-12 12:53:53 +02:00
Martin Kojtal
e1d891b858
Merge pull request #9587 from naveenkaje/fix_build_warning_QUECTEL
...
targets: QUECTEL: Fix build warning
2019-02-12 09:52:06 +01:00
Martin Kojtal
1bbb76dfd1
Merge pull request #9514 from mirelachirica/bg96_netsocket_tests
...
BG96 netsocket tests
2019-02-12 09:06:09 +01:00
Cruz Monrreal
a12d9bb2a0
Merge pull request #9650 from offirko/offir_fix_random_block_in_general_bd_test
...
Multi thread Block Device Tests Fix - Ensure unique block address
2019-02-11 18:46:34 -06:00
Cruz Monrreal
92e1464024
Merge pull request #9584 from michalpasztamobica/tlssocket_would_block
...
TLSSocket send/recv return WOULD_BLOCK error instead of NO_CONNECTION
2019-02-11 18:45:50 -06:00
Cruz Monrreal
58cba25799
Merge pull request #9372 from pan-/fix-cryptotoolbox
...
BLE - Nordic: Release crypto cell when not in use.
2019-02-11 18:45:17 -06:00
Martin Kojtal
10bb66a053
Merge pull request #9424 from SeppoTakalo/ONME-4125
...
Allows multiple network status listeners
2019-02-11 10:41:35 +01:00
Antti Yli-Tokola
8073ce20b6
Update mbed-coap to version 4.7.4
...
- Remove dependency to yotta tool
- Do not remove stored (GET) blockwise message when EMPTY ACK received. When non piggybacked response mode is used original GET request must not be removed from the stored message list.Message is needed for building the next (GET) blockwise message.
- Move definitions to sn_config.h
2019-02-11 10:37:43 +02:00
offirko
4bbc2cdc5b
Fix general block device test to ensure unique block address per test
2019-02-10 10:38:46 +02:00
Mirela Chirica
b473aca700
Cellular: Fix UDPSOCKET_SENDTO_INVALID test for BG96
2019-02-08 15:43:01 +02:00
Mirela Chirica
28b4e28207
Cellular: Fix socket's send and receive boundaries for BG96
2019-02-08 13:02:18 +02:00
Mirela Chirica
6af725822b
Cellular: Fix socket bind tests for BG96
2019-02-08 13:02:18 +02:00
Anna Bridge
3252530e3a
Merge pull request #9481 from vmedcy/add_cypress_kits
...
Add Cypress PSoC 6 targets
2019-02-08 10:43:28 +00:00
Volodymyr Medvid
a16811532b
PSoC6: add implementation of BLE HCI driver for CYW4343W/CYW43012
...
Add Cypress HCI driver implementation in TARGET_Cypress directory.
Update targets.json to enable CORDIO stack for Cypress PSoC 6 boards
with CYW43XXX radios with compatible HCI driver implementation:
CYW4343W and CYW43012.
2019-02-07 18:24:56 +02:00
Volodymyr Medvid
a304c2216a
CYW4343X: move HCI driver to TARGET_STM
...
TARGET_CYW4343X Bluetooth HCI driver is specific to STM32 targets
derived from USI_WM_BN_BM_22. Move the driver implementation to
TARGET_STM folder to not interfere with Cypress implementation at
TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp that is enabled for
PSoC 6 targets which also include the CYW4343X label.
2019-02-07 18:24:55 +02:00
Nir Sonnenschein
e6c2a1de40
Merge pull request #9566 from kfnta/alzix/crypto-warn
...
Fix warning in Crypto when using boot seed injection
2019-02-07 18:18:41 +02:00
Nir Sonnenschein
8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
...
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Jimmy Brisson
724487d545
Require dependencies from nanostack mbed_lib.json
2019-02-07 09:39:10 -06:00
Oren Cohen
32463d64dc
Add missing mbed_lib.json for frameworks and nanostack
...
* mbed-client-randlib
* nanostack-libservice
* coap-service
* nanostack-interface
2019-02-07 09:25:14 -06:00
Oren Cohen
94c17549dc
Fix nanostack libs
2019-02-07 09:23:52 -06:00
Michal Paszta
9db97247a2
TLSSocket returns WOULD_BLOCK error instead of ALREADY
...
In case mbedtls fails to execute handshake advertising
MBEDTLS_ERR_SSL_WANT_READ or MBEDTLS_ERR_SSL_WANT_WRITE,
TLSSocketWrapper::continue_handshake returns NSAPI_ERROR_WOULD_BLOCK.
2019-02-07 10:33:37 +02:00
Seppo Takalo
43a53df505
Fix ns_list for C++03 compilers, like IAR 7
2019-02-06 15:26:06 +02:00
Alexander Zilberkant
4a204015ac
Simplify entropy seed injection configuration
...
Move NVSEED callbacks configuration to a header file
2019-02-05 15:48:41 +02:00
Alexander Zilberkant
0622cc9865
Add header guard
2019-02-05 15:48:41 +02:00
Alexander Zilberkant
6e87615dc4
Fix compilation warning
...
Fix warning in entropy.c caused by injecting seed read & write callbacks
2019-02-05 15:48:41 +02:00
Martin Kojtal
95906f1062
Merge pull request #9579 from JarkkoPaso/timer_fhss_singleton
...
FHSS timer: Use singleton pointer
2019-02-05 10:53:42 +01:00
Martin Kojtal
a0ec77d9a8
Merge pull request #9378 from oscarh/master
...
Add get_connection_status() override in CellularContext
2019-02-05 10:39:00 +01:00
Martin Kojtal
dcba5ffa3c
Merge pull request #9529 from kfnta/its_crypto
...
RollUp PR Crypto with ITS
2019-02-04 17:14:05 +01:00
Martin Kojtal
026000d4d9
Merge pull request #9388 from SenRamakri/sen_ArmC6Fixes
...
Fix for ARMc6 compiler errors
2019-02-04 14:33:23 +01:00
Jarkko Paso
17e4e287de
FHSS timer: Use singleton pointer with timer objects
...
This is to save statically allocated memory. Without SingletonPtr the timer objects would always be included in build.
2019-02-04 12:13:29 +02:00
Senthil Ramakrishnan
2030d03590
Modified fixes with review comments
2019-02-01 17:49:49 -06:00
Senthil Ramakrishnan
ea30ed7a36
Fix for ARMc6 compiler errors
2019-02-01 17:46:50 -06:00
Lin Gao
85762a86b1
Update bootloader for ST disco board to fix FOTA
2019-02-01 15:32:44 -06:00
Naveen Kaje
08c9ae3927
targets: QUECTEL: Fix build warning
...
Fix the following warning seen when built with GCC_ARM with mbed-cli v1.8.3
$ mbed compile -c -t GCC_ARM -m K64F
<snip>
[Warning] QUECTEL_M26_CellularStack.cpp@364,9: variable 'sent_acked' set but not used [-Wunused-but-set-variable]
<snip>
2019-02-01 14:14:37 -06:00
Seppo Takalo
2744200cb7
Add NetworkInterface::attach() back, as it might be referred from binaries
2019-02-01 16:02:45 +02:00
Martin Kojtal
a0c4646e27
Merge pull request #9551 from theamirocohen/fix_gen_test_for_flashiap
...
Modify general blockdevice tests to run all storage components
2019-02-01 08:24:09 +01:00
Cruz Monrreal
695179bf21
Merge pull request #9471 from mtomczykmobica/ONME-3868
...
lwipstack: mem-size set to the to minimal working size with DTLS
2019-01-31 10:21:00 -06:00
Cruz Monrreal
66792b493e
Merge pull request #9445 from davidsaada/david_nvstore_fix_area_calc
...
NVStore: fix area calculation function
2019-01-31 10:20:44 -06:00
Oren Cohen
156d3b785b
Replace psa_prot_internal_storage.h with psa/internal_trusted_storage.h
2019-01-31 17:17:54 +02:00
Jaeden Amero
84ec1f7f1f
crypto: Update to Mbed Crypto 1.0.0d2
2019-01-31 17:17:52 +02:00
Seppo Takalo
06aea98f99
Call "new" instead of no-throw version and the MBED_ERROR.
...
Standard new operator already calls MBED_ERROR in failure.
2019-01-31 15:21:12 +02:00
Seppo Takalo
9c98d1572b
Allow multiple network status listeners
...
Allow more than one callback to be register to NetworkInterfaces.
This introduces new APIs:
void NetworkInterface::add_event_listener(...);
void NetworkInterface::remove_event_listener(...);
Which internally calls interfaces attach() functions.
2019-01-31 15:04:24 +02:00
Amir Cohen
a07f0fafaa
asyle issues
2019-01-31 14:40:33 +02:00
Amir Cohen
f1f60bf341
Modify general blockdevice tests to run all storage components
...
All tests will run for each storage component available on device excapt for test_get_type_functionality that will run once on the default blockdevice.
2019-01-31 14:36:37 +02:00
Ari Parkkila
47a8f24b1e
Cellular: Fix astyle
2019-01-31 04:15:01 -08:00
Martin Kojtal
a12ab30f98
Merge pull request #9414 from SeppoTakalo/ONME-4013
...
Clarify asynchronous Networkinterface::connect() and disconnect() API
2019-01-31 11:30:29 +01:00
Martin Kojtal
272bc14cde
Merge pull request #9546 from jarlamsa/mesh_api_fixes
...
Mesh api fixes
2019-01-31 11:19:55 +01:00
Martin Kojtal
94baadfc34
Merge pull request #9549 from paul-szczepanek-arm/fix-scan-timeout
...
BLE: fix missing scan timeout for 4.2 controllers using new API
2019-01-31 11:19:29 +01:00
Martin Kojtal
7c578cf2c6
Merge pull request #9527 from bridadan/remove_yotta_references
...
Remove yotta references within testing frameworks
2019-01-31 11:16:54 +01:00
Martin Kojtal
50b5f57c28
Merge pull request #9457 from blind-owl/fix_valgrind_defects_from_cellular
...
Fix valgrind defects from cellular
2019-01-31 11:12:00 +01:00
Martin Kojtal
1af3842b52
Merge pull request #9550 from michalpasztamobica/nanostack_double_connection_attempt
...
Prevent double attempt to connect mesh api
2019-01-31 11:08:37 +01:00
David Saada
48a3ae9636
FlashIAP driver: Add retries to erase and program operations.
...
Few boards may fail the write actions due to HW limitations (like critical
drivers that disable flash operations). Just retry a few times until success.
In addition, remove the redundant retries in NVStore (not needed now).
2019-01-30 16:05:27 +02:00
Michal Paszta
53a82faa5a
Prevent double attempt to connect mesh api
...
Socket network interface tests were failing due to DICONNECTED event
being advertised, where GLOBAL_UP was expected. It turned out that
nanostack receives two events: APPL_EVENT_CONNECT and
APPL_BACKHAUL_INTERFACE_PHY_UP. The second attempt to connect obviously
returns errors, but it also causes events to be sent out to the
application. The second attempt should not take place in case the
bootstrap is already started.
I also fixed two reports being sent with DISCONNECT status, while they
are actually something else.
2019-01-30 15:08:11 +02:00
paul-szczepanek-arm
d9c919b7e1
review fixes
2019-01-30 12:19:04 +00:00
paul-szczepanek-arm
e1a8fb5a7a
check scanning status first
2019-01-30 11:45:26 +00:00
paul-szczepanek-arm
7f888f86bf
scan timeout for 4.2 controllers using new API
2019-01-30 11:37:17 +00:00
Jarno Lamsa
740488d061
Set tasklet parameters before connecting
...
Set tasklet parameters before connecting to prevent the parameters to be set to 0.
The tasklet parameters are reset to 0 when wisun_tasklet_connect gets called,
thus those need to be set in the wisun_tasklet_configure_and_connect_to_network
before they are used. This is also done this way in other tasklets.
2019-01-30 13:06:17 +02:00
Jarno Lamsa
d7af9418da
Remove yotta-specific lines from .gitignore
2019-01-30 13:04:08 +02:00
Martin Kojtal
30070c6055
Merge pull request #9533 from mirelachirica/remove_obsolete_cellular_unittests
...
Cellular: Remove makefile and mbedignore refering to obsolete cellula…
2019-01-30 10:07:02 +01:00
Mirela Chirica
2bdfafc9fc
Cellular: Remove makefile and mbedignore refering to obsolete cellular unit tests
2019-01-29 13:23:39 +02:00
Kevin Bracey
983503f9ee
Mutex-protect mbedtls_hardware_poll
...
Like all HAL APIs, the calls in trng_api.h are not expected to
be thread-safe.
All current accesses to the TRNG HAL are currently via
`mbedtls_hardware_poll`. Mbed TLS does not currently serialise these
calls itself, as `MBEDTLS_THREADING_C` is not enabled. But even if
Mbed TLS's own accesses were serialised, there are other direct
users of `mbedtls_hardware_poll` such as randLIB, that need to use
direct calls due to lack of API to extract entropy from Mbed TLS.
As such it makes sense to treat `mbedtls_hardware_poll` as a de facto
public Mbed OS API, akin to the C++ veneers on top of the HAL, and add a
PlatformMutex there so that it is safe for multithreaded use.
2019-01-29 12:45:48 +02:00
Jaeden Amero
c3223072dc
crypto: Update to Mbed Crypto 1.0.0d1
2019-01-29 11:43:26 +02:00
Jaeden Amero
4a1584696c
crypto: importer: Update with fetch
...
Instead of doing a "pull --rebase" to update to the latest development
branch, do a "fetch" followed by a "checkout" to update to the specified
release. This enables us to get any new tags created since the last
update to the development branch, and removes the noise of updating a
local "development" branch.
2019-01-29 11:43:25 +02:00
Jaeden Amero
c74993bac4
crypto: Re-import Mbed Crypto 0.1.0b2
...
Use the Mbed-Crypto-specific importer script to re-import Mbed Crypto
0.1.0b2 to its new location.
2019-01-29 11:43:24 +02:00
Jaeden Amero
b5cf455bb7
tls/crypto: Make mbed-crypto importer independent
...
Obtain the version of Mbed Crypto to use not from the Mbed TLS
submodule, but independently through the Mbed Crypto importer instead.
2019-01-29 11:43:24 +02:00
Brian Daniels
4a0bb5b35d
Update utest README
2019-01-28 16:35:35 -06:00
Brian Daniels
1a9df4269b
Correct example given in greentea-client readme
2019-01-28 16:35:34 -06:00
Brian Daniels
b694a34873
Remove reference to yotta and mbed-drivers in greentea-client
2019-01-28 16:35:20 -06:00
Brian Daniels
96a71ce59a
Removing references to yotta and minar within utest
2019-01-28 16:31:20 -06:00
Cruz Monrreal
66cda8a8fe
Merge pull request #9499 from bridadan/remove_yotta_modules
...
Remove unused yotta module metadata
2019-01-28 10:37:30 -06:00
Cruz Monrreal
545d229ab1
Merge pull request #9497 from ARMmbed/AnotherButler-patch-2
...
Remove yotta from README.md
2019-01-28 10:36:36 -06:00
Cruz Monrreal
f5730a91b2
Merge pull request #9474 from VeijoPesonen/fix-newlines_at_end-of-files
...
Fix newlines at end of files
2019-01-28 10:33:37 -06:00
Cruz Monrreal
b49d949b50
Merge pull request #9393 from pan-/fix-safe-enum-type-safety
...
BLE: Fix SafeEnum type safety
2019-01-28 10:31:52 -06:00
Ari Parkkila
52ee61e1ae
Fix NetworkInterface::set_default_parameters binary compatibility
2019-01-28 03:27:10 -08:00
Martin Kojtal
0bc9bcc0ed
Merge pull request #9498 from ARMmbed/AnotherButler-patch-3
...
Remove outdated text and fix spelling in README.md
2019-01-28 11:05:15 +01:00
Amanda Butler
36438a1d70
Remove outdated content from README.md
...
Remove requested outdated content, and update TOC to reflect changes.
2019-01-25 09:57:19 -06:00
Jimmy Brisson
06ea053419
Minor fixes
2019-01-25 09:42:47 -06:00
Ari Parkkila
95839662c6
Cellular: Fix cellular specific Greentea tests
2019-01-24 23:34:44 -08:00
Jan Jongboom
ca987568d8
TCPSocket.cpp setting socket should terminate with semicolon
2019-01-24 14:25:34 -08:00
Amanda Butler
8b35bbc5b5
Remove .json blob from README.md
...
Make change suggested in comments.
2019-01-24 15:54:02 -06:00
Brian Daniels
99d6145cf3
Update features/frameworks/greentea-client/README.md
...
Co-Authored-By: AnotherButler <Amanda.Butler@arm.com>
2019-01-24 15:53:01 -06:00
Brian Daniels
ee5281abef
Remove unused yotta module metadata
2019-01-24 15:30:20 -06:00
Amanda Butler
25bb0d23c5
Remove outdated text and fix spelling in README.md
...
Remove reference to yotta, and fix spelling for correct branding.
2019-01-24 15:29:09 -06:00
Amanda Butler
39851e4c18
Remove yotta from README.md
...
Remove all references to yotta.md
2019-01-24 15:25:30 -06:00
Cruz Monrreal
e241b13865
Merge pull request #9452 from RonEld/crypto_platform_ranaming
...
Crypto platform renaming
2019-01-24 13:27:12 -06:00
David Saada
765b48336f
NVStore: fix area calculation function
...
Don't allocate the sector map array in this function,
as it was buggy and redundant. Separate user config vs. automatic allocation
cases instead (which was essentially the case anyway).
In addition, fix tests to get over failures in low end boards
2019-01-24 16:16:56 +02:00
Cruz Monrreal
b0b4013dde
Merge pull request #9302 from yossi2le/yossi_add_trng_checkup_devicekey
...
Add TRNG checkup in devicekey
2019-01-23 22:47:08 -06:00
Veijo Pesonen
a6d4c6b609
L3IPInterface: make inheriting virtual explicit
2019-01-23 17:04:42 +02:00
Veijo Pesonen
293b0189d2
Adds newlines to avoid compiler warnings
2019-01-23 16:44:16 +02:00
Veijo Pesonen
8f786a0450
Adds newlines to avoid compiler warnings
2019-01-23 16:43:45 +02:00
Veijo Pesonen
9f3830aa72
Adds newlines to avoid compiler warnings
2019-01-23 16:43:32 +02:00
Marcin Tomczyk
5e28c1eb56
ONME-3868, Modiefie mem-size parameter to minimal size that work with DTLS
2019-01-23 14:29:48 +01:00
Martin Kojtal
2cd83b45a4
Merge pull request #9392 from michalpasztamobica/tlssocket_documentation_update
...
Documentation of TLSSocket behavior on AUTH_FAILURE
2019-01-23 14:20:43 +01:00
Jari Poyhonen
84536bd09e
cellular ATHandler update due valgrind run
2019-01-23 09:43:03 +02:00
Martin Kojtal
f128891fc0
Merge pull request #9397 from yossi2le/fix_default_storage_type
...
Fixing folder path for KVStore FILESYSTEM configuration.
2019-01-22 13:35:52 +01:00
Ron Eldor
cad40e1633
Rename the platform context varaiable
...
Rename the generic name `ctx` of `mbedtls_platform_context`
in `platform_alt.c` to a specific name `plat_ctx`, to avoid conflicts
when used as external in crypto modules.
2019-01-22 13:57:32 +02:00
Ron Eldor
4ea68829c5
Rename the platform specific crypto_platform
...
To avoid collisions between the psa `crypto_platform.h` file and the
platform specific `crypto_platform.h` file, for the init \ terminate
functions, rename the latter to `crypto_device_platform`.
2019-01-22 13:56:59 +02:00
Michal Paszta
2cda5d28b8
Documentation of TLSSocket behavior on AUTH_FAILURE
2019-01-22 12:40:42 +01:00