Commit Graph

105 Commits (a04498c4bcbe8a3f254f94bcf3daa5a8eee7c8da)

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