Martin Kojtal
f10e4ac04b
Merge pull request #11996 from ARMmbed/feature-cellular
...
Feature cellular
2019-12-10 14:54:57 +01:00
Martin Kojtal
f2a1804d51
Merge pull request #12058 from mprse/static_pinmap_for_cloud_client
...
Add static pin-map support: SDBlockDevice, kvstore, system storage (reduce ROM used by Mbed Cloud Client example)
2019-12-10 14:19:18 +01:00
Przemyslaw Stekiel
ee5953ad74
Add static pinmap support: SDBlockDevice, kvstore, system storage
...
This is done in order to enable static pin-map for Mbed Cloud Client Example. This should give extra ROM savings, ~1KB.
2019-12-10 12:26:23 +01:00
Martin Kojtal
77b1ee51ef
Merge pull request #12050 from SeppoTakalo/IOTSTOR-992
...
Fix TDBStore sizes for SecureStore tests
2019-12-10 09:47:12 +01:00
Antti Kauppila
e221ba9bb9
initialisation added for _property_array
2019-12-09 15:25:22 +02:00
Antti Kauppila
7a87023921
Disabled SMS by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
30ea858f51
Disable APN lookup by default
2019-12-09 15:25:22 +02:00
Antti Kauppila
90d3dc1f13
CellularStack fixed
2019-12-09 15:25:22 +02:00
Antti Kauppila
e51230c5e4
Remove CellularBase and AT_CellularBase
...
Removed CellularBase and AT_CellularBase from cellular stack and updated both code and unittests accordingly.
Moved property handling into AT_CellularDevice
2019-12-09 15:25:22 +02:00
Seppo Takalo
1f99703806
Fix TDBStore sizes for tests
...
Tests must require at least 2 erase sectors per TDBStore,
so that the garbage collection may work.
2019-12-09 11:18:29 +02:00
Martin Kojtal
e9cb9cb014
Merge pull request #12018 from jeromecoutant/PR_OLIMEX_EMAC
...
STM32_EMAC cleanup
2019-12-05 14:03:46 +01:00
Martin Kojtal
412a9317de
Merge pull request #12017 from VeijoPesonen/remove_nvstore
...
NVStore: already deprecated implementation removed
2019-12-05 09:10:30 +01:00
Martin Kojtal
e2a11c0297
Merge pull request #11988 from ARMmbed/feature_securestore_refactoring
...
Small fixes for SecureStore
2019-12-05 08:23:35 +01:00
Martin Kojtal
58da078df9
Merge pull request #12015 from jeromecoutant/PR_ETHERNET_ARMC5
...
STM EMAC: compilation issue with ARMC5
2019-12-05 08:23:11 +01:00
Martin Kojtal
9248169f1f
Merge pull request #11976 from pstolarz/lwip_mbox_fix
...
LWIP system mailbox overflow fix
2019-12-04 15:54:59 +01:00
Seppo Takalo
21acb66c1c
TDBStore: remove unused variables
2019-12-04 16:21:55 +02:00
Seppo Takalo
7902100238
SecureStore: Get rid of casting by using opaque pointers.
2019-12-04 16:21:55 +02:00
Seppo Takalo
23b2b8c4f3
SecureStore: Deinitialize also member TDBStorages on deinit()
2019-12-04 14:55:45 +02:00
Seppo Takalo
650b93b66c
SecureStore: Validate internal RBP data first
...
Previous logic was allowing external storage to be tampered by setting
write-protected keys, so values could not be updated, but it was still
used by get().
2019-12-04 14:55:45 +02:00
Seppo Takalo
bde9753696
SecureStore: Don't use flags of corrupted data. Allow removing.
2019-12-04 14:55:45 +02:00
Seppo Takalo
56d67360ef
SecureStore: Validate internal header size before using its values.
2019-12-04 14:55:45 +02:00
Martin Kojtal
7a085b472b
Merge pull request #11987 from ARMmbed/feature_tdbstore_refactoring
...
TDBStore refactoring
2019-12-04 13:51:50 +01:00
Martin Kojtal
6f18801ccc
Merge pull request #11986 from ARMmbed/feature_storage_test_improvements
...
Storage related test improvements and small fixes
2019-12-04 10:16:28 +01:00
Martin Kojtal
4ae8984819
Merge pull request #11878 from michalpasztamobica/api_hardening
...
Improve API documentation and test coverage
2019-12-04 10:15:43 +01:00
Martin Kojtal
34c9cf93e5
Merge pull request #11975 from michalpasztamobica/pppinterface_pointer_checks
...
PPPinterface: remove faulty address getter check for invalid pointer
2019-12-04 10:14:30 +01:00
Martin Kojtal
bbf68d7272
Merge pull request #11983 from u-blox/ublox_odin_driver_os_5_v3.7.1_rc3
...
Ublox Odin Driver OS 5 v3.7.1 rc3: Network-WiFi Test Crash Fixes
2019-12-04 10:12:11 +01:00
Piotr Stolarz
9a70621507
Review fixes
2019-12-03 18:04:15 +01:00
Martin Kojtal
e4e6ac5bd6
Merge pull request #12008 from AriParkkila/cell-at-string-fix
...
Cellular: Fix ATHandler string handling
2019-12-03 15:52:39 +01:00
jeromecoutant
093099b2e7
STM_EMAC: move TARGET_OLIMEX to the correct directory
2019-12-03 14:48:05 +01:00
Veijo Pesonen
060a1c6df7
NVStore: deprecated implementation removed
2019-12-03 15:36:31 +02:00
jeromecoutant
27f40156b5
STM EMAC: compilation issue with ARMC5
2019-12-03 14:33:24 +01:00
Seppo Takalo
ce7b196b26
TDBStore: Don't copy more data than what we can hold
2019-12-03 15:20:10 +02:00
Seppo Takalo
fe3c3550f9
TDBStore: Move Assert to init(), so Block parameter are initialised correctly
2019-12-03 15:20:10 +02:00
Seppo Takalo
adf409f7f7
Do not require Flash device for TDBStore
...
TDBStore used to rely on Flash devices erase value.
This logic has been removed, and TDBStore can do the entire erase
logic itself, in case the given BlockDevice does not offer erase().
This relies on BlockDevice to properly return -1 in BlockDevice::get_erase_value().
2019-12-03 15:20:10 +02:00
Seppo Takalo
3dc6c4879f
TDBStore: erase one program unit more, when cleaning an area
2019-12-03 15:20:10 +02:00
Seppo Takalo
93d7422f75
TDBStore: Do no garbage_collect() on init()
...
Previous logic caused garbage collection to kick in, if the init() was
called on empty storage. This has effect of erasing areas twice, if both
areas were empty.
Re-write logic so that we erase areas only on garbage_collect() or reset().
The init() logic already chooses the active area, so no need to touch,
until keys are modified.
Removed also the is_erase_unit_erased() as this is working only on
FLASH devices, and TDBStore should be refactored to work on all storages.
2019-12-03 15:20:10 +02:00
Seppo Takalo
36523282fa
TDBStore: Keep copy of reserved data on both areas.
...
Change the "reserved data" logic so that every time we erase and area,
the content of reserved data is then immediately copied to newly erased
area. This keeps two copies of the data.
When data is requested, return only if checksum is matching.
When data is written, only allow if BOTH checksums are incorrect, meaning
that areas are either corrupted or erased.
Only exception is TDBStore::reset() which erases all keys and reserved data.
Removed all logic that tried to detect, if reserved are was erased or
corrupted. Rely entirely on checksum.
Add moduletest for reserved data.
2019-12-03 15:20:10 +02:00
Seppo Takalo
0fe159f6c4
Greentea: Fix slice-calculation from kvstore test phase 2
2019-12-03 14:51:37 +02:00
Seppo Takalo
2ddd4069b6
Remove flaky error_inject_test
2019-12-03 14:38:40 +02:00
Seppo Takalo
b9eaac4da0
Fix Greentea handler typecasting.
2019-12-03 14:38:40 +02:00
Seppo Takalo
3eb8d6eb1d
BufferedBlockDevice: Sync all the buffers on deinit()
...
Make sure that all data has been written on the underlying
storage when we do deinit().
2019-12-03 14:38:40 +02:00
Seppo Takalo
8ab3984d33
Don't allow over-read on BufferedBlockDevice
2019-12-03 14:38:40 +02:00
Seppo Takalo
191d3444bb
HeapBlockDevice: Don't assert on const functions
2019-12-03 14:38:40 +02:00
Seppo Takalo
6105634bb0
Remove unceressary NULL check from BufferedBlockDevice::size()
2019-12-03 14:38:40 +02:00
Seppo Takalo
bcaf37dcfa
SlicingBlockDevice should assert, if size does not look valid
2019-12-03 14:38:40 +02:00
Seppo Takalo
92a60c3d80
Extend SlicingBlockDevice test coverage
2019-12-03 14:38:40 +02:00
Seppo Takalo
12dea71f40
Greenteatests: Validate KVStore content when WRITE_ONCE flag is set.
2019-12-03 14:38:40 +02:00
Martin Kojtal
ad3647c191
Merge pull request #11957 from kjbracey-arm/crc-redo
...
MbedCRC and CRC HAL revisions (6.0 redo)
2019-12-03 13:21:36 +01:00
Ari Parkkila
c22dd77f42
Cellular: Fix ATHandler string handling
2019-12-03 03:21:13 -08:00
Michal Paszta
caf01479ea
Improve doxygen and unittest coverage for API
...
Mainly focusing on hardening the tests for return values.
2019-12-02 20:48:10 +02:00