Martin Kojtal
cee814dc29
Merge pull request #9377 from offirko/offir_general_block_device_test
...
test: general_block_device fix to always erase prior the first program
2019-01-18 11:48:41 +01:00
Martin Kojtal
6c6ebc6b80
Merge pull request #9406 from geky/littlefs-validate-all-dirs
...
Extended mount to check all metadata-pairs
2019-01-18 11:34:38 +01:00
Martin Kojtal
40f40ac188
Merge pull request #9407 from offirko/offir_direct_access_handle_default_config
...
DirectAccess DeviceKey: add support for default storage type
2019-01-18 11:31:51 +01:00
Cruz Monrreal
3b43a2d976
Merge pull request #9333 from offirko/offir_doxygen
...
Minor Doxygen fixes for BufferedBlockDevice and iBeacon
2019-01-17 21:51:14 -06:00
Christopher Haster
9d6e309432
Extended mount to check all metadata-pairs
...
The most common issue with using littlefs in mbed-os is when users
change from littlefs->FAT->littlefs (or with MBR or similar). When this
corrupts the superblock, littlefs tries to fall back to the backup
superblock. However, at this point in the time the old superblock may be
very out-of-date and pointing to an incorrect filesystem.
There's no complete solution to a malicious modification of the
filesystem (short of checking all metadata+data, a very expensive
operation), but we can at least expand our validation to all of the
metadata for the filesystem. This at least catches the common issues
with changing between different filesystems.
2019-01-17 11:02:29 -06:00
offirko
e996b7f9ce
DirectAccess DeviceKey added support for default storage type
2019-01-17 10:58:55 -06:00
Cruz Monrreal
4f95298669
Merge pull request #9361 from yossi2le/yossi_fix_for_tfm
...
Removing dependency of TDBStore in SystemStorage file and moving some file location - TFM support.
2019-01-16 22:06:07 -06:00
Jimmy Brisson
e201fdb6e9
Add placeholder libraries for things we probably refer to as libraries
2019-01-16 14:58:58 -06:00
David Saada
af23e3f489
MBRBlockDevice: When partitioning, clear the rest of first erase unit
...
Make sure all the parts of the first erase unit, that are not part of the
partition table are clear.
2019-01-15 16:43:03 +02:00
Martin Kojtal
82abf979dd
Merge pull request #9363 from davidsaada/david_fsst_tr_error_remove
...
Remove unnecessary error prints in FileSystemStore
2019-01-15 10:34:38 +01:00
Alexander Zilberkant
971e29b669
Remove TARGET prefix from the TARGET_BYPASS_NVSTORE_CHECK and leave it as BYPASS_NVSTORE_CHECK
2019-01-15 10:54:22 +02:00
Yossi Levy
849db51b3a
Moving DirectAccessDevicekey.h and DirectAccessDevicekey.cpp to direct_access_devicekey sub folder For TFM support
2019-01-15 10:54:21 +02:00
Yossi Levy
a05180ac04
Moving KVStore to include sub folder For TFM support
2019-01-15 10:54:21 +02:00
Yossi Levy
eb7cbc1432
Removing the dependency of TDBStore in SystemStorage.h and NVStore co-existence checkup if compile for target TFM
2019-01-15 10:54:21 +02:00
offirko
5a9db72098
general_block_device test fixed to always erase prior to first program
2019-01-15 10:10:39 +02:00
Alexander Zilberkant
454ae256d4
Set "TDB_INTERNAL" default storage for Pelion
...
NUCLEO_F411RE
NUCLEO_F429ZI
UBLOX_EVK_ODIN_W2
2019-01-13 18:30:22 +02:00
David Saada
d6382bb114
Fix the general block device to support better low memory boards
...
In addition, fix prints and warnings.
2019-01-13 18:17:39 +02:00
David Saada
90e4286f2d
Remove unnecessary error prints in FileSystemStore
2019-01-13 17:17:55 +02:00
Martin Kojtal
307bdd7363
Merge pull request #9305 from davidsaada/david_littlefs_fatfs_doxy_fix
...
Minor Doxygen fixes for all file system classes
2019-01-11 14:07:51 +00:00
Martin Kojtal
adeb5be670
Merge pull request #9334 from yossi2le/yossi_write-a-thon2
...
Doxygen fixes in block devices
2019-01-11 14:06:50 +00:00
Guy Wild
6954c396fb
Update BlockDevice.h
2019-01-10 16:38:00 +02:00
Yossi Levy
51168ee840
Merge branch 'yossi_write-a-thon2' of github.com:yossi2le/mbed-os into yossi_write-a-thon2
2019-01-10 15:55:08 +02:00
Mel Weed
10662582d1
minor editorial tweaks
...
partition's->partition
2019-01-10 15:53:59 +02:00
Yossi Levy
73ac904ef9
Doxygen changes to ProfilingBlockDevice and SlicingBlockDevice.
2019-01-10 15:53:49 +02:00
Martin Kojtal
d20b59153a
Merge pull request #9244 from theamirocohen/kvstore_tests_api
...
Kvstore tests api change to run on K64F only
2019-01-10 13:48:31 +00:00
offirko
b21576c8cf
Review updates
2019-01-10 15:42:28 +02:00
Yossi Levy
7dde6773f9
Some Doxygen fixes in MBRBlockDevice and BlockDevice
2019-01-10 15:10:47 +02:00
David Saada
3c7924ac9c
Minor Doxygen fixes for all file system classes
...
- Remove Doxygen generation on protected functions
- Minor description fixes
2019-01-10 15:09:52 +02:00
offirko
61926092a2
Minor Doxygen fixes for BufferedBlockDevice and iBeacon
2019-01-10 14:35:09 +02:00
David Saada
5d1985019f
Remove kvstore's mbed_lib.json file (not relevant any more)
...
In addition, use the NOT_SUPPORTED directive to skip the tests.
2019-01-09 16:25:13 +02:00
Amir Cohen
9a5841ad00
Kvstore tests api change to run on K64F only
...
Change KVStore API tests to run only on K64F, these tests check the KVStore functionality without actually testing the board's storage,
Thus they should produce the same results for each device they run on.
K64F was selected for no special technical reason but only because of it being available and convenient to use.
2019-01-09 14:52:11 +02:00
Yossi Levy
423c4fbc18
The direct_access_devicekey test should not run if there is no component flashiap block device in the target
2019-01-09 13:48:25 +02:00
offirko
6592e85c13
Added utility function to help locate expected internal flash tdbstore position.
...
(Supporting FILESYSTEM and TDB_EXTERNAL configuration only)
2019-01-09 13:48:25 +02:00
offirko
bb0d1afa9a
Updated test to consider tdb_internal non default configuration as well
2019-01-09 13:48:25 +02:00
offirko
945579378e
Adding low code size tool for direct access to Devicekey.
...
This enables application with code size restrictions to access
devicekey directly based on address in internal flash without kvconfig overhead
2019-01-09 13:48:24 +02:00
Martin Kojtal
cc9562e0a5
Merge pull request #9136 from yossi2le/yossi_tdbstore_nvstore_co_exist
...
TDBStore and NVStore should create an error if co exist.
2019-01-08 12:02:37 +00:00
Martin Kojtal
5a5ad8d26d
Merge pull request #9200 from davidsaada/david_tdbstore_gc_if_corrupt
...
TDBStore: Perform garbage collection on failed writes
2019-01-08 11:55:31 +00:00
Martin Kojtal
42fee4502d
Merge pull request #9241 from davidsaada/david_tdbstore_variant_erase_unit_fix
...
TDBStore: fix bug in sector blank check for variant sized sectors
2019-01-08 09:52:15 +00:00
Martin Kojtal
b833bbde78
Merge pull request #9237 from yossi2le/yossi_remove_num_entreies
...
Refactoring and fixing some issues in KVStore configuration.
2019-01-08 09:48:26 +00:00
Yossi Levy
71afcf6c40
Adding return MBED_ERROR_UNSUPPORTED in _storage_config_default if no component is defined.
2019-01-07 16:50:06 +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
David Saada
72f6f6c92f
TDBStore: Perform garbage collection on failed writes
...
Partial writes may turn storage unusable. GC clears this scenario.
2019-01-06 15:03:40 +02:00
David Saada
66117097c4
TDBStore: fix bug in sector blank check for variant sized sectors
2019-01-03 17:14:43 +02:00
Yossi Levy
719395f347
fixing FAT mount failure in kvstore FILESYSTEM
2019-01-03 14:47:24 +02:00
Yossi Levy
388da7f841
Remove ROM overlaps checkup for kvstore FLASHIAP blockdevice if non default values are use
...
remove of rbp_number_of_entries from the kvstore configuration. Adding default option for storage_type
allowing the system to choose TDB_INTERNAl, TDB_EXTERNAL or FILESYSTEM base on the blockdevice component
set in the target board. Adding remarks to kv_config.cpp and break simplify the _get_blockdevice_FLASHIAP function
2019-01-03 14:01:42 +02:00
Yossi Levy
d934b1bd00
Remove ROM overlaps checkup for kvstore FLASHIAP blockdevice if non default values are use
2018-12-26 12:08:34 +02:00
Yossi Levy
677dbd1612
removing output parameter from avoid_conflict_nvstore_tdbstore function.
2018-12-23 14:27:56 +02:00
Yossi Levy
fcd24aa62b
Create runtime error if TDBStore and NVStore are created in internal flash
2018-12-23 14:27:56 +02:00
Yossi Levy
b17d13e75e
Documnent changes and adding const to get_type method
2018-12-23 14:27:14 +02:00
Yossi Levy
9590441288
astyle fix
2018-12-23 11:03:45 +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
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
Martin Kojtal
ab1c2be997
Merge pull request #8957 from InfernoEmbedded/fix-8913
...
Fix incorrect #ifdefs on DEVICE_FOO macros
2018-12-20 10:52:06 +00:00
Martin Kojtal
85c2fc7fb1
Merge pull request #9148 from davidsaada/david_fix_app_end_addr
...
Fix FLASHIAP_ROM_END macro for GCC_ARM & IAR toolchains
2018-12-20 10:48:26 +00: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
David Saada
f3bac3451c
Fix FLASHIAP_ROM_END macro for GCC_ARM & IAR toolchains
...
- Consider data section in GCC_ARM toolchain
- Consider init_array section in IAR toolchain
- Rename macro to FLASHIAP_APP_ROM_END_ADDR for clarity sake
2018-12-19 12:05:08 +02:00
Cruz Monrreal
80c6f5f8ee
Merge pull request #8972 from kjbracey-arm/merge_file_truncate
...
Merge feature-posix branch (FileHandle::truncate)
2018-12-17 14:49:56 -06:00
Cruz Monrreal
2697913773
Merge pull request #8990 from davidsaada/david_fat_tests_low_mem
...
Adjust FAT FS tests to low memory boards
2018-12-17 14:44:38 -06:00
Christopher Haster
8db2c0d00b
Added filesystem implementations of truncate
...
- File::truncate
- FileSystem::file_truncate
- FATFileSystem::file_truncate
- LittleFileSystem::file_truncate
2018-12-14 19:29:29 +02:00
Cruz Monrreal
839e00509b
Merge pull request #9054 from theamirocohen/nvstore_max_keys
...
Fix max_keys reset limitation
2018-12-13 18:15:16 -06:00
David Saada
713b4704f2
Adjust FAT FS tests to low memory boards
...
This is achieved by checking whether the board can allocate a certain memory
chunk (threshold) and skipping the test if it can't.
This should prevent these boards from failing in CI.
2018-12-13 15:26:31 +02:00
Amir Cohen
4fe7834928
Remove dead code
2018-12-13 13:34:08 +02:00
Amir Cohen
901a493299
Improve tests by reducing kvstore reset occurrences
2018-12-13 11:47:25 +02:00
Amir Cohen
eff52273f4
Fix max_keys reset limitation
...
Persist the max_keys value through a soft-reset, also prohibit max_keys set under predefined default value (16)
2018-12-12 15:05:09 +02:00
David Saada
cb7f68e992
Fix a few SecureStore issues (following preliminary security review)
...
- Remove require integrity flag (authentication) - always authenticate
- Use RBP KV to store CMAC also in write once case
- Allow removing a key if reading it failed on RBP authentication error
- Disable SecureStore if user disables MBED TLS AES CTR or CMAC
2018-12-10 23:34:57 +02:00
Cruz Monrreal
eec536b332
Merge pull request #8986 from davidsaada/david_tdbstore_fixes
...
Fix a few bugs in TDBStore and KV config
2018-12-10 10:16:37 -06:00
Cruz Monrreal
78d6018ecc
Merge pull request #8745 from kfnta/feature-new-target-future-sequana-psa
...
Add new target future sequana PSA
2018-12-06 13:13:36 -06:00
Oren Cohen
43468504cd
disable nvstore for sequana_psa
2018-12-05 20:00:07 +02:00
David Saada
e1bd5c9fac
Fix a few bugs in TDBStore and KV config
2018-12-05 17:02:02 +02:00
Martin Kojtal
415747d692
Merge pull request #8933 from yossi2le/yossi_kvstore_integration
...
Fixing Doxygen descriptions
2018-12-05 13:21:00 +01:00
Amanda Butler
6201b8d32d
Edit TDBStore.h
...
Edit file for punctuation and consistent tense.
2018-12-04 16:27:35 -06:00
Amanda Butler
5c68c5226a
Edit SecureStore.h
...
Edit file for consistent tense.
2018-12-04 16:25:07 -06:00
Amanda Butler
66dc5a2eba
Add word to KVMap.h
...
Add missing article for clarity and capitalization.
2018-12-04 16:24:00 -06:00
Amanda Butler
77a931b579
Edit FileSystemStore.h
...
Make minor edits, mostly for consistent tense across documents.
2018-12-04 16:22:47 -06:00
Cruz Monrreal
53c03f9835
Merge pull request #8934 from yossi2le/yossi_kvstore_k64F_FileSystem
...
Setting K64F to use KVStore FileSystem configuration
2018-12-04 12:25:06 -06:00
Oren Cohen
f1d3eb9340
Add FUTURE_SEQUANA_PSA target
...
* Modify linker scripts to be compatible with bootloader and PSA
* Add memory protection
* Modify original post-build step to allow link with PSA binaries
* Config kvstore for ITS on FUTURE_SEQUANA_PSA
* Enable PSA-Crypto on PSoC6 with NVSeed
2018-12-04 18:38:50 +02:00
jeromecoutant
b2cfef23bc
Remove NVSTORE enabled from NUCLEO_F410RB
2018-12-03 16:00:44 +01:00
Yossi Levy
d21bfbfdab
Setting K64F to use KVStore FileSystem configuration
2018-12-03 16:09:19 +02:00
Yossi Levy
cdcf14ef79
Fixing Doxygen descriptions
2018-12-03 16:08:07 +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
Danny Shavit
53728e45b7
Add a new PSA Internal Trusted Storage APIs
2018-11-25 09:57:22 +02:00
Nir Sonnenschein
0283bb84e4
Merge pull request #8667 from davidsaada/kvstore_integration
...
KVStore & derived classes: design docs, implementation & configuration
2018-11-25 07:30:53 +02:00
David Saada
e9c25e23a5
KVStore & derived classes: design docs, implementation & configuration
...
Implement the following:
KVStore base class
TDBStore class
FileSystemStore class
SecureStore class
Global APIs
Configuration framework
Design documentation
2018-11-24 17:43:35 +02:00
Amir Cohen
cf846151eb
Add block device small data size test
2018-11-19 14:49:28 +02:00
Cruz Monrreal II
0e4f843022
Merge branch 'david_buffered_bd_perf' of ssh://github.com/davidsaada/mbed-os into rollup-b.1
2018-11-15 18:26:11 -06:00
David Saada
50836e76a1
Improve the efficiency of BufferedBlockDevice
2018-11-15 11:52:22 +02:00
Martin Kojtal
a4500e86f5
blockdevice test: fix coding style
2018-11-15 07:20:09 +00:00
Martin Kojtal
20646d3da1
littlefs: fix coding style
2018-11-08 08:54:43 +00:00
Martin Kojtal
e54ce88bca
storage: fix astyle coding style
2018-11-07 08:56:35 +00: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
Cruz Monrreal
0e6eac5faa
Merge pull request #8491 from lrusinowicz/new-target-future_sequana
...
New target future sequana
2018-11-03 07:05:58 -05:00
Leszek Rusinowicz
9b1db83eaa
Added required changes outside of TARGET_Cypress tree:
...
1. In drivers/Timer.cpp make sure that hardware timer is initialized outside of critical section.
This is because on PSoC 6 hardware resources are shared between both cores
and we have to make sure that the other core is not already using a particular resource.
This mechanism is based on interprocessor communication taht cannot be handled iside of
critical section.
2. Added support for post-binary hook function for PSoC 6 targets, so the hex image for M0+ CPU core
can be merged with M4 core image for the final image.
3. Added possibility to use hook function from exportes, so the M0+ hex image could be included
in the generated project.
4. Included hex images in the build dependency list, so the update of image is catched by the
build process.
2018-11-01 20:19:21 +01:00
Jaakko Korhonen
c3e0e3e75d
Add generic BlockDevice test for get_erase_value().
2018-11-01 14:51:07 +02:00
Jaakko Korhonen
ebef79a05c
Add generic BlockDevice test for contiguous erase/write/read.
2018-11-01 14:51:07 +02:00
Kevin Bracey
fc32d954ac
FATFileSystem: fix format specifiers
2018-10-31 14:49:22 +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
Marcus Chang
063a7842ba
Add QSPIF block device to default system storage
2018-10-26 13:00:38 -07:00
Martin Kojtal
fc741f03a1
Merge pull request #8346 from OpenNuvoton/nuvoton_fix_mbr
...
storage: fix valid partion check with windows formatted sd card
2018-10-26 09:37:28 +01:00