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
a4dbf63dc3
Merge pull request #12029 from jeromecoutant/PR_F091
...
STM32F0: create STM32F091xC target
2019-12-05 08:22:32 +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
jeromecoutant
1a3673ee52
STM32F0: create STM32F091xC target
2019-12-04 15:03:46 +01:00
Martin Kojtal
083f6511a1
Merge pull request #12024 from mtomczykmobica/ONME-4366
...
ONME-4366 - Fix UBLOX_EVK_ODIN_W2 fails in emac tests due to heap mem…
2019-12-04 14:41:19 +01: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
28caa43a91
Merge pull request #12025 from fkjagodzinski/fix-platform-unused_file
...
Platform: Delete an unused astyle output file
2019-12-04 12:37:26 +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
Filip Jagodzinski
001731c5af
Platform: Delete an unused astyle output file
2019-12-04 10:16:24 +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
2cf56b8f6d
Merge pull request #11891 from hugueskamba/hk-enable-minimal-printf-in-tools
...
minimal-printf: Enable using a target configuration parameter
2019-12-04 10:14:54 +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
64d172c3bd
Merge pull request #11970 from kjbracey-arm/fault_crash
...
Avoid crashes during fault handler
2019-12-04 10:13:54 +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
Marcin Tomczyk
0693da6e2b
ONME-4366 - Fix UBLOX_EVK_ODIN_W2 fails in emac tests due to heap memory allocation failure. Increse event queue and free allocated buffer if cannot post packet to event queue.
2019-12-04 01:11:06 -08:00
Martin Kojtal
020e508e42
Merge pull request #12011 from jeromecoutant/PR_STMOD_DEBUG
...
STMOD_CELLULAR: improve debug print
2019-12-04 10:10:44 +01:00
Martin Kojtal
419e58af2c
Merge pull request #12012 from jeromecoutant/PR_USB_HIDTEST
...
USB device HID test: remove duplicated define
2019-12-04 10:09:55 +01:00
Antti Yli-Tokola
10687d6c3f
Make ESP8266 compatible with non rtos build
2019-12-04 09:23:18 +02:00
Piotr Stolarz
9a70621507
Review fixes
2019-12-03 18:04:15 +01:00
Martin Kojtal
888dfffabf
Merge pull request #11920 from ARMmbed/pr_template
...
Simplify pull request template headers and instructions
2019-12-03 15:53:21 +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
bdbec57447
STM32F407 configuration cleanup
2019-12-03 14:48:48 +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
jeromecoutant
00d91149cc
STMOD_CELLULAR: improve debug print
2019-12-03 14:22:47 +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
d74fa93549
Add unittests for BufferedBlockDevice
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