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
Amir Cohen
54d2f66aec
Fix no block device handling
2018-10-23 16:41:54 +03:00
Amir Cohen
7962e0c525
Fix build issues
2018-10-23 10:54:58 +03:00
Amanda Butler
8bca678ed8
Copy edit README.md
...
Copy edit file, mostly for active voice.
2018-10-23 10:54:58 +03:00
Amir Cohen
71431437fd
Fix typos
2018-10-23 10:54:58 +03:00
Amir Cohen
5a2e7e3367
Fix minor issues
2018-10-23 10:54:58 +03:00
Amir Cohen
1b45d00bde
features/storage/TESTS/blockdevice/general_block_device/README.md
2018-10-23 10:54:58 +03:00
Amir Cohen
7d7a553836
Add general block device tests
2018-10-23 10:54:58 +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
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
Anna Bridge
8dcc949c63
Merge pull request #8002 from deepikabhavnani/storage_remove_mbed_h
...
Storage: Add required header file and namespace element instead add all
2018-10-12 11:06:35 +01: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
Oren Cohen
9e337bb600
Restore disk_get_sector_size() to return WORD
2018-10-10 14:57:44 +03:00
Oren Cohen
37b5442656
Fix overflow in disk_get_sector_size()
2018-10-10 14:57:42 +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
ccli8
8ef23ff54d
Fix mis-recognize that Windows-formatted SD card has valid partitions
...
For Windows-formatted SD card, it is not partitioned (no MBR), but its PBR has the
same boot signature (0xaa55) as MBR. We would easily mis-recognize this SD card has valid
partitions if we only check partition type. We add check by only accepting 0x00 (inactive)
/0x80 (active) for valid partition status.
2018-10-09 11:06:49 +08:00
Deepika
8642ece022
Storage: Add required header file and namespace element instead add all
2018-10-08 07:32:04 -05:00
Martin Kojtal
f42aab7715
Merge pull request #8121 from deepikabhavnani/thread_safety_info
...
Add thread safety info to FatFs/LittleFs
2018-10-05 16:56:55 +02:00
Nir Sonnenschein
f1587b50d7
Merge pull request #8262 from juhoeskeli/mbrblockdevice_align
...
Align MBRBlockDevice writes to underlying BlockDevice write size
2018-09-28 13:23:55 +03:00
Cruz Monrreal
6b85ec7c57
Merge pull request #7953 from davidsaada/david_is_valid_erase_fix
...
Fix is_valid_erase function to use get_erase_size with address
2018-09-27 10:20:56 -05:00
Juho Eskeli
d32b454c5b
Align writes to blockdevice write size in MBRBlockDevice
2018-09-26 22:43:27 +03:00
Martin Kojtal
37654e546a
Merge pull request #7696 from aashishc1988/wizwiki_iar_error
...
skip the flashsim test if not enough memory cannot be allocated for it.
2018-09-26 15:08:23 +02:00
Yossi Levy
dd065e3be1
Fix warnings in block devices
2018-09-26 14:35:48 +03:00
David Saada
999042dda3
Handle NVStore tests in a low memory environment
2018-09-20 11:53:51 +03:00
Aashish chaddha
887aafe321
skip the flashsim test if enough memory cannot be allocated for it.
2018-09-18 11:38:39 -05:00
deepikabhavnani
1cb87d3235
Added thread safety info to FatFs/LittleFs
2018-09-13 11:32:36 -05:00
Cruz Monrreal
6c30b2f48d
Merge pull request #7924 from kjbracey-arm/filebase_default
...
Add special handling for "/default" filesystem
2018-09-05 19:40:29 -05:00
Kevin Bracey
c0dbc49aa0
Make "/default" an alias - add real names too
...
Make the built-in FileSystem::get_default_instance() implementation
instantiate storage as "flash" or "sd", with "default" as an alias.
This will aid interworking between simple and advanced filesystem code
on various platforms. The expectation is that the names "sd" or "flash"
will be always available if the device is available and configured,
regardless of what "default" represents.
2018-09-05 14:18:29 +03:00
Kevin Bracey
fd4b3879be
Change default filesystem name to /default
...
"/fs" is a tautology - not a good name for the default filing system, as
whereever we use it, we know we're specifying a filing system. Rename to
"/default".
2018-09-05 14:18:28 +03:00
David Saada
ff7858a306
Fix is_valid_erase function to use get_erase_size with address
2018-09-03 16:15:54 +03:00