itayzafrir
672712ca8a
Add SPM_PANIC macro for TARGET_TFM
2019-02-24 15:07:54 +02:00
itayzafrir
99032f6967
Change PSA_CRYPTO_ACCESS_CONTROL_RESET into static inline function
2019-02-24 15:07:54 +02:00
itayzafrir
0ecd2c5da1
crypto service: Crypto access control
...
Implement crypto keys access control in crypto service:
- Only the key owner (the partition which created the key)
is allowed to manage (import/export/open/close/destroy/etc.)
the key.
- Only the key owner (the partition which created the key)
is allowed to use the key handle for crypto operations which
require a key handle.
2019-02-24 15:07:54 +02:00
Nir Sonnenschein
84b618704b
fix comment issues
2019-02-24 14:32:36 +02:00
Nir Sonnenschein
ffaf083b75
a-style fixes for code
2019-02-24 14:25:25 +02:00
Netanel Gonen
165719d11f
return the new values for key type & size even if function fails
2019-02-24 11:24:12 +02: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
Cruz Monrreal
497d0d65c3
Merge pull request #9802 from orenc17/patch-2
...
Fix psa_system_reset() on PSA IPC platform
2019-02-21 17:31:11 -06: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
Oren Cohen
922cdeab82
Update crypto IPC handling of negative errors
2019-02-21 20:59:18 +02: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
Oren Cohen
6b68bf7fdf
Fix psa_system_reset on PSA IPC platform
2019-02-21 19:50:02 +02:00
Michael Schwarcz
d2c433ccfe
TFM Importer: Update SHAa of TFM patches
2019-02-21 17:42:56 +02:00
Oren Cohen
8800ad5c80
TFM: Add defines to mbed_lib.json
2019-02-21 17:38:30 +02:00
Michael Schwarcz
6354b9a473
TF-M patch: More fixes to tfm_memory_check issue (TF-M issue #224 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T224
2019-02-21 17:38:30 +02:00
Cruz Monrreal
813c844fb4
Merge pull request #9745 from moranpeker/psa_security_lifecycle
...
Fix incorrect return value in psa_security_lifecycle_state (emul)
2019-02-20 12:12:56 -06:00
Martin Kojtal
ad2cb910f9
Merge pull request #9503 from VeijoPesonen/feature-esp8266_oob_handling_by_sigio
...
ESP8266: OOB handling done based on arrival of SIGIOs
2019-02-20 09:35:29 +01:00
Cruz Monrreal
9f6ee7db66
Merge pull request #9754 from netanelgonen/SPM_return_value
...
Fix SPM returning the wrong value
2019-02-19 15:29:48 -06:00
Cruz Monrreal
4c04771c5d
Merge pull request #9653 from kfnta/tfm_src_integ
...
TF-M sources integration to Mbed-OS
2019-02-19 15:28:44 -06:00
Cruz Monrreal
19474fcab1
Merge pull request #9617 from kjbracey-arm/spe_atomics
...
SPE: Fix up atomic usage
2019-02-19 15:27:54 -06:00
Michael Schwarcz
6a90da42fa
Add BSD3-clause license file to TF-M folder
2019-02-19 16:29:28 +02:00
Nir Sonnenschein
4a4af57c22
allow calling hash or mac on large buffers without large memory allocation
...
use a fixed size buffer for large inputs to process the input
in multiple smaller pieces.
2019-02-19 15:49:52 +02:00
Michael Schwarcz
9e33f0d8cd
Re-generate TF-M partition files
2019-02-19 15:19:07 +02:00
Alexander Zilberkant
0ba963acfc
Adding TF-M integration guide
2019-02-19 15:19:05 +02:00
Michael Schwarcz
cf3fd858ad
Align existing partitions to work with TF-M
...
- ITS
- Crypto
- Platform
2019-02-19 15:19:01 +02:00
Edison Ai
67a4e6d723
TF-M patch: Fix psa_set_rhandle() issue during CONNECT (TF-M issue #216 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T216
2019-02-19 15:19:00 +02:00
Michael Schwarcz
008bf1b2d1
TF-M patch: Fix wrong check in tfm_spm_check_client_version (TF-M issue #236 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T236
2019-02-19 15:19:00 +02:00
Michael Schwarcz
da01e3411f
TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T241
2019-02-19 15:18:59 +02:00
Michael Schwarcz
011fa28110
TF-M patch: Fix tfm_memory_check issue (TF-M issue #224 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T224
2019-02-19 15:18:59 +02:00
Michael Schwarcz
fc78640559
TF-M patch: Fix fixed-size partitions stack size (TF-M issue #240 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T240
2019-02-19 15:18:58 +02:00
Michael Schwarcz
0c23e86989
TF-M patch: Fix service handles not cleared issue (TF-M issue #230 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T230
2019-02-19 15:18:58 +02:00
Michael Schwarcz
5f2e4b3911
TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239 )
...
- Link to bug tracking: https://developer.trustedfirmware.org/T239
2019-02-19 15:18:57 +02:00
Michael Schwarcz
1f30b52488
TF-M patch: General modifications
...
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef
2019-02-19 15:18:57 +02:00
Michael Schwarcz
8e62826991
Add mbed_lib.json to TF-M SPE
2019-02-19 15:18:56 +02:00
Michael Schwarcz
9277d0f586
Generate partition files
2019-02-19 15:18:56 +02:00
Michael Schwarcz
73ea7ca4c4
[trusted-firmware-m]: Updated to 45e5276
2019-02-19 15:18:55 +02:00
Netanel Gonen
1a87f24955
support in more types then just RSA_KEYPAIR
...
if the type is not supported the psa_crypto will return the error code
for unsupported
2019-02-19 14:47:11 +02:00
Netanel Gonen
d0dae03d01
Fix SPM returning the wrong value
2019-02-19 12:56:41 +02:00
Martin Kojtal
1892e2dd8e
Merge pull request #9741 from michalpasztamobica/esp8266_fix_nonblocking_connect
...
ESP8266: connect() returns OK in non-blocking calls
2019-02-18 13:22:19 +01:00
Veijo Pesonen
d6701c36a3
ESP8266: does OOB handling based on SIGIO and not on a certain interval
2019-02-18 12:39:16 +02:00
Moran Peker
fb9ae2faae
Fix incorrect return value in psa_security_lifecycle_state (emul)
...
psa_security_lifecycle_state should return uint32_t of the security
lifecycle state.
bug: psa_platfrom_lifecycle_get_impl return value
is psa_status_t.
2019-02-17 14:28:53 +02:00
Cruz Monrreal
7dbe541251
Merge pull request #9473 from VeijoPesonen/feature-esp8266_reset_handling
...
ESP8266: treats reset-ready-message as OOB
2019-02-15 12:29:51 -06:00
Michal Paszta
32686d48a8
ESP8266: connect() returns OK in non-blocking calls
2019-02-15 17:33:21 +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
Veijo Pesonen
cbbe2ff55e
ESP8266: retry reset attempt once in failure
2019-02-14 11:08:37 +02:00
Veijo Pesonen
2d6b63d5a2
ESP8266: prevents doing reset twice in a row, unnecessary
2019-02-14 11:08:36 +02:00
Veijo Pesonen
706dd39569
ESP8266: protects setting UART HW flow control with a mutex
2019-02-14 10:41:04 +02:00
Veijo Pesonen
108ec44b66
ESP8266: fixes UART HW flow control enabling sequence
2019-02-14 10:41:04 +02:00
Veijo Pesonen
71e5321f0f
ESP8266: fixes network status refresh procedure
2019-02-14 10:41:04 +02:00
Veijo Pesonen
876a397101
ESP8266: handles reset ready as OOB
...
Makes possible to recover from spurious resets addiotionally to planned
ones.
2019-02-14 10:41:04 +02:00
Cruz Monrreal
f2abdcbcc6
Merge pull request #9639 from michalpasztamobica/esp8266_connect_timeout
...
ESP8266: connect() checks errors from ESP chip
2019-02-13 20:00:37 -06:00
Oren Cohen
b5e8492458
Add PSA mbed-lib.json
2019-02-13 20:36:01 +02:00
Oren Cohen
45c44eb07c
Fix dependencies of platform partition
2019-02-13 17:10:12 +02:00
Michal Paszta
6a184da381
ESP8266: connect() can handle ESP's errors.
...
ESP8266Interface::connect() checks the exact return value from
the underlying ESP8266::connect() call.
Increased timeout for network-wifi greentea tests to 6 minutes.
2019-02-11 17:20:14 +02:00
offirko
be1c887477
Ensure unique block address for multi threaded test.
...
The addresses dont have to change each run, just be unique.
Because address seeds repeat themselves each run, rand() will
produce repeating results that should not collide between
different threads.
2019-02-11 14:41:41 +02:00
Kevin Bracey
a3e7a6d85a
SPE: Fix up atomic usage
...
PSA SPE code was using atomics, but not consistently. On the assumption
that the atomics are needed, correct the code to be properly atomic.
* Tighten up table full case - new_handle was left with a bogus value,
and surrounding code (as a result?) used loop index to assert success.
Make handle the sole output of the loop, and correct and use it.
* Ensure handle in table is cleared last, with atomic store to release.
* Make skipping of the invalid handle in handle generator loop atomic.
* Use atomic load on state assert, and don't re-read on failure.
* Tighten up types, and avoid casts by using new signed atomics.
2019-02-05 16:03:25 +02: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
f1bf5dbd63
Merge pull request #9520 from VeijoPesonen/bugfix-esp8266_reduce_sigio
...
ESP8266: reduces SIGIO signaled to the upper layers
2019-02-01 08:23:35 +01:00
Oren Cohen
c11904e097
Fix compilation for single v7 platforms
2019-01-31 21:26:47 +02:00
Cruz Monrreal
b506b03055
Merge pull request #9456 from VeijoPesonen/feature-esp8266_mbed_error_if_wdt
...
ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered
2019-01-31 10:51:38 -06:00
Oren Cohen
27cfacec5c
Remove demand for MBED_SPM on single v7 platforms
2019-01-31 18:36:18 +02:00
Cruz Monrreal
ffc52e6a5e
Merge pull request #9478 from deepikabhavnani/refactor_sd
...
Refactor storage components
2019-01-31 10:21:38 -06:00
Cruz Monrreal
39d46280e2
Merge pull request #9475 from davidsaada/david_flashiap_no_default
...
FlashIAP Block device: Assert if default constructor is used without setting config parameters
2019-01-31 10:21:20 -06:00
itayzafrir
b7b85516cb
crypto service: Add documentation
2019-01-31 17:17:58 +02:00
Oren Cohen
ea9f104463
Fix Licenses
2019-01-31 17:17:58 +02:00
Oren Cohen
5d448d758c
Astyle
2019-01-31 17:17:57 +02:00
Oren Cohen
20478ba654
Last update
2019-01-31 17:17:57 +02:00
Oren Cohen
b0cbe815ec
Regenerate SPM data
2019-01-31 17:17:57 +02:00
Oren Cohen
98707d047b
Fix Typo
2019-01-31 17:17:57 +02:00
Oren Cohen
47365d4620
Update ITS test
2019-01-31 17:17:56 +02:00
Alexander Zilberkant
95f8dbce7b
Add new platform partition
2019-01-31 17:17:56 +02:00
Oren Cohen
cae1ebf33d
Add new ITS reset SID
...
Only accessible from SPE
2019-01-31 17:17:55 +02:00
Oren Cohen
156d3b785b
Replace psa_prot_internal_storage.h with psa/internal_trusted_storage.h
2019-01-31 17:17:54 +02:00
Oren Cohen
642fce5022
ITS 1.0
2019-01-31 17:17:54 +02:00
Oren Cohen
34895a05ad
CR fixes
2019-01-31 17:17:54 +02:00
Oren Cohen
8841ba69f8
Align to new spec changes and prep for TFM SPM
...
# Conflicts:
# components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c
# components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c
2019-01-31 17:17:53 +02:00
Oren Cohen
b08c0e2361
Create new PSA compliant headers
2019-01-31 17:17:52 +02:00
Oren Cohen
99b8eafc35
Align with PSA spec
...
* psa_error_t -> psa_status_t
* psa_invec_t -> psa_invec
* psa_outvec_t -> psa_outvec
* Use new PSA headers
2019-01-31 17:16:41 +02:00
deepikabhavnani
2952735ac0
Moved util (common test folder) inside the TESTS directory
...
Util was common test folder, which was kept outside as we had
no mechanism to have common files for various tests in tools.
Now same can be achieved by having COMMON folder inside tests
directory
2019-01-30 16:51:05 -06:00
deepikabhavnani
0d6bd2798f
Moved `mbed_lib.json` outside config folder
...
This is to have consistency across all storage components
2019-01-30 16:51:05 -06:00
Veijo Pesonen
53c2879a5c
ESP8266: makes guarding variable for deferring events atomic
2019-01-30 17:00:56 +02:00
Veijo Pesonen
7d3621dae4
ESP8266: reduces SIGIO signaled to the upper layers
2019-01-30 17:00:56 +02:00
Martin Kojtal
a4ed473afc
Merge pull request #9515 from VeijoPesonen/bugfix-tests-netsocket-udp_udpsocket_sendto_invalid
...
tests-netsocket-udp UDPSOCKET_SENDTO_INVALID allow unsupported empty UDP packet
2019-01-30 10:08:34 +01:00
Martin Kojtal
88d7ef155b
Merge pull request #9531 from theamirocohen/remove_flashiap_tests
...
Remove COMPONENT_FLASHIAP tests
2019-01-30 09:57:35 +01:00
Martin Kojtal
1031e2d464
Merge pull request #9236 from jeromecoutant/PR_SD_TEST
...
COMPONENT_SD tests update for small RAM targets
2019-01-30 09:54:41 +01:00
Amir Cohen
35df2de703
Remove COMPONENT_FLASHIAP tests
...
FlashIAPBlockDevice LittleFS ‘fopen’ falls on nightly tests
LittleFS test on FlashIAP is not relevant and thus removed
2019-01-29 13:54:40 +02:00
itayzafrir
861fb0cbf0
crypto service: Implement function psa_hash_clone over IPC
2019-01-29 11:43:27 +02:00
itayzafrir
81a4ff6425
crypto service: Implement IPC according to Mbed Crypto 1.0.0d1 API
...
1. Removed obsolete crypto APIs from IPC implementation.
2. Updated existing crypto APIs in IPC implementation.
3. Added new crypto APIs to IPC implemntation (except for psa_hash_clone).
2019-01-29 11:43:27 +02:00
Veijo Pesonen
d712568b8f
ESP8266: with empty packet send returns zero if TCP, unsupported otherwise
2019-01-28 13:46:48 +02:00
Cruz Monrreal
1b1c108528
Merge pull request #9484 from offirko/offir_test_fopen_fixes
...
Start Component SD test by formatting SD Card
2019-01-24 13:28:33 -06:00
Cruz Monrreal
7c4668cfe9
Merge pull request #9291 from j3hill/QSPI_Align
...
NRF5x: QSPI SFDP read, min read/write implementation
2019-01-24 13:25:05 -06:00
offirko
0bf071809c
Start test by formatting SD Card, otherwise FATFS mount might fail
...
Fix Jira: IOTSTOR-752
2019-01-24 12:44:04 +02:00
Cruz Monrreal
f790fdd1cd
Merge pull request #9421 from VeijoPesonen/feature-esp8266_nonblocking_connect
...
ESP8266: implements possibility to decide between non-blocking/blocking connect.
2019-01-23 22:47:51 -06:00
j3hill
2a72bb67a3
NRF5x: QSPI SFDP read implementation
2019-01-23 10:24:02 -06:00
j3hill
e9f08cb4d4
NRF5x: min read/write implementation
2019-01-23 09:55:27 -06:00
David Saada
22309c93d0
FlashIAP BD: Assert if default constructor is used w/o config change
2019-01-23 16:30:36 +02:00
Cruz Monrreal
0c85d441d2
Merge pull request #9408 from evva-sfw/feature/SPIF_ULBPR
...
SPIF - Fix command to unlock Global Block-Protection register
2019-01-22 23:59:21 -06:00
Veijo Pesonen
832eed02ce
ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered
2019-01-22 16:11:32 +02:00
Veijo Pesonen
c4d96e6309
ESP8266: provides blocking/non-blocking connect
...
Implements NetworkInterface::set_blocking() and implements the
functionality to distinguish between the two in connect()
2019-01-21 16:22:53 +02:00
Veijo Pesonen
58c1a88348
ESP8266: turns connect fully to non-blocking mode
...
Blocking mode connect is not supported anymore when this patch is
applied
2019-01-21 16:22:53 +02:00
Veijo Pesonen
c60c5244c1
ESP8266: makes connect() connection status aware
2019-01-21 14:43:35 +02:00
jeromecoutant
f3ba34a344
DIRS and SEEK SD tests update for small RAM targets
...
Test buffer size can now be specified for each target
2019-01-18 09:23:40 +01:00
Cruz Monrreal
309d9be347
Merge pull request #9386 from jeromecoutant/PR_SDJSON
...
SD default configuration for ST boards is already defined in TARGET_STM
2019-01-17 21:54:18 -06:00
Cruz Monrreal
30e0d8f1f6
Merge pull request #9366 from VeijoPesonen/bugfix-esp8266_verify_rcvd_data_len
...
ESP8266: add an error check for data overflow from modem side
2019-01-17 21:52:11 -06:00
Philipp Steiner
f0ec813d71
Update Comments
2019-01-17 11:13:16 -06:00
Philipp Steiner
167a3098c8
Add SPIF_ULBPR command also to QSPIFBlockDevice and SPIFReducedBlockDevice
2019-01-17 11:13:16 -06:00
Philipp Steiner
5f4ff5de8c
Add SPIF_ULBPR command and replace wrong command to clear all write-protection bits in the Block-Protection register.
2019-01-17 11:13:16 -06:00
Martin Kojtal
b59b93e828
Merge pull request #9331 from VeijoPesonen/bugfix-esp8266_udp_prevent_would_block
...
ESP8266: prevent WOULD BLOCK from TX if UDP
2019-01-17 12:41:42 +01:00
jeromecoutant
b070fb47d7
COMPONENT_SD default configuration for ST boards is already defined in TARGET_STM
2019-01-15 17:08:54 +01:00
Martin Kojtal
a180d69e60
Merge pull request #9356 from VeijoPesonen/bugfix-esp8266_disconnect_return_code
...
ESP8266 - fixes disconnect to check the state from modem
2019-01-15 10:38:40 +01:00
Martin Kojtal
ebf3a192e1
Merge pull request #9329 from juhaylinen/sdblockdevice-doc
...
SDBlockDevice docs update
2019-01-14 10:40:35 +00:00
Veijo Pesonen
02cd9f1884
[ESP8266] adds an error check for data overflow from modem side
2019-01-14 12:22:41 +02:00
Veijo Pesonen
e83b883e08
[ESP8266] fixes disconnect to check the state from modem
...
Additionally to internal bookkeeping lets check from the modem
that what is connection state in disconnect. There might be
inconsistencies.
2019-01-11 16:25:26 +02:00
Seppo Takalo
7db2292417
Flush ESP8266 serial input buffers after HW reset
2019-01-10 18:13:32 +02:00
Veijo Pesonen
e9ceff2450
[ESP8266] fixes a debug print
2019-01-10 14:33:15 +02:00
Veijo Pesonen
9a3c9a30b3
[ESP8266] Drop signalling SIGIO artificially if UDP send fails
...
With TCP it's desirable that SIGIO wakes up the application to check
if there is buffer space space available on the mode. With UDP the
behavior is not acceptable as we don't know if the other endpoint is
there as connection establishment is missing. Hence buffers might
stay full forever.
2019-01-10 14:33:15 +02:00
Martin Kojtal
e25611aad8
Merge pull request #9309 from VeijoPesonen/bugfix-esp8266_send_busy
...
ESP8266 - fix send buffer exhaustion handling
2019-01-10 12:24:09 +00:00
Mel W
66f5358c4b
some minor streamlining and editorial changes
2019-01-10 14:18:11 +02:00
Juha Ylinen
a4a99d61d2
SDBlockDevice docs update
2019-01-10 13:44:10 +02:00
Martin Kojtal
47e477cc97
Merge pull request #9310 from juhaylinen/spifblockdevice-doc
...
SPIFBlockDevice docs update
2019-01-10 10:53:19 +00:00
Cruz Monrreal
b9d5dceb72
Merge pull request #9284 from VeijoPesonen/bugfix-esp8266_socket_close
...
ESP8266: Fixes AT-layer socket_open-functions
2019-01-09 13:47:46 -06:00
Veijo Pesonen
7c112b2843
[ESP8266] socket_send() returns WOULD_BLOCK if server won't accept
...
Driver must return NSAPI_ERROR_WOULD_BLOCK if a server won't accept
data from the modem and the modem's buffers are full. In case that
socket is closed driver returns NSAPI_ERROR_CONNECTION_LOST.
2019-01-09 16:34:25 +02:00
Juha Ylinen
96877b80e6
SPIFBlockDevice docs update
2019-01-09 15:29:34 +02:00
Veijo Pesonen
4a9f86565a
[ESP8266] Fixes AT-layer socket_open-functions
...
When a socket open fails it musn't be treated as fatal error. Returning
a device error which is then handled by an application is the correct
solution
2019-01-09 13:20:52 +02:00
Seppo Takalo
8bf3ce3d68
ESP8266: Set HW reset time to 2ms
2019-01-08 18:18:46 +02:00
Martin Kojtal
a9ce91686c
Merge pull request #9264 from offirko/offir_qspif_reduce_trace_level
...
reduce info traces to debug level to prevent logs overflow
2019-01-08 12:38:51 +00:00
Martin Kojtal
1c3b6f4f94
Merge pull request #9268 from yossi2le/yossi_fix_flashiap_test
...
Calculate FlashIAPBlockDevice start address and size automatically for test only
2019-01-08 09:51:28 +00:00
Yossi Levy
bdeb54592f
This commit fixes an issue in which boards with FlashIAP block device enabled fails the FlashIAP block device tests exists under the component directory. That's because they have no start address and size configured in the mbed_lib.json file. In order to simplify the test for targets with no definitions in the mbed_lib.json, the test will calculate the start address as the first sector after the application ends and up to the max size available.
2019-01-07 15:20:58 +02:00
Martin Kojtal
0eabafa551
Merge pull request #9135 from yossi2le/yossi_get_type_for_bd
...
Get type for BlockDevice
2019-01-07 12:26:29 +00:00
offirko
a270cffe39
reduce info traces to debug level to prevent logs overflow
2019-01-06 12:11:30 +02:00
Cruz Monrreal
54f759176b
Merge pull request #9210 from AnttiKauppila/mbed_h_fix
...
mbed.h includes removed
2019-01-04 10:27:30 -06:00
Martin Kojtal
26b8a96d44
Merge pull request #9173 from michalpasztamobica/esp8266_remove_stop_uart_hw_ctrl
...
Prevent ESP8266 stopping HW control on init
2019-01-04 08:42:51 +00:00
Antti Kauppila
2ff6cd3df3
Cleaned 802.15.4_RF to not have mbed.h includes
2018-12-28 15:19:03 +02:00
Antti Kauppila
02b0f79e15
mbed.h includes removed
2018-12-28 14:36:10 +02:00
Yossi Levy
b17d13e75e
Documnent changes and adding const to get_type method
2018-12-23 14:27:14 +02:00
Yossi Levy
b8b7292d8e
astyle fix
2018-12-23 11:03:45 +02:00
Yossi Levy
1d71fb1c9f
Add get_type method to block devices.
2018-12-23 11:03:45 +02:00
Deepika
5f57b89c10
Resolved: [Error] main.cpp@115,34: [Pe266]: "size" is ambiguous
...
`size` is part of std library since c++17, and results in build
errors for IAR 8.x.
https://en.cppreference.com/w/cpp/iterator/size
2018-12-21 14:29:06 -06:00
Deepika
a356db19aa
Resolved warning: variable declared but never referenced
2018-12-21 13:34:00 -06:00
Deepika
7b5fe2d8ba
Resolve string literal error
...
Space needed between 2 string literals
[Error] fopen.cpp@204,97: [Pe2486]: user-defined literal operator not found
2018-12-21 13:28:23 -06:00
Martin Kojtal
cc2e15c84e
Merge pull request #9158 from davidsaada/david_lto_dup_types
...
Fix LTO build failures due to duplicate local types
2018-12-20 16:30:16 +00:00
Michal Paszta
034c72e12c
Prevent ESP8266 stopping HW control on init
2018-12-20 13:22:13 +01:00
Alastair D'Silva
2617c5d55b
Don't use define checks on DEVICE_FOO macros (mbed code)
...
The DEVICE_FOO macros are always defined (either 0 or 1).
This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-20 10:16:42 +11:00
David Saada
ec0ebc2cec
Fix LTO build failures due to duplicate local types
2018-12-19 15:52:43 +02:00
Cruz Monrreal II
9b9b81e9a4
Merge branch 'esp8266_link_type_fix' of ssh://github.com/c1728p9/mbed-os
2018-12-18 13:23:44 -06:00
Cruz Monrreal
ce1929b5df
Merge pull request #9045 from fredlee12001/patch-1
...
Fix wrong PIN config for RTL8195AM platform
2018-12-18 10:32:59 -06:00
Russ Butler
6210805696
Fix ESP8266 "Link Type" errors after reset
...
As part of the ESP8266 connect sequence, ESP8266Interface::connect,
a software reset is performed. If the ESP8266 had been connected
previously then the ESP8266 will sometimes send a "WIFI DISCONNECT" OOB
message before performing the software reset. This causes the
ESP8266::_oob_connection_status to change its state (_conn_status) from
NSAPI_STATUS_DISCONNECTED to NSAPI_STATUS_CONNECTING. This causes
ESP8266Interface::_startup, called later in the boot seqeunce, to skip
ESP8266::startup. Without this call socket mux mode (CIPMUX=1) is never
enabled and all send commands using this format fail with a "Link Type"
error.
This patch fixes that problem by unconditionally calling
ESP8266::startup as part of the ESP8266 connect sequence.
2018-12-17 10:11:52 -06:00
Cruz Monrreal
64e7e468b2
Merge pull request #9089 from jeromecoutant/DEV_QSPI_TEST
...
STM32 QSPI update
2018-12-14 10:14:13 -06:00
Cruz Monrreal
5e42fc0e74
Merge pull request #9057 from offirko/offir_qspif_prefer_144_mode
...
Prefer QSPI Bus mode 1-4-4 as highest priority for QSPIFBlockDevice
2018-12-13 18:15:04 -06:00
jeromecoutant
fc548cdc05
STM32 QSPIF: add DISCO_L496AG, DISCO_F746NG and DISCO_F769NI
2018-12-13 10:56:36 +01:00
offirko
b79c64ec53
Favor QSPI Bus mode 1-4-4 over QPI
...
QPI may have slightly better performance, but it is not supported by all targets.
It requires register setup between each Read and Program/Erase commands,
which might damage the overall performance eventually.
2018-12-12 10:54:48 +02:00
Michal Paszta
d6e385b330
ESP8266 send returns WOULD_BLOCK error when busy
2018-12-11 17:48:37 +01:00
Veijo Pesonen
e4de165a32
[ESP8266] Fixes namespace collision
2018-12-11 09:49:23 +02:00
Veijo Pesonen
02aeab29d3
[ESP8266] powers down the modem on disconnect
2018-12-11 09:49:23 +02:00
Veijo Pesonen
8415e49835
Fixes connect, and network-status logic
2018-12-11 09:49:23 +02:00
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
deepikabhavnani
e7bdf3c575
Corrected `INIT_FREQUENCY` macro SD is appended by tools
2018-11-06 10:53:49 -06:00
deepikabhavnani
a0f3fdc286
Compile time flag MBED_SD_CRC_ENABLE for CRC in SD
...
CRC class adds to the ROM size even when disabled runtime, because
of addition of ROM tables. Addition a compile time option to disable
CRC is required for reducing code size of SD driver component.
Library config option `SD_CRC_ENABLED` is added, set it to 0 to
disable CRC feature in SD.
2018-11-06 10:53:39 -06:00
Arto Kinnunen
d5df64299a
Sync with MCR20a RF driver v1.0.3
2018-11-06 16:51:35 +02:00
Arto Kinnunen
c0647267cc
Sync with Atmel RF driver v3.0.6
2018-11-06 16:45:09 +02:00
Fahim Alavi
2806dd8216
mbed_lib.json updated for other all C030 targets and code corrected to use UBLOX_AT
2018-11-06 17:58:41 +05:00
Martin Kojtal
73cc54e5f7
Merge pull request #8524 from korjaa/more_blockdevice_tests
...
Add more generic BlockDevice tests.
2018-11-05 17:15:59 +01:00
Jarno Lamsa
36f1fa06d6
Remove extra _deselect to prevent possible hard fault
...
If read timeout happens, the _deselect will get called twice causing
a hard fault happening when mutex is released without being locked.
The SDBlockDevice::read is calling the _deselect in every case.
2018-11-05 16:08:48 +02:00
Offir Kochalsky
2df7258710
Add get_erase_value() support
2018-11-05 12:47:18 +02:00
Cruz Monrreal
430fb3e7ba
Merge pull request #8601 from kjbracey-arm/error_fmtcheck
...
Add format checking to printf-type APIs
2018-11-01 16:09:05 -05:00
Jaakko Korhonen
0d04f03882
Added missing mutex to DataFlash for thread safety.
2018-11-01 14:51:07 +02:00
Christopher Haster
761405592b
Added mutex to DataFlash for thread safety
2018-11-01 14:51:07 +02:00
Cruz Monrreal
8d014bcce6
Merge pull request #8585 from JarkkoPaso/IOTTHD-2884
...
Phy drivers: Added S2-LP driver
2018-10-31 20:41:24 -05:00
Arto Kinnunen
135a894b07
Sync with MCR20a RF driver v1.0.2
2018-10-31 16:12:03 +02:00
Arto Kinnunen
a215d9d856
Sync with Atmel RF driver v3.0.5
2018-10-31 16:01:16 +02:00
Jarkko Paso
425e7a96e6
S2-LP: Needs Nanostack configuration and device SPI
2018-10-31 15:14:08 +02:00
Kevin Bracey
f4708bbb36
Fix up types in SDBlockDevice
...
Correct types passed to debug() calls - as part of this, block size and
erase size are changed to be 32-bit - using 64-bit variables for these
will cause unnecessary code bloat.
Many uses of bd_size_t in the BlockDevice API should really be uint32_t
or size_t, but that would be a bigger API change.
2018-10-31 14:49:22 +02:00
Jarkko Paso
0f08b35510
S2-LP: Renamed GPIO to RF_S2LP_GPIO as it had conflict with some platforms
2018-10-31 10:26:05 +02:00
Jarkko Paso
2cb017bf47
S2-LP: Removed license files
2018-10-31 09:23:34 +02:00
Cruz Monrreal
fba0669194
Merge pull request #8563 from marcuschangarm/default_qspif
...
Add QSPIF block device to default system storage
2018-10-30 22:32:01 -05:00
Jarkko Paso
3916c0ba5e
S2-LP: astyle run done
2018-10-30 15:52:51 +02:00
Cruz Monrreal
9226c5873d
Merge pull request #8550 from deepikabhavnani/mbed_h_fixes
...
Add required namespace instead of relying on mbed.h
2018-10-30 08:47:04 -05:00
Jarkko Paso
ef1e121937
Phy drivers: Added S2-LP driver
2018-10-30 13:51:24 +02:00
Cruz Monrreal
d23d7855fc
Merge pull request #8552 from cmonr/rollup
...
Rollup PR: UK Docathon pt2
2018-10-27 08:27:02 -05:00
Marcus Chang
063a7842ba
Add QSPIF block device to default system storage
2018-10-26 13:00:38 -07:00
Cruz Monrreal II
e8728148ac
Merge branch 'docs-fix-networkiface' of ssh://github.com/paul-szczepanek-arm/mbed-os into rollup
2018-10-26 11:48:45 -05:00
Martin Kojtal
93a17c1d65
Merge pull request #7979 from yossi2le/fix_spif_sd_config
...
Using SPI_ macros from PinNames in SPIF and SD config files.
2018-10-26 09:35:29 +01:00
deepikabhavnani
451cf7ccb3
Add required namespace instead of relying on mbed.h
...
mbed.h has 'using namespace mbed;', hence some of the files skip
adding required namespace to the code, it is always good to specify the
namespace around the elements in header and `using namespace` in
specific CPP files, instead of all
2018-10-25 12:43:59 -05:00
Yossi Levy
d9a84c42cf
Remove SPI_PERSISTENT_MEM_CS macro and replace it with SPI_CS
2018-10-25 12:10:48 +03:00
Yossi Levy
eddd2b1c68
Using the SPI_ macros which was added to PinNames.h in PR #7774 to the config files
2018-10-25 11:56:38 +03:00
Martin Kojtal
53f1397522
storage component: update astyle
2018-10-25 09:51:09 +01:00
paul-szczepanek-arm
4f2645b3fc
incorrect doc was copy pasted
...
replaced with copydoc instead
2018-10-24 20:57:25 +01:00
Cruz Monrreal
41bffe1c87
Merge pull request #8352 from offirko/offir-mbed-qspif
...
QSPI SFDP Flash Block Device
2018-10-23 10:48:28 -05:00
Offir Kochalsky
5cebe43dfc
mbed namespace removed add mbed indicator to QSPI
2018-10-21 11:50:17 +03:00
Offir Kochalsky
7d05fcb788
remove mbed namespace from h file and update test
2018-10-21 10:29:03 +03:00
Offir Kochalsky
638951aa86
Merge remote-tracking branch 'upstream/master' into offir-mbed-qspif
2018-10-21 08:51:49 +03:00
jeromecoutant
7bfa6bdcaf
Component SD test: skip multiple thread test depending on RAM
2018-10-19 17:09:31 +02:00
Cruz Monrreal
515db95061
Merge pull request #8349 from offirko/offir-mbed-reduced-spif
...
A Reduced SPIF Block Device for Boot Loader
2018-10-17 20:19:26 -05:00
Offir Kochalsky
908233a177
Changes per Pull Request review 3
2018-10-17 14:42:21 +03:00
Offir Kochalsky
23bc67dfdc
Fix DISCO_L475VG_IOT01A name at json
2018-10-17 11:16:57 +03:00
Deepika
9db31d299b
Resolve build issues in test
...
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Offir Kochalsky
ef40d6d1ee
json formatted and include remarks removed
2018-10-16 10:47:21 +03:00
Offir Kochalsky
020685c473
Added error logging at set QPI
2018-10-16 10:15:36 +03:00
Cruz Monrreal
a6651b868b
Merge pull request #8317 from yossi2le/add-flashiap-bd-as-default
...
Add FlashIAP block device as default block device for WISE 1570
2018-10-15 10:22:34 -05:00
Yossi Levy
196fbe5c68
Fixing unicode error in IAR compilation
2018-10-14 12:13:53 +03:00
Offir Kochalsky
9b3bca89fd
Enable first fast mode then quad for chips with low power default
2018-10-14 08:54:09 +03:00
Kevin Bracey
1ef213ec89
Clean up Thread deprecation warnings
...
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Cruz Monrreal
0aed6bb43f
Merge pull request #8256 from yossi2le/fix_warnings_in_blockdevices
...
Fix warnings in block devices
2018-10-11 10:10:55 -05:00
Yossi Levy
b84f377b73
Removing nvstore. adding back the option for configuration as in the external repo
2018-10-10 17:15:46 +03:00
Yossi Levy
473f8d3f94
Fixing the order of component if more than one is included for a target.
...
Revert deprecation of FlashIAPBlockDevice 2 argument constructor has this was a breaking change. This follows a similar change in the external flashiap-driver repo.
2018-10-10 12:32:08 +03:00
Martin Kojtal
06dffda530
Merge pull request #8327 from SeppoTakalo/i2c_guard
...
Guard Atmel RF driver build by DEVICE_I2C
2018-10-09 11:37:43 -05:00
Martin Kojtal
7491482a6c
Merge pull request #8243 from jarlamsa/interrupt_disable
...
mcr20a use core_util_critical_section functions
2018-10-09 10:34:09 -05:00
Offir Kochalsky
a60552c07d
Return to 1-1-1 mode prior to setting QUAD enable
2018-10-09 15:17:52 +03:00
Offir Kochalsky
a30abf48b0
Merge remote-tracking branch 'upstream/master' into offir-mbed-qspif
2018-10-09 14:21:03 +03:00
Offir Kochalsky
665e089350
Reduced SPIF Block Device for Boot Loader
2018-10-09 10:53:03 +03:00
Cruz Monrreal
fd4f47d18f
Merge pull request #8109 from deepikabhavnani/i2c_recovery
...
Add reset recovery for I2C bus
2018-10-08 10:27:04 -05:00
Seppo Takalo
f16a99cf15
Guard Atmel RF driver build by DEVICE_I2C
...
This module uses AT24MAC chip which is in I2C bus, so it requires
device to support I2C
2018-10-08 11:17:06 +03:00
Martin Kojtal
6f338f8915
Merge pull request #8006 from deepikabhavnani/sd_driver_cleanup
...
SD - Add required header file and namespace element instead add all
2018-10-01 13:02:39 +02:00
Yossi Levy
dd065e3be1
Fix warnings in block devices
2018-09-26 14:35:48 +03:00
Jarno Lamsa
83a85d7830
mcr20a use core_util_critical_section functions
2018-09-25 16:29:24 +03:00
Cruz Monrreal
6fca23ece1
Merge pull request #7955 from yossi2le/add_frequency_to_dataflash_conig
...
Add SPI_FREQ parameter to DATAFLASH block device configuration
2018-09-24 10:45:34 -05:00
deepikabhavnani
a30da7e61e
I2CReset is not required as I2C driver does the recovery before init
2018-09-12 16:37:32 -05:00
Deepika
4de8eda249
Add required header file and namespace element instead add all
2018-09-05 11:41:25 -05:00
Deepika
80a10cd134
Version check not needed as driver in part of mbed-os
2018-09-05 11:33:42 -05:00
Martin Kojtal
eb3cbb88b3
Merge pull request #7967 from juhaylinen/fix-esp8266-default-interface
...
ESP8266: Fix compilation error when default interface is enabled
2018-09-04 08:19:41 +02:00
Juha Ylinen
273f7c6fd6
ESP8266: Fix compilation error when default interface is enabled
...
Compile [ 1.3%]: ESP8266Interface.cpp
[Error] ESP8266Interface.cpp@582,33: cannot declare static function inside another function
[Error] ESP8266Interface.cpp@583,13: cannot convert 'ESP8266Interface (*)()' to 'WiFiInterface*' in return
Failed to build library
2018-09-03 12:56:26 +03:00
Yossi Levy
47aea6b719
Adding the configuration parameter as default value in the constructor.
2018-09-02 17:48:46 +03:00
Offir Kochalsky
df36f0e757
Fixed PR review remarks
2018-09-02 11:02:17 +03:00
Offir Kochalsky
b71db496ba
Prevent sector-unaligned erase
2018-09-02 09:12:55 +03:00
Seppo Takalo
d39c5c58ae
RF drivers need DEVICE_SPI
2018-09-01 12:40:42 -05:00
Seppo Takalo
ab78c34345
Add dummy delay loop for ARMC6
...
This needs proper implementation later.
2018-09-01 12:37:46 -05:00
Seppo Takalo
50376154b4
Fix AT24MAC driver builds on targets that device SDA/SCL names
...
Some targets have SDA and SCL defined in public headers, breaking the
build of AT24MAC driver.
2018-09-01 12:37:46 -05:00
Seppo Takalo
f81b728575
Remove unneeded .gitignore files
2018-09-01 12:37:46 -05:00
Seppo Takalo
fc5bf5986b
Add ESP8266 driver v1.6
2018-09-01 12:36:28 -05:00
Seppo Takalo
b5240db10d
Add MCR20A RF driver v1.0.1
2018-09-01 12:36:27 -05:00
Seppo Takalo
d02097f97c
Add Atmel RF driver v3.0.4
2018-09-01 12:36:27 -05:00
Yossi Levy
ed8e170d15
Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure.
2018-08-29 12:01:11 +03:00
Yossi Levy
881929eef7
Add 'components/storage/blockdevice/COMPONENT_FLASHIAP/' from commit '8f1ac821f1c411986b8533cbf4878ea9b3fe5efb'
...
git-subtree-dir: components/storage/blockdevice/COMPONENT_FLASHIAP
git-subtree-mainline: 9a0844a84f
git-subtree-split: 8f1ac821f1
2018-08-29 11:48:04 +03:00
Yossi Levy
9a0844a84f
Add 'components/storage/blockdevice/COMPONENT_DATAFLASH/' from commit 'baabb520973d3e8aa8c4c1dc0af12ed1585200cd'
...
git-subtree-dir: components/storage/blockdevice/COMPONENT_DATAFLASH
git-subtree-mainline: 5294ef72b7
git-subtree-split: baabb52097
2018-08-29 11:47:56 +03:00
Yossi Levy
5294ef72b7
Add 'components/storage/blockdevice/COMPONENT_SPIF/' from commit '622382ae8fab0c18d3a3576bbce9c3b448459282'
...
git-subtree-dir: components/storage/blockdevice/COMPONENT_SPIF
git-subtree-mainline: 90866170ea
git-subtree-split: 622382ae8f
2018-08-29 11:47:21 +03:00
Yossi Levy
90866170ea
Add 'components/storage/blockdevice/COMPONENT_SD/' from commit 'd791229918b261ae8a5ea0cbc5cac1238d65179b'
...
git-subtree-dir: components/storage/blockdevice/COMPONENT_SD
git-subtree-mainline: 2e081dc7d0
git-subtree-split: d791229918
2018-08-29 11:47:01 +03:00
Offir Kochalsky
794d150a4a
fix unaligned address erase problem
2018-08-28 14:20:07 +03:00
Offir Kochalsky
9d936e10af
Added class example documentation
2018-08-27 17:12:21 +03:00
Offir Kochalsky
9920e63d98
Initial QSPIF delivery to mbed-os
2018-08-27 13:02:17 +03:00