Commit Graph

147 Commits (4f95298669883f7596ec55343f1e8e1200014de7)

Author SHA1 Message Date
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
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
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
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
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