Commit Graph

906 Commits (5f19b6b03a71f2f9b6585fb03a573de608a5532d)

Author SHA1 Message Date
Kyle Kearney 96cfc7393d Disable attempted 4-byte addressing for some boards
4-byte addressing has been seen to cause failures on NORDIC
boards and with Macronix memories. Suppress the attempt to enable it
on that hardware (via vendor quirks and a target check) until either
the failure cause can be fixed or a more robust suppression mechanism
is implemented.
2019-11-12 12:26:26 -08:00
Kyle Kearney 2526b9fc00 QSPIF: Handle fast mode enable via vendor quirks
Use a vendor id check to only perform this enable on devices which define the
 second configuration register where the fast mode enable bit lives.
Change _enable_fast_mode to use the standard status register reading and writing functions
2019-11-12 12:26:26 -08:00
Kyle Kearney 02dbf68e17 QSPIF: Handle parts with extra config registers
Default to 2 status registers, but update this value if necessary
 during vendor quirk handling for parts (currently only Macronix)
 which have one status register and two control registers. For the
 purposes of QSPIFBlockDevice, these are all considered status
 (or at least "status-like") registers because they are all written
 via the Write Status Register instruction.
Set the custom RDCR instruction for Macronix during quirk handling.
Update reading and writing of status registers to handle a variable
 number of status registers.
2019-11-12 12:26:25 -08:00
Kyle Kearney eb5494e7a9 QSPIF: Centralize handling of vendor quirks
Introduce a separate function for handling alterations to device interaction
which are not covered by the SFDP tables and therefore require checking against
the vendor id.
2019-11-12 12:26:25 -08:00
Kyle Kearney 26314d96c5 Don't clear quad enable when clearing block protection
QSPIFBlockDevice::_clear_block_protection() has logic to retain the
WIP and WEL bits in status register 1, but it failed to account for
the situation where the QE bit is also in status register 1.
In _sfdp_set_quad_enabled, note the status register and bit therein
for the quad enable, so that _clear_block_protection can retain it.
2019-11-12 12:26:25 -08:00
Kyle Kearney d2ef56859c QSPIF: Add back enable_fast_mode
This function writes a "config" register to ensure that the flash part
is in high performance mode, not low-power mode. This is required at
by at least MX25R6435F in order to operate at frequencies > 33MHz
(for reference, DISCO_L475VG_IOT01A runs the QSPI interface at 80 MHz).
The config register that this writes does not appear to be covered by
the SFDP spec (JESD216D.01) so this remains the status quo of
unconditional execution, as has been done on master since #8352.
2019-11-12 12:26:25 -08:00
Kyle Kearney 60e4d14577 Fix Astyle issues 2019-11-12 12:26:25 -08:00
Matthew Macovsky 619c5d9e60 Remove redundant QSPI erase alignment 2019-11-12 12:26:25 -08:00
Matthew Macovsky 2154948791 Update QSPI format after enabling 4-byte addressing 2019-11-12 12:26:25 -08:00
Matthew Macovsky 19330da412 Correct typos and formatting 2019-11-12 12:26:25 -08:00
Matthew Macovsky 91141bb397 Add missing debug prints to command functions 2019-11-12 12:26:25 -08:00
Matthew Macovsky d330deef57 Streamline setting of instruction member variables 2019-11-12 12:26:25 -08:00
Matthew Macovsky 4f01392497 Replace power function with bit shift 2019-11-12 12:26:25 -08:00
Matthew Macovsky 8fd1a502f7 Update SDFP erase detection to properly handle legacy erase instruction 2019-11-12 12:26:25 -08:00
Matthew Macovsky ba412734e1 Move configuration of QSPI format to within commands where it is necessary 2019-11-12 12:26:24 -08:00
Matthew Macovsky 08a0b3daeb Clear block protection on non-SST flash devices 2019-11-12 12:26:24 -08:00
Matthew Macovsky cf9b6d565a Enable 4-byte addressing when supported in accordance with the SFDP standard 2019-11-12 12:26:24 -08:00
Matthew Macovsky 4785e83a31 Update flash device reset to conform to SFDP standard 2019-11-12 12:26:24 -08:00
Matthew Macovsky cd78bf9129 Reorder some functions 2019-11-12 12:26:24 -08:00
Matthew Macovsky e2b1ac0972 Update reading/writing of status registers to conform to SFDP standard 2019-11-12 12:26:24 -08:00
Martin Kojtal d556bf698f
Merge pull request #11821 from rajkan01/feature-baremetal-greentea-psa
Skip Bare Metal green tea test for PSA component
2019-11-12 11:07:16 +01:00
Martin Kojtal dd753abcb8
Merge pull request #11825 from rajkan01/feature-baremetal-greentea-storage
Bare metal green tea test for storage component
2019-11-12 11:01:29 +01:00
RAJKUMAR KANAGARAJ d8e2dd5b47 Incorporated the review comments 2019-11-08 09:50:09 -08:00
RAJKUMAR KANAGARAJ 829e90afc8 Incorporated review comments 2019-11-08 07:07:12 -08:00
Vikas Katariya f4a1945911 Add PSA auto-generated files to components
To support online compiler build for PSA targets, some files are
auto-generated (LPC55S69_NS and ARM_MUSCA_A1_NS) by the script
from offline build system. Since these files are identical for these
V8-M targets it would be good to check them in to support online
compiler as they are COMPONENT_SPE and services related.

In folder: components/TARGET_PSA/
  --TARGET_MBED_SPM
    --COMPONENT_SPE
      psa_setup.c
  --TARGET_TFM
    --COMPONENT_SPE
      --inc
	tfm_partition_defs.inc
        tfm_partition_list.inc
        tfm_service_list.inc
        tfm_spm_signal_defs.h
  --services
    --inc
      autogen_sid.h
      mbed_spm_partitions.h

Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-08 14:57:06 +00:00
RAJKUMAR KANAGARAJ 8ecce14dad Skip Bare metal green tea test for storage related components or the components test cases which is based on RTOS 2019-11-06 04:49:19 -08:00
RAJKUMAR KANAGARAJ f30dd1cef2 Enable the Bare Metal green tea test
-PSA test framework uses the RTOS threads to run test cases so added MBED_CONF_RTOS_PRESENT to all the test cases.
2019-11-06 03:15:49 -08:00
Seppo Takalo 21987dbefa Remove commented-out code 2019-11-04 16:13:33 +02:00
Seppo Takalo ccb77384f1 Remove linefeeds from debug prints 2019-11-04 16:13:33 +02:00
Seppo Takalo 168b51c415 Add storage related files to baseline unittest.
* Refactor some headers to use relative path from Mbed OS root.
* Refactor some data types to compile on 64bit machines.
* Refactor some debug traces to use mbed_trace.
2019-11-04 16:12:36 +02:00
Martin Kojtal 02c722af42
Merge pull request #11620 from jainvikas8/ISSUE-11256
Fix enum type to align with psa-arch-tests
2019-10-22 09:42:13 +02:00
Martin Kojtal fe12608226
Merge pull request #11444 from jeromecoutant/PR_QSPI_EXTERNAL
QSPI : Define default pins at drivers level
2019-10-21 15:19:08 +02:00
Martin Kojtal 7ba151af99
Merge pull request #11603 from kyle-cypress/pr/qspi-bd-format-error
Report errors returned by _qspi_configure_format
2019-10-18 16:05:49 +02:00
Martin Kojtal b6266b5c01
Merge pull request #11604 from kyle-cypress/pr/qspi-inst-type
Introduce qspi_inst_t type for QSPI instructions
2019-10-18 15:46:03 +02:00
toyowata 5389536953 Add bootloader support for Seeed Arch-MAX 2019-10-17 10:05:03 +09:00
Kyle Kearney 52332f9437 QSPIFBlockDevice: Fix incomplete propagation of qspi_inst_t 2019-10-16 15:31:12 -07:00
Martin Kojtal fa6e01a69f QSPIFBlockDevice: fix type on the namespace mbed 2019-10-16 15:31:12 -07:00
Matthew Macovsky b1916fc498 Introduce qspi_inst_t type for QSPI instructions
Encourage the usage of consistent types (there are currently
 a mix of `int` and `unsigned int` used for qspi instructions)
QSPI commands are limited to 8 bits, to this is a typdef to char
2019-10-16 15:31:11 -07:00
Martin Kojtal 58fe0ba7b0
Merge pull request #11636 from maciejbocianski/fix_EFM32GG11_STK3701_qspi_block_device_config
EFM32GG11_STK3701: add QSPIF component config
2019-10-16 19:12:59 +08:00
Martin Kojtal a0dfcfb18f
Merge pull request #11642 from jeromecoutant/PR_CELLULAR_FC
STMOD_CELLULAR: remove flow control support for DISCO_L4R9I
2019-10-16 14:24:55 +08:00
jeromecoutant f117d3518d QSPIF frequency setting depends on QSPI memory not target.
This makes new board with the same QSPI memory addition.
2019-10-15 17:36:50 +02:00
jeromecoutant 03837a75b7 QSPIF component should use defined QSPI pins 2019-10-15 17:36:49 +02:00
Martin Kojtal b54315ece2
Merge pull request #11623 from jeromecoutant/PR_CELLULAR_CTS
STMOD_CELLULAR: set CTS with PullDown
2019-10-15 13:07:46 +08:00
Kyle Kearney 52cb2c2cfc Avoid stale mutex in QSPIFBlockDevice::read
Update to follow the same `goto exit_point` pattern that is used
by the rest of the functions to avoid leaving the mutex locked
when errors are detected and require the function to abort.
2019-10-14 13:59:47 -07:00
Jarkko Paso f8564cfadd S2-LP: sync with development repository 2019-10-14 09:07:10 +01:00
Kyle Kearney 3f20b80859 Reuse existing error for _qspi_configure_format
Use QSPIF_BD_ERROR_DEVICE_ERROR instead of introducing a new error code.
Add tr_error calls whenever _qspi_configure_format fails to aid in debugging.
2019-10-11 14:28:25 -07:00
Kyle Kearney 726a73c048 Report errors returned by _qspi_configure_format
The function returns a qspi_status_t but most usages in QSPIFBlockDevice
assume that it always succeeds.
2019-10-11 14:28:13 -07:00
Anna Bridge 489c30f569
Merge pull request #11297 from kyle-cypress/pr/qspi-dummy-cycles
Differentiate alt and dummy cycles in QSPIF
2019-10-11 14:34:17 +01:00
Anna Bridge 7fb52d9300
Merge pull request #11567 from kyle-cypress/pr-dev/simplify-qspi-params
Simplicy QSPIF target overrides for PSoC6
2019-10-11 12:22:09 +01:00
Anna Bridge 64df07288c
Merge pull request #11551 from Tharazi97/Coverity
Coverity updates
2019-10-11 11:01:10 +01:00
Anna Bridge f1295b9aa7
Merge pull request #11573 from felser/add_413_dragonfly
Add 413 dragonfly
2019-10-07 16:48:07 +01:00
jeromecoutant b648444d2f STMOD_CELLULAR: update readme 2019-10-07 17:11:02 +02:00
jeromecoutant cc5ccf5d16 STMOD_CELLULAR: remove flow control support for DISCO_L4R9I 2019-10-07 16:20:32 +02:00
Maciej Bocianski f6b9d26f4d EFM32GG11_STK3701: add QSPIF component config 2019-10-04 16:37:12 +02:00
jeromecoutant 2d8c1536a2 STMOD_CELLULAR: set CTS with PullDown 2019-10-03 15:26:32 +02:00
Vikas Katariya c1486eaf41 Fix enum type to align with psa-arch-tests
This is related to https://github.com/ARMmbed/mbed-os/issues/11256
When TARGET_PSA is enabled on Cortex-A boards, the SECURE
is redeclared. So to minimize the impact we can redeclare this in
val.h which is used only by Mbed. And `security_t` itself is used in
mbed-os\components\TARGET_PSA\TESTS, but the SECURE string is not used.

Renamed to `caller_security_t` which aligns with
https://github.com/ARM-software/psa-arch-tests
2019-10-02 16:37:58 +01:00
Matthew Macovsky 6bba46e48f Differentiate alt and dummy cycles in QSPIF
Propagate separate alt cycle and dummy cycle counts from QSPIFBlockDevice
down to the qspi driver, so that drivers which handle the two separately have
enough information to do so.
2019-09-30 16:17:49 -07:00
Matthew Macovsky baf375f8cb Allow for arbitrary QSPI alt sizes
The QSPI spec allows alt to be any size that is a multiple of the
number of data lines. For example, Micron's N25Q128A uses only a
single alt cycle for all read modes (1, 2, or 4 bits depending on
how many data lines are in use).
2019-09-30 14:45:08 -07:00
Ben Cooke dd778c4126 Add MTS_DRAGONFLY_F413RH platform to mbed-os 2019-09-30 13:50:40 -05:00
Martin Kojtal 4ed8603d64
Merge pull request #11541 from dmaziec1/recv_scanf_oob_fixed
esp8266 _oob_* : recv() brought back where it was needed
2019-09-30 13:59:53 +02:00
Anna Bridge 372a3f19c9
Merge pull request #11514 from dmaziec1/UART_deep_sleep_enable
ESP8266 unlocks deep sleep when disconnected
2019-09-27 16:50:22 +01:00
Dominika Maziec e84e098bcb esp8266 in _oob_* : recv() brought back where it was needed 2019-09-27 15:54:43 +02:00
Kyle Kearney ea7f6683e4 Simplicy QSPIF target overrides for PSoC6
All current PSoC 6 targets support the same QSPI frequency and minimum
program size. So specify a single entry rather than duplicating for
each device.
2019-09-25 14:53:54 -07:00
int_szyk 24cb0334eb esp8266-driver: fix variables init in constructor.
Fixes Coverity issue about not initialized members.
2019-09-23 15:27:34 +02:00
Dominika Maziec 1aa3b5d9d0 UART in deep sleep mode when it is disconnected 2019-09-20 17:18:32 +02:00
Martin Kojtal 656fed16da
Merge pull request #11430 from tymoteuszblochmobica/name
Member get_interface_name implemented  in ESP8266Interface
2019-09-20 14:17:05 +02:00
Dominika Maziec 66bf8bc97b ESP8266 Unified Mbed trace prints.
All logs now:
- start with a function name (it is not automatically logged by the logger)
- do not contain class name (this can be inferred from log preamble)
- message starts with a capital letter and ends with a full-stop
2019-09-13 16:54:31 +02:00
Martin Kojtal f5dd7db8c7
Merge pull request #11459 from dmaziec1/recv_scanf_oob
Replaced in ESP8266::_oob_* recv() with scanf()
2019-09-13 16:17:48 +02:00
Martin Kojtal ac7b851ba0
Merge pull request #11409 from dmaziec1/esp8266-nonblocking
esp8266 nonblocking connect/disconnect
2019-09-13 16:12:13 +02:00
Dominika Maziec 9ddef624bc Replaced in ESP8266::_oob_* recv() with scanf()
`ATCmdParser::recv()` should be used when we skim through data trying to look for something and `ATCmdParser::scanf()` is to be used when we know what we are supposed to get- as in `_oob_*` functions, except from `_oob_connection_status()`
2019-09-11 17:00:37 +02:00
Dominika Maziec f5ccbe7972 esp8266 nonblocking connect/disconnect
`ESP8266Interface::connect()` and `ESP8266Interface::disconnect()` can be used in terms of asynchronous operations. Mainly, it is based on newly added private variable of type  `esp_connection_software_status` which is used to keep tracking of state of connection.`wifi_connect_nonblock` test was renamed and amended to test both `connect()` and `disconnect()` operation
2019-09-10 09:37:46 +02:00
Martin Kojtal 9da5c2227a
Merge pull request #11427 from dmaziec1/esp8266_coverity
ESP8266Interface buffer null-terminated and parameters of scan function in correct order
2019-09-06 13:03:43 +02:00
Tymoteusz Bloch 56ede03e37 Member get_interface_name implemented in ESP8266Interface 2019-09-06 11:00:31 +02:00
Martin Kojtal 2fc546a050
Merge pull request #11419 from VeijoPesonen/fix_missing_include
Adds missing include required by fixed-width format specifiers
2019-09-06 10:57:48 +02:00
Dominika Maziec 93119eb785 ESP8266Interface buffer null-terminated and parameters of scan function in correct order 2019-09-05 16:28:47 +02:00
Veijo Pesonen 6e26b74fdb Adds missing include required by fixed-width format specifiers 2019-09-05 13:20:11 +03:00
Martin Kojtal 567479792c
Merge pull request #11392 from hugueskamba/hk-remove-minor-warnings
Remove minor build warnings
2019-09-05 09:59:39 +02:00
Hugues Kamba 9f44c2c4d2 Sync with TF upstream code as much as possible to remove warning 2019-09-03 13:47:06 +01:00
Martin Kojtal e001216b55
Merge pull request #11315 from Patater/psa-crypto-api-1.0b3
Update Mbed OS for PSA Crypto API 1.0b3
2019-09-03 09:20:15 +02:00
Jaeden Amero 43af68d630 attestation: Don't create attestation key twice
If psa_attestation_inject_key() is called twice, exit with a non-fatal
error status without attempting to create another attestation key. The
key already exists and doesn't need to be added again.
2019-09-02 17:10:59 +01:00
Jaeden Amero 3d1b8363db Use PSA Crypto API 1.0b3
The PSA Crypto API has moved on from 1.0b2 to 1.0b3, bringing along with
it some breaking changes. Update Mbed OS to use the 1.0b3 API.
2019-09-02 17:10:59 +01:00
Hugues Kamba e65a0c0a99 Remove minor build warnings 2019-09-02 15:04:58 +01:00
Martin Kojtal c74d67ed52
Merge pull request #10711 from geky/add-i2cee-driver
Add i2cee-driver to components
2019-08-30 17:04:01 +02:00
Jaeden Amero 3e53118727 crypto: Add IPC for psa_copy_key() 2019-08-29 14:55:21 +01:00
Jaeden Amero 4eb4b32910 psa: Update crypto service for PSA Crypto 1.0b3 2019-08-29 14:55:21 +01:00
Martin Kojtal 98c0fd06be
Merge pull request #11343 from OpenNuvoton/nuvoton_esp8266_power_pin
ESP8266: Support power pin in custom wiring
2019-08-29 10:09:52 +02:00
Martin Kojtal 56a8227c54
Merge pull request #11304 from AnttiKauppila/esp8266_fix
RSSI getter fixed for ESP8266
2019-08-29 08:49:24 +02:00
Martin Kojtal a884c7c090
Merge pull request #11302 from desmond-blue/feature-config-esp8266-baud-rate
Enable json overriding ESP8266 default baud rate
2019-08-29 08:37:50 +02:00
Kyle Kearney 1facc76d22 Specify QSPI frequency for more Cypress targets
Provide values for CY8CKIT_062S2_43012 and CYW943012P6EVB_01
2019-08-28 17:56:27 -07:00
Chun-Chieh Li 650e2e593c ESP8266: Support power on/off in custom wiring
In custom wiring, there can be a power pin to power on/off the modem. This
commit supports it and allows for the following configurations:

- power pin name
- power pin polarity
- power on/off delay time
2019-08-27 17:57:06 +08:00
Jarkko Paso 45d1c68814 S2-LP: Sync with development repository 2019-08-27 11:42:08 +03:00
Antti Kauppila 2bdf3bbf23 astyle fixes 2019-08-26 09:56:18 +03:00
Desmond Chen 77d403b20a Enable json overriding ESP8266 default baud rate 2019-08-26 11:38:30 +08:00
Jaeden Amero 0758d23f00 crypto: Make service parameter names match API
Make the service implementation use the same names as the API as
declared in the crypto.h header. This improves readability and
maintainability of the service.
2019-08-23 17:16:10 +01:00
Jaeden Amero b0c83501a4 crypto: Make IPC declaration order follow crypto.h
Order the IPC functions in the same order as the functions are listed in
crypto.h for improved readability.
2019-08-23 17:16:10 +01:00
Jaeden Amero dafbf27340 crypto: Fix "refence count" typo
Rename the reference count variable to something shorter and avoid using
the mispelling "refence".
2019-08-23 17:16:10 +01:00
Jaeden Amero 97447677ba crypto: Remove duplicate PSA_CRYPTO_INIT
PSA_CRYPTO_INIT is defined as a service identifier. We don't need to
redefine it as a secure function. There is only one function under this
service identifier, so no secure function definitions are necessary to
differentiate between.
2019-08-23 17:16:10 +01:00
Jaeden Amero dda4c47a4b crypto: Match styles of crypto struct headers
Make crypto_struct_ipc.h (for use with PSA Crypto clients) match style
with the file it is based on, crypto_struct.h (from Mbed Crypto). This
helps to keep the file diff minimal so it's easy to see the meaningful
(non-style) changes.
2019-08-23 17:16:10 +01:00
Antti Kauppila a074721d18 RSSI getter fixed for ESP8266 2019-08-23 12:28:04 +03:00
Jaeden Amero 273c62516d crypto: Remove old compliance tests
We'll use the new ARM-software/psa-arch-tests directly instead for PSA
Crypto API 1.0b3. This commit removes the crypto compliance tests only
for now, leaving attestation and storage tests.
2019-08-21 19:43:58 +01:00
Michal Paszta 5a9183c549 storage: fix potential memory corruption and check return values 2019-08-21 09:26:35 +03:00
Martin Kojtal a5a2036c65
Merge pull request #11224 from AnttiKauppila/Coverity_fixes
Coverity issues fixed
2019-08-20 09:40:20 +02:00
Martin Kojtal 101ae73b87
Merge pull request #11063 from linlingao/f_cc3220sf_launchxl
Add CC3220SF_Launchxl to Mbed OS
2019-08-19 12:08:11 +02:00
Antti Kauppila 84063bf222 Coverity issues fixed 2019-08-14 16:22:05 +03:00
Pavel Slama 4974c86b54 astyle fix bracket 2019-08-13 21:48:18 +02:00
Pavel Slama 7b0a8f23a2 atyle format 2019-08-13 21:42:10 +02:00
Hugues Kamba 27e4ca18cf Fix inclusion of test related directories by build tool 2019-08-09 10:20:48 +01:00
Seppo Takalo 7d7416558a
Merge pull request #11073 from ARMmbed/feature-public-headers
Feature public headers
2019-08-07 16:04:45 +03:00
Michal Paszta 73b122b2c4 Coverity and compilation warnings fixes 2019-08-07 10:30:52 +03:00
Pavel Slama 7ff5a45a24 replace wait with rtos sleep 2019-08-06 15:57:16 +02:00
Michal Paszta 1fe59b70e3 Bring back SPIF module-specific debug logs
The logs are switched off by default and can be enabled with a
module-specific compile switch in mbed_app.json.

Logs brought back from PR #10501
2019-08-06 10:53:36 +03:00
Hugues Kamba bfa1b4dd84 Drivers/Events/RTOS Public and internal APIs cleanup (#10955)
Separate drivers, events, and rtos internal APIs from public APIs.

* Move source files to source subdirs
* Move internal headers to internal subdirs
* Add Doxygen comments for documenting internal and public APIs
* Remove source code from header files in order to remove include pre-processor directives
that included header files not directly used by said header files
* Explicitly include header files instead of implicit inclusions via third-party header files.

Release Notes

This will break user code that was using an internal API as the internal header files have been moved.
This will only break if the user was including the header file using a namespace (i.e #include "foo/bar.h" instead of #include "bar.h"
2019-08-02 12:23:47 +01:00
Seppo Takalo 818c1d6f0f
Merge pull request #11130 from Tharazi97/NotSupportedTest
Updated testcases
2019-08-02 13:27:54 +03:00
int_szyk ae6f8be146 Newline at the end of files 2019-08-01 08:44:58 +02:00
int_szyk 8b68a1ea58 Updated testcases 2019-07-31 10:46:38 +02:00
Filip Jagodzinski 5ee22d0c24 Test: FPGA shield: Fix GPIO-IRQ test_utils.h
Include the gpio_irq_api header to fix build failures.
2019-07-25 11:04:16 +02:00
Filip Jagodzinski 5e17eddf12 Test: FPGA shield: Update the GPIO-IRQ API tests
Use the gpio_irq_pinmap() for GPIO-IRQ testing.
2019-07-25 11:04:10 +02:00
Seppo Takalo c5c745804d
Merge pull request #11038 from fkjagodzinski/fpga_test-gpio
Extend the GPIO HAL API tests
2019-07-24 15:12:32 +03:00
Seppo Takalo 3a96f436ea
Merge pull request #10847 from davidsaada/david_ps_add_sec_flags
PSA storage: Conform to "PSA 1.0.0" spec release
2019-07-23 12:05:22 +03:00
Lin Gao e74fbcd79e Add CC3220SF_Launchxl to Mbed OS 2019-07-17 13:19:32 -05:00
Seppo Takalo 987533859a
Merge pull request #10104 from kjbracey-arm/sleep_api
Sleep rework, RTOS API for bare metal, wait deprecations
2019-07-17 14:37:53 +03:00
Seppo Takalo 5b6034d0a9
Merge pull request #11028 from c1728p9/fpga_warnings
Fix FPGA CI Test Shield warnings
2019-07-17 14:32:43 +03:00
Seppo Takalo 0425ffda9b
Merge pull request #11026 from c1728p9/skip_peripherals
Add a restricted peripheral list
2019-07-17 14:32:08 +03:00
Kevin Bracey a522dcfa0a Replace deprecated wait calls 2019-07-15 10:13:50 +03:00
Kevin Bracey fc8e8f67c6 Deprecate wait/wait_ms APIs 2019-07-15 10:13:50 +03:00
David Saada fb3559d841 PSA storage: Conform to "PSA 1.0.0" spec release
- Add the no confidentiality & no replay protection flags
- Add actual size parameter in PS/ITS get APIs
- Change a few size parameters from uint32_t to size_t
2019-07-14 18:50:47 +03:00
Filip Jagodzinski 74be850126 Test: FPGA shield: Extend the GPIO HAL API tests 2019-07-12 14:01:57 +02:00
Russ Butler 87c6a74a21 Fix FPGA CI Test Shield warnings
Fix warnings due to unused variables, comparison between signed and
unsigned. This patch also re-enables I2C asserts that were disabled
during early development.
2019-07-11 16:16:34 +01:00
Russ Butler 57d75538da Add a restricted peripheral list
Allow peripherals to be excluded from testing.
2019-07-11 16:08:33 +01:00
Filip Jagodzinski ed41994a3a Test: HAL: serial: Add DEVICE_SERIAL_FC guards
Fix undefined references to serial_set_flow_control.
2019-07-09 13:21:42 +02:00
Arto Kinnunen 492d10cb3e
Merge pull request #10967 from mtomczykmobica/IOTCORE-1251
ESP8266: fix driver's support AT firmware version
2019-07-08 11:49:05 +03:00
Marcin Tomczyk 9ae4463ccc Need to change ESP8266 driver's support AT firmware version. Only AT version 1.6 0r above support AT+CWCOUNTRY command. Command AT+CWLAP format is different for version 1.6 and above 2019-07-05 10:07:29 +02:00
Martin Kojtal b55344c50b
Merge pull request #10944 from maciejbocianski/i2c_fpga_test_update
Update I2CTester for fpga-ci-test-shield
2019-07-04 08:46:27 +01:00
Maciej Bocianski a6353b0c92 I2CTester: fix dosc 2019-07-03 10:26:41 +02:00
Maciej Bocianski b65d93e5ef I2CTester: add address mismatch statistics 2019-07-03 10:05:53 +02:00
Maciej Bocianski fb589319bf I2CTester: upgrade checksum calculation 2019-07-02 20:00:31 +02:00
Martin Kojtal 149d53cc89
Merge pull request #10619 from jamesbeyond/fm-iap
Fastmodel: enable flashIAP and kvstore
2019-07-02 14:23:00 +01:00
Martin Kojtal 23037b9d6b
Merge pull request #10921 from jeromecoutant/PR_STMOD
STMOD_CELLULAR: readme file additional information
2019-07-02 12:40:32 +01:00
Martin Kojtal 1aad06b394
Merge pull request #10829 from devran01/feature_trusted-firmware-m_e7efdc6
PSA: TFM import
2019-07-01 14:35:54 +01:00
jeromecoutant dc72c9b1a4 STMOD_CELLULAR: Read me update to describe test procedure 2019-06-28 17:09:46 +02:00
jeromecoutant a7fced3b68 STMOD_CELLULAR: print cleanup 2019-06-28 17:09:43 +02:00
Martin Kojtal 85c477c1dc
Merge pull request #10609 from kjbracey-arm/us_ticker_optimise
wait_us optimization
2019-06-28 14:29:00 +01:00
Kevin Bracey c5b9779858 Remote "static" from MBED_FORCEINLINE
Static keyword causes problems when trying to use force-inlined
functions from normal inlined functions. This is not legal:

    static inline void forced() { }

    inline void normal() { forced(); }

You cannot reference internal-linkage things from external-linkage
inline functions.

Removal of the static implies that in C there would need to be a
non-inline definition in case anyone calls it non-inlined, but if the
force attribute is doing its job, that should not happen.

Only significant in-tree user of the MBED_FORCEINLINE macro is
the atomic operations - making this change permits atomic operations
from non-static inline functions.
2019-06-27 16:12:30 +03:00
Devaraj Ranganna 6e899b3cc9 TF-M patch/workaround related to (TF-M issue #T240)
- Link to bug tracking: https://developer.trustedfirmware.org/T240

The issue is fixed by TF-M team. However they autogenerate region details
(code, ro, rw, zi and stack ) using linker scripts and in mbed-os we
also autogenerate region details but using mix of service definition in
json file and other template files.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-06-26 14:58:19 +01:00
Devaraj Ranganna 9a5110561a TF-M patch: Remove secure_fw/core/tfm_func_api.c which is required only
when TFM_PSA_API is not set

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-06-26 14:23:26 +01:00
Devaraj Ranganna cb748c5608 TF-M patch: Change #if TFM_PSA_API to #ifdef TFM_PSA_API to avoid
compiler errors as mbed-cli only generates "-D" macros only for
"macros" defined in targets.json

TF-M task link: https://developer.trustedfirmware.org/T396

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-06-26 14:23:26 +01:00
Devaraj Ranganna cb8f2c07a1 1. Include MBEDTLS_CONFIG_FILE before evaluating MBEDTLS_PSA_CRYPTO_C
2. Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-06-24 14:33:04 +01:00
Martin Kojtal f2a7408334
Merge pull request #10866 from LMESTM/component_cellular_stmod
Adding stmod_cellular component
2019-06-24 12:16:29 +01:00
Laurent Meunier 1e06ad0155 Astyle fixes 2019-06-20 10:12:31 +02:00
Anna Bridge 61881e81fd
Merge pull request #10756 from martinichka/feature-correct-trace-level-storage-spif
Cleaned up trace log SPIF Block Device
2019-06-19 12:29:39 +01:00
Laurent Meunier fe2b2a7172 Adding stmod_cellular component
stmod_cellular component library adds up support for cellular modem that
are connected to the STMOD+ connector.

Currently supported modems are BG96 and UG96.
2019-06-19 11:05:37 +02:00
Martin Kojtal 180356130f
Merge pull request #10779 from martinichka/feature-spif-bigger-16m
Add support for SPIF of size bigger than 16Mbyte
2019-06-14 07:38:34 +01:00
Christopher Haster b0d36ebfc1 Remove mbed.h includes from I2CEEBlockDevice 2019-06-13 11:33:14 -05:00
Martin Kojtal 4625221f1e
Merge pull request #10746 from davidsaada/david_fix_ps_flags
PSA protected storage: Add encrypt & RB protect flags by default to set.
2019-06-09 18:17:19 +01:00
Martin Kojtal 48d23722fe
Merge pull request #10672 from c1728p9/fix_typos
Fix typos in the FPGA CI Test Shield component
2019-06-09 18:05:52 +01:00
Marten Lootsma 8a328ddc86 Changed to one more info to debug 2019-06-08 08:17:56 +02:00
Marten Lootsma e0ad71554b Fixed astyle error and removed duplicated comment 2019-06-08 07:32:10 +02:00
Qinghao Shi 7a1aafaf40 FastModel: change FVP_MPS2_M3 to FVP_MPS2 enable the MPS2 Family 2019-06-06 18:54:58 +01:00
Qinghao Shi 2e4329192e FastModel: enable FLASHIAP componment 2019-06-06 18:52:30 +01:00
Michael Schwarcz 910a402ce6 TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #241)
- Link to bug tracking: https://developer.trustedfirmware.org/T241

(cherry picked from commit da01e3411f)
(cherry picked from commit 280715f9b7)
2019-06-06 16:08:34 +01:00
Michael Schwarcz 35938a4071 TF-M patch: Fix service handles not cleared issue (TF-M issue #230)
- Link to bug tracking: https://developer.trustedfirmware.org/T230

(cherry picked from commit 0c23e86989)
(cherry picked from commit 9c1e080e39)
2019-06-06 16:08:33 +01:00
Michael Schwarcz 795e6418d0 TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
- Link to bug tracking: https://developer.trustedfirmware.org/T239

(cherry picked from commit 5f2e4b3911)
(cherry picked from commit 5d41a2aeae)
2019-06-06 16:08:33 +01:00
Marten Lootsma aed0d054d7 Added support for SPIF of size bigger than 16Mbyte
- checks if size is bigger than 16Mbyte
- changes to 4 byte address mode of neccessary
2019-06-06 16:01:40 +02:00
Michael Schwarcz 11bff3f3cb TF-M patch: General modifications
- Remove un-needed files
- Disable printf and uart
- Modify include paths
- Guard macros from mbed_lib with ifndef

(cherry picked from commit 1f30b52488)
(cherry picked from commit 71cd34df32)
(cherry picked from commit 185d2865da)
(cherry picked from commit fb068d2cb4)
2019-06-06 14:49:41 +01:00
Devaraj Ranganna b0fe59df00 [trusted-firmware-m]: Updated to e7efdc6 2019-06-06 14:47:00 +01:00
Marten Lootsma ed36cc4e06 Add trace logging with size of block device 2019-06-04 16:03:56 +02:00
Marten Lootsma 5484f585a6 Cleaned up SPIF trace log.
- Test most SPIF log to DEBUG level.
- Removed DEBUG/ERROR/INFO tags.
- Removed not needed line endings.
2019-06-04 16:03:56 +02:00
David Saada dcd2c292af PSA protected storage: Add encrypt & RB protect flags by default to set. 2019-06-03 16:32:55 +03:00
Martin Kojtal 62698b903c
Merge pull request #10660 from mprse/fpga_ts_add_sckl_stats
Add SCLK and SIN stats to SPIMasterTester
2019-06-03 08:49:39 +01:00
Martin Kojtal 4f6035e6b1
Merge pull request #10501 from davidsaada/david_spif_driver_unlog
Remove excessive info and debug prints in SPIF driver
2019-06-03 08:33:19 +01:00
Martin Kojtal 34b4564371
Merge pull request #10680 from artokin/allow_compilation_withoout_nanostack
Add compilation flags to rf_configuration
2019-05-31 12:34:37 +01:00
Christopher Haster 51dd44337b Add 'components/storage/blockdevice/COMPONENT_I2CEE/' from commit 'd92806c11e0e05280c08db0b3ed6459b2d8dea2c'
git-subtree-dir: components/storage/blockdevice/COMPONENT_I2CEE
git-subtree-mainline: 9cc1caa031
git-subtree-split: d92806c11e
2019-05-29 19:34:16 -05:00
Martin Kojtal cc491812a8
Merge pull request #10427 from kjbracey-arm/new_standards
Set compilers to C++14 and C11
2019-05-28 20:34:00 +01:00
Martin Kojtal 8fc2a3c92a
Merge pull request #10675 from 0xc0170/update-mbedtls-2.18.0-rc1
Update mbedtls 2.18.0 rc1
2019-05-28 20:24:18 +01:00
Arto Kinnunen 5e23fbaa83 Add compilation flags to rf_configuration
Add flags to allow compilation without nanostack.
2019-05-27 17:06:59 +03:00
Martin Kojtal 303d0f0c0c SPE: fix inject entropy macro
Use new TLS macro
2019-05-27 11:50:09 +01:00
Przemyslaw Stekiel 87902a8e76 Add SCLK and SIN stats to SPIMasterTester.
It has been found that there is a problem with the new K66F SPI driver when clock polarity is high.
After setting clock polarity to high SCLK line is still low. When transmission starts and CS is asserted (in case of manual CS handling) SCLK signal is invalid (low). After first transfer SCLK idle state becomes high.
SPI implementation on FPGA test shield is resistant on this bug and transmission is successful. The problem has been found on two boards communication test where transmission fails.

The idea is to add support to the FPGA test shield to catch such errors and verify this in the test.
2019-05-27 09:48:33 +02:00
Russ Butler 424c4d9feb Fix typos in the FPGA CI Test Shield component
Fix some typos.
2019-05-26 13:29:14 -05:00
Kevin Bracey 7ec1663dd7 FPGA_CI_TEST_SHIELD: C++11 fix 2019-05-24 16:26:15 +03:00
Martin Kojtal a4738fa9a8
Merge pull request #10540 from c1728p9/fpga_ci_test_shield
Check in files for the FPGA CI Test Shield
2019-05-24 12:56:35 +01:00
Russ Butler e2312c4ff4 Bring in more changes from FPGA repo
Bring in updates the the FPGA CI Test Shield repo.
2019-05-23 19:17:32 -05:00
Martin Kojtal b2abfc3529
Merge pull request #10624 from artokin/prepare_for_mbedos513
Nanostack release for Mbed OS 5.13
2019-05-23 11:16:56 +01:00
Martin Kojtal 0560ecc558
Merge pull request #10478 from chrissnow/Dataflash-Erase_Size
DataFlash: Change erase size to pages to reduce memory usage.
2019-05-21 14:46:32 +01:00
Arto Kinnunen f03e51a23d Sync 802.15.4 RF drivers from master repos
-Sync STM S2LP with v0.0.6 in master repo
-Sync Atmel with v3.0.8 in master repo
-Sync MCR20A with v1.0.6 in master repo
2019-05-20 15:27:25 +03:00
Anna Bridge 9fb4429379
Merge pull request #10520 from kjbracey-arm/build_tz_heuristic
Permit non-TrustZone ARMv8 build
2019-05-17 11:06:55 +01:00
Chris Snow 157debffa6 Change erase size to pages to reduce memory usage 2019-05-15 16:23:16 -06:00
Martin Kojtal 3ea1c56124
Merge pull request #10147 from kjbracey-arm/atomic_bitwise
Assembler atomics
2019-05-13 14:18:05 +01:00
Anna Bridge 97e1c9cbaf
Merge pull request #10287 from linlingao/pr10177
Enable MTS_DRAGONFLY_F411RE to register with Pelion
2019-05-10 16:21:46 +01:00
Russ Butler 166ff13fe8 Add missing documentation
Add documentation to the MbedTester class and the test_utils.h file.
2019-05-08 13:15:42 -05:00
Russ Butler 45301ea718 Run astyle on all FPGA files
Run astyle to correct formatting.
2019-05-08 11:01:17 -05:00
Russ Butler 11bd96601b Remove inclusion of mbed.h from FPGA
And fix any build errors this caused.
2019-05-07 17:01:44 -05:00
Russ Butler b3332129b2 Check in files for the FPGA CI Test Shield
Bring all the FPGA CI Test Shield C and C++ driver files into mbed-os
as the component FPGA_CI_TEST_SHIELD. When this component is enabled
all the files that are needed to communicate with, update firmware on
and run testing with the FPGA are built.
2019-05-07 15:10:47 -05:00
Kevin Bracey 65e0887ef3 Permit non-TrustZone ARMv8 build
Change the heuristic for selection of CMSE in the tools python, so that
a non-TrustZone ARMv8 build can happen.

Ideally we would have more direct flagging in the targets, but this
refines the heuristic so the necessary behaviour can be easily
achieved.

* DOMAIN_NS=1 is based purely on the `-NS` suffix on the core name.

* Enabling CMSE in the compiler and outputting a secure import library
  is now enabled when the core doesn't have an `-NS` suffix by either
  the target label `TFM` being present or the flag `trustzone` being set.

This covers the existing ARMv8-M behaviour - TF-M builds have the TFM
label, as per its documentation; M2351 secure builds have no explicit
flagging, so we ensure that the M2351_NS target has the trustzone flag
set, and the out-of-tree secure target inherits that.
2019-05-03 13:36:38 +03:00
Lin Gao 438a52f15a Fix handoff issue from the bootloader to the application on MTS_DRAGONFLY_F411RE 2019-05-02 11:25:19 -05:00
Ben Cooke 3d68a53b81 Correct the default pins for the spi flash for the mts dragonfly - on behalf of Ben C. 2019-05-02 11:25:19 -05:00
Martin Kojtal 40f8cb95a8
Merge pull request #10435 from morser499/pr/cy-smif
Add support for QSPI to Cypress Boards
2019-05-02 13:41:56 +01:00
Ryan Morse a8570ffe6c Added support for QSPI to Cypress Boards 2019-05-01 07:09:58 -07:00
Alexander Zilberkant 117e3e82b6 Update PSA includes to autogenerated files 2019-04-30 14:41:09 +03:00
Alexander Zilberkant 8c5ba9154d Update PSA code generator
Unify TF-M and Mbed-SPM code generators:
 - Unify SPM initialization logic:
   - All partitions are registered at once
   - Test partitions are guarded by #ifndef
   - Introduce single template list
 - Beatify template files and add "Autogen-do not modify" notice
Prepare for integration with mbed-os build system:
 - Generate all the files in a single place
Simplify tools/psa/release.py script
2019-04-30 14:10:23 +03:00
Alexander Zilberkant ab01bea46d Delete autogenerated files 2019-04-30 14:10:23 +03:00