Commit Graph

233 Commits (08bd651ae4666420c38ff497c480788ea181918d)

Author SHA1 Message Date
Veijo Pesonen 12fa3e59bb Fixes AT command timeout values from reset&connect 2018-12-11 09:49:23 +02:00
Veijo Pesonen 9857ee1c17 [ESP8266] Adds support for controlling HW reset of the modem from the driver
While connecting will run HW reset for the modem if reset wire is attached to a know pin.
2018-12-11 09:49:23 +02:00
Fred.Li fb1e4de3ba
Fix wrong PIN config for RTL8195AM platform
Merge from https://github.com/ARMmbed/sd-driver/pull/110
2018-12-11 14:37:09 +08:00
Cruz Monrreal 61ade84447
Merge pull request #8875 from deepikabhavnani/fix_components
Add dependency checks to components
2018-12-10 19:20:30 -06:00
Martin Kojtal 8301325481
Merge pull request #8935 from kfnta/crypto_partition_fix
Fix PSA crypto partition and tests
2018-12-06 11:34:45 +01:00
Martin Kojtal be817bab44
Merge pull request #8853 from VeijoPesonen/feature-esp8266_reconnect2
Reports NSAPI_STATUS_CONNECTING when trying to reconnect
2018-12-05 10:37:17 +01:00
Cruz Monrreal b03a8a37bb
Merge pull request #8947 from SeppoTakalo/patch-1
ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
2018-12-04 12:23:16 -06:00
Cruz Monrreal 0b1b8e0cc3
Merge pull request #8908 from kfnta/alzix_fix_its
Fix PSA internal storage configuration
2018-12-04 11:51:04 -06:00
Oren Cohen fa5c96c857 Fix includes 2018-12-04 18:37:47 +02:00
Oren Cohen c3bd6f12d2 Fix PSA crypto partiotion and tests
* Styling
* Correct error codes on failing connection
* Add panics where needed
* correct skip defines
* Fix psa_spm_init_refence_counter bug
2018-12-04 17:07:28 +02:00
Martin Kojtal 6edc81ddae
Merge pull request #8873 from kfnta/psa_spm_docs
PSA-SPM documentation follow-up
2018-12-04 15:38:45 +01:00
Martin Kojtal e02a8ab2f1
Merge pull request #8925 from Patater/crypto-storage-config-fixes
Fix PSA storage typo
2018-12-04 14:34:15 +01:00
Alexander Zilberkant 44ec2aa49a Better PID handling
PSA PID is of int32_t type - use native type during the whole flow for better readability.
Convert PID to unsigned for calculations only.
Add dedicated inline function for logic shift right.
2018-12-04 14:08:14 +02:00
Alexander Zilberkant 9f7752b1f9 Replace PID and UID order in file name
PID should come first to create - to prevent timing attacks. Each partition can only request its own files. Thus starting lookup from the PID makes more sence.
2018-12-04 14:08:14 +02:00
Alexander Zilberkant e7df8583d6 Optimize error handling 2018-12-04 14:08:14 +02:00
Alexander Zilberkant 9d59ed8c60 Fix PSA internal storage misconfiguration
Use internal TDBStore instance instead of default one
2018-12-04 14:08:14 +02:00
Martin Kojtal 6ae3501a66 spm spe: remove space 2018-12-04 11:50:14 +00:00
Mel W 56e3dd9a7f
Grammatical and capitalization changes 2018-12-04 13:03:21 +02:00
Seppo Takalo c384119576 ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
2018-12-04 10:27:17 +02:00
Martin Kojtal b52c164028
Merge pull request #8911 from c1728p9/esp8266_flow_control_fix
Fix ESP8266 recv_udp timeout with flow control
2018-12-03 13:41:23 +01:00
Martin Kojtal 0d0740f17e
Merge pull request #8890 from michalpasztamobica/esp8266_disconnect_no_connection
ESP8266 disconnect returns ERROR_NO_CONNECTION
2018-12-03 13:40:54 +01:00
Martin Kojtal bf36ff77c1
Merge pull request #8855 from michalpasztamobica/warnings_fix
Fix compilation warnings (apart from nanostack)
2018-12-03 13:31:55 +01:00
Martin Kojtal c62f654da1
Merge pull request #8843 from miyuki/fix-cxx11
Fix C++11 build with Arm Compiler 6
2018-12-03 13:22:11 +01:00
Martin Kojtal acbde4e0b6
Merge pull request #8841 from VeijoPesonen/bugfix-restrict_send_size2
Bugfix restrict send size; namespace fixes; ATCmdParser::read return value fix
2018-12-03 13:21:34 +01:00
Deepika 76220fa89c Add Serial + EventQueue dependency to ESP8266 2018-11-30 15:38:28 -06:00
Jaeden Amero 6de7c184d7 psa: storage: Fix PSA_PS_ERROR_OFFSET typo
Correct typo of PSA_PS_ERROR_OFFSET to PSA_ITS_ERROR_OFFSET.
2018-11-30 15:36:22 +00:00
Russ Butler 53ed3f5c3d Fix ESP8266 recv_udp timeout with flow control
UDP packets are always received as OOB data. Without checking for
new OOB data with a call to "_process_oob" then recv_udp never blocks.
If a UDP packet is not available then NSAPI_ERROR_WOULD_BLOCK is
returned. This causes mbed-os's DNS handling to always fail when
flow control is enabled.

This patch fixes recv_udp by always calling "_process_oob" regardless
of if flow control is enabled. This ensures that recv_udp follows the
timeout parameter and waits for new data to arrive.
2018-11-29 19:13:37 -06:00
Oren Cohen 549d24f213 More fixes by Melinda 2018-11-28 14:52:40 +02:00
Oren Cohen 01301387f8 Run SPM code generator 2018-11-28 14:40:01 +02:00
Oren Cohen 45bd4f305a Add SPM code generation test to Travis-CI 2018-11-28 14:38:44 +02:00
Michal Paszta eb9c688574 ESP8266 disconnect returns ERROR_NO_CONNECTION 2018-11-28 11:23:09 +01:00
Oren Cohen 6ec5144e0c Melinda's remarks 2018-11-28 12:17:37 +02:00
Oren Cohen 3629e002ee Fix PSA-SPM Documentation 2018-11-28 12:17:36 +02:00
Martin Kojtal e62abd8aee
Merge pull request #8804 from mohammad1603/inject_entropy_spm
PSA Crypto SPM
2018-11-28 09:40:31 +01:00
Deepika b32c6ba2a5 Components if using RTOS modules should be enabled only when RTOS is present
Build failures were observed when rtos is ignored with .mbedignored.
Components dependent on RTOS should be guarded with MBED_CONF_RTOS_PRESENT
2018-11-27 13:55:59 -06:00
Deepika 6c6ef87c19 Fix header files used in esp8266
"ns_types.h" results in build failure when networking feature is ignored with
.mbedignored. ESP8266 component should be enabled only when NSAPI is present.
2018-11-27 13:55:59 -06:00
Deepika 74ad47b269 Fix header files used in 802.15.4_RF
"ns_types.h" is not used, but included. Results in build failure when networking
feature is ignored with .mbedignored

"mbed_trace.h" not used.
2018-11-27 13:55:59 -06:00
Martin Kojtal e69aa15aea
Merge pull request #8744 from kfnta/psa_spm_base
PSA Secure partition manager and services
2018-11-27 15:26:38 +01:00
mohammad1603 6e862cf112 Fix psa_crypto_generator_init implementation to use the init define macro 2018-11-27 11:56:59 +02:00
mohammad1603 88f4f48fac Astyle fixes for the source
Used running: astyle -n --options=.astylerc
2018-11-27 11:56:57 +02:00
Mohammad AboMokh 5c2cf07780 Revert file permission change 2018-11-27 11:56:56 +02:00
Mohammad AboMokh 1d4b6a4e89 Return invalid argument error in case of zero or negative handle for generators 2018-11-27 11:56:55 +02:00
Mohammad AboMokh 79d957ac7b Change PSA_MAX_NONCE_SIZE to PSA_AEAD_MAX_NONCE_SIZE 2018-11-27 11:56:54 +02:00
Mohammad AboMokh ba47b450aa Remove unnecessary define 2018-11-27 11:56:54 +02:00
Mohammad AboMokh 7776fea903 Remove unneeded includes 2018-11-27 11:56:53 +02:00
Netanel Gonen 352bac3b26 Crypto SPM - fix - PART1
Fail fast on invalid handles before calling to SPM
2018-11-27 11:56:52 +02:00
Netanel Gonen bab6116f31 compilation fix 2018-11-27 11:56:51 +02:00
Mohammad AboMokh a4c498e02a Integrate psa_key_agreement() with SPM code 2018-11-27 11:56:50 +02:00
Netanel Gonen 59c3c9fff7 crypto init with multiple client guard & tests 2018-11-27 11:56:48 +02:00
Netanel Gonen 7f49fd2b09 Fix memory leak if user does not calls abort. call abort when connection is closed 2018-11-27 11:56:46 +02:00
Netanel Gonen 58f92c3266 remove execute permissions from file 2018-11-27 11:56:45 +02:00
Mohammad AboMokh 54cd8bf51f Change behavior realted to MBEDTLS_ENTROPY_NV_SEED and MBEDTLS_PSA_HAS_ITS_IO flags
* mbedtls_psa_inject_entropy() MUST be always available for client side.
* Partition will return PSA_ERROR_NOT_SUPPPORTED in case where MBEDTLS_ENTROPY_NV_SEED or MBEDTLS_PSA_HAS_ITS_IO flags are not defined
2018-11-27 11:56:40 +02:00
Mohammad AboMokh fb88cb4cb5 Add missing guards 2018-11-27 11:56:38 +02:00
Mohammad AboMokh 587fdbb447 Remove crypto init that was not called by the user 2018-11-27 11:56:32 +02:00
Mohammad AboMokh bd47a8c2b8 Add entropy inject to spm 2018-11-27 11:56:30 +02:00
Oren Cohen f4581faab0 Create a new partition for the crypto service
The following files initially were taken
from https://github.com/ARMmbed/psa-crypto-spm/releases/tag/spm-crypto-5.11
* crypto_platform_spe.h
* crypto_struct.h
* crypto_struct_ipc.h
* psa_crypto_spm.c
* crypto_spe.h
* crypto_partition_psa.json

The rest of the files were autimatically generated
by tools/spm/generate_psa_partition.py
2018-11-27 11:56:29 +02:00
Alexander Zilberkant ed8505ae64 Update components/TARGET_PSA/spm/psa_defs.h
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2018-11-27 09:16:48 +02:00
Amanda Butler ba6fdcf494 Edit psa_defs.h
Make minor edits, mostly for consistent abbreviations.
2018-11-27 09:16:48 +02:00
Amanda Butler b87ab2511b Edit spm_server.h
Make minor edits, mostly for consistent capitalization and style.
2018-11-27 09:16:47 +02:00
Amanda Butler 25239a4a9d Edit spm_client.h
Make minor copy edits, mostly for punctuation and style.
2018-11-27 09:16:47 +02:00
Oren Cohen 5455a2da59 Astyle fixes 2018-11-27 09:16:46 +02:00
Alexander Zilberkant 8501e79e93 spm_init.h add function docs 2018-11-27 09:16:46 +02:00
Alexander Zilberkant 628ef9b28d spm_internal.h - add missing function docs 2018-11-27 09:16:46 +02:00
Oren Cohen 773ac8dd95 CR fixes 2018-11-27 09:16:45 +02:00
Alexander Zilberkant 2b9f94a0ad Remove dead code 2018-11-27 09:16:45 +02:00
Alexander Zilberkant 1a33ae527d Handle manager documentation fix
Move function description to header files

Note: it is not in Doxygen format since it is an internal module and
        Doxygen should not be generated for it
2018-11-27 09:16:44 +02:00
Oren Cohen 1e27eb1c77 Remove SPM negative tests 2018-11-27 09:16:43 +02:00
Oren Cohen 6cd4f7789f Add Version to SPM templates and generator 2018-11-27 09:16:43 +02:00
Alexander Zilberkant 4a391d3297 Remove internal RTX includes 2018-11-27 09:16:42 +02:00
Alexander Zilberkant ecd556b354 Generate better magic numbers 2018-11-27 09:16:41 +02:00
Oren Cohen 940645077e Coverity bug fixes 2018-11-27 09:16:41 +02:00
Alexander Zilberkant 9cc017fd48 Normalize license headers
- add SPDX license identifier
- add missing license headers
- update year in license headers
2018-11-27 09:16:40 +02:00
Alexander Zilberkant aea01a86f6 astyle changes 2018-11-27 09:16:38 +02:00
Oren Cohen dd73fa689c PSA SPM
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
deepikabhavnani da69da972f Add BlockDevice and Filesystem classes inside mbed namespace.
Adding new modules inside the namespace could be breaking change for existing code base
hence add `using namespace::class` for classes newly added to mbed namespace to maintian
backwards compatibility.

MBED_NO_GLOBAL_USING_DIRECTIVE is added to remove auto-addition of namespace
Macro guard `MBED_NO_GLOBAL_USING_DIRECTIVE` is added around namespace, to avoid
polluting users namespace.
2018-11-26 13:35:40 -06:00
Michal Paszta e101943cce Fix compilation warnings (apart from nanostack) 2018-11-26 14:27:48 +01:00
Mikhail Maltsev 5c351dc6ae Fix C++11 build with Arm Compiler 6
Currently there are two issues which prevent building Mbed OS with
-std=gnu++11 when using Arm Compiler 6:
* NanostackRfPhys2lp.cpp contains a narrowing conversion in a braced
  initializer list
* ns_types.h includes <stdalign.h> which Arm Compiler 6 currently
  does not provide

This patch fixes both issues. The first one is fixed by changing the
underlying type of the corresponding enumeration when the code is
compiled as C++11. The second issue is worked around by avoiding the
use of <stdalign.h> header for Arm Compiler versions prior to 6.12.
2018-11-26 12:54:51 +00:00
Martin Kojtal fdca1e3578
Merge pull request #8730 from kfnta/its_kvstore_single_core
Add a new PSA Internal Trusted Storage APIs
2018-11-26 11:54:08 +01:00
Alexander Zilberkant 9b13e240c3 Add SPDX license identifier 2018-11-25 09:57:23 +02:00
Alexander Zilberkant 9fa1f5a3d5 astyle changes 2018-11-25 09:57:22 +02:00
Danny Shavit 53728e45b7 Add a new PSA Internal Trusted Storage APIs 2018-11-25 09:57:22 +02:00
Veijo Pesonen e0924532e7 Reports NSAPI_STATUS_CONNECTING when trying to reconnect 2018-11-23 12:56:02 +02:00
Veijo Pesonen fefef0d855 Truncates TCP stream and NACKs UDP datagram when sending too much data
ESP8266 maximum packet size when sending is 2048 bytes.
2018-11-23 12:22:20 +02:00
Veijo Pesonen c0f9e65af6 Fixes return value check when calling ATCmdParser::read() 2018-11-22 15:57:46 +02:00
Veijo Pesonen 95511bc7eb Dropping duplicate "using namespace mbed;" 2018-11-22 15:57:33 +02:00
Veijo Pesonen 1f4a1af6ed Truncates data to be send to modem to 2048 bytes 2018-11-22 15:57:21 +02:00
Veijo Pesonen f54b25073c Drops std:: because string.h is included 2018-11-22 15:56:59 +02:00
Jarkko Paso 04c9283bf3 S2-LP: Cleaned thread deprecation warnings
- Sniffer mode
- RX buffer overflow fix
- Updated read register function
2018-11-22 15:19:39 +02:00
Martin Kojtal ab1a723611
Merge pull request #8689 from VeijoPesonen/esp8266-driver_v1.7
Add ESP8266 driver v1.7
2018-11-22 10:46:23 +01:00
Martin Kojtal 6d6c09bb80 blockdevice: fix coding style 2018-11-15 07:20:13 +00:00
Martin Kojtal 7d7bfd7bf2 blockdevice: fix components coding style 2018-11-15 07:20:09 +00:00
Veijo Pesonen 934472be1d esp8266 driver - don't set UART flow control if no support 2018-11-09 16:03:41 +02:00
Veijo Pesonen 8dd6a5d039 Add ESP8266 driver v1.7 2018-11-09 14:49:48 +02:00
Cruz Monrreal 72253b7b06
Merge pull request #8573 from deepikabhavnani/flag_Crc
Compile time config flag MBED_CONF_SD_CRC_ENABLED for CRC in SD
2018-11-08 19:49:03 -06:00
Cruz Monrreal 3046e31349
Merge pull request #8589 from davidsaada/david_flash_erase_value
Support erase value in Flash HAL drivers, FlashIAP and block devices
2018-11-08 10:06:58 -06:00
Cruz Monrreal 760b0740a9
Merge pull request #8602 from artokin/sync_rf_drivers
Sync 802.15.4 RF drivers
2018-11-08 10:06:27 -06:00
Martin Kojtal 14eadfac44
Merge pull request #8653 from u-blox/r410m_sdcard
mbed_lib.json updated for other all C030 targets and code corrected t…
2018-11-08 14:54:58 +01:00
David Saada 542744d03c Support erase value in Flash HAL drivers, FlashIAP and block devices 2018-11-07 14:23:07 +02:00
Cruz Monrreal II fd744e79d9 Merge branch 'sdblockdevice_deselect' of ssh://github.com/jarlamsa/mbed-os into rollup 2018-11-06 21:29:09 -06:00
Cruz Monrreal 6042ea30d3
Merge pull request #8639 from offirko/offir-mbed-qspif3
Add get_erase_value() support
2018-11-06 14:44:25 -06:00