Commit Graph

6044 Commits (3ab36cb93412c39b9bf7cd69c7fe8845f9294405)

Author SHA1 Message Date
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