Commit Graph

33368 Commits (28cdb37058864c3336005a68e446a23f3fafb37c)

Author SHA1 Message Date
Chun-Chieh Li 3fc81fb883 M2354: Comply with standard pin naming rule 2021-05-26 09:35:05 +08:00
Chun-Chieh Li e2491509f5 M2354: Update to TF-M 1.3 2021-05-26 09:35:05 +08:00
Chun-Chieh Li 98f5a99219 M2354: Refine TF-M/Mbed integration readme 2021-05-26 09:35:04 +08:00
Chun-Chieh Li 9fee7d9b18 M2354: Use TF-M exported region_defs.h to replace target.mbed_rom_start and friends 2021-05-26 09:35:04 +08:00
Chun-Chieh Li 7db441401b M2354: Support TRNG as entropy source on TF-M
1.  Update TF-M Secure bin enabling TRNG as entropy source
2.  Replaced with above, remove TRNG HAL stuff on Mbed, including platform extra secure functions, cmake, etc.
2021-05-26 09:35:04 +08:00
Chun-Chieh Li 2c3fb3d727 M2354: Reduce output image size
1.  Enable mcuboot no padding option
2.  Support output image format Intel Hex
2021-05-26 09:35:03 +08:00
Chun-Chieh Li 356c8fdeb3 M2354: Add serial_tx_empty(...)
Enable serial sync with the below PR:
https://github.com/ARMmbed/mbed-os/pull/14600
2021-05-26 09:35:03 +08:00
Chun-Chieh Li fd8ac31537 M2354: Support TF-M
1.  Configure non-secure target name to NU_M2354 (targets/targets.json). No NU_M2354_NS alias
2.  Following template target, enable image signing and concatenating in post-build process
    (1) Add post-build script (tools/targets).
    (2) Enable TF-M custom build by centralize relevant stuff imported from TF-M (COMPONENT_TFM_S_FW).
3.  Add M2354Code.merge_secure into whitelist of uvision6 (tools/export/uvision/__init__.py).
4.  Add M2354 CMSIS pack database (tools/arm_pack_manager/index.json).
5.  Configure stdio baudrate to 115200 to match TF-M port (platform/mbed_lib.json).
6.  Define CMSIS_NVIC_VIRTUAL to override NVIC_SystemReset with TF-M version (cmsis_nvic_virtual.h).
7.  Override tfm_ns_interface_xxx(...) to enable NS secure call:
    (1) At pre-rtos stage
    (2) In SVC context
8. Implement secure function call with tfm_platform_ioctl(...).
9. Combine stddriver_secure.h/c and hal_secure.h/c into platform_extra_secure.h/c.
10. Fix peripheral base to non-secure (PeripheralNames.h) (TrustZone-unaware since Mbed OS 6.0).
11. Fix NU_PORT_BASE/NU_GET_GPIO_PIN_DATA/NU_SET_GPIO_PIN_DATA to non-secure (PinNamesCommon.h) (TrustZone-unaware since Mbed OS 6.0).
12. NSC convention for StdDriver sys/clk (both TF-M and Mbed must follow)
    (1) SYS_ResetModule
        Usage: Replaced with SYS_ResetModule_S on Mbed OS
        Action: Make it inaccessible from Mbed (neither source nor NSC). Provide SYS_ResetModule_S on Mbed via platform ioctl instead.
    (2) CLK_GetXxx
        Usage: Called in bpwm/i2s/qspi/sc/sdh and system_M2354 on Mbed OS
        Action: Make them inaccessible from Mbed (neither source nor NSC). Re-provide them on Mbed via platform ioctl instead.
13. Remove DISABLE/ENABLE macro definitions in BSP to avoid name conflict with other modules
14. Change to TMR4/5 from TMR2/3 for implementing us_ticker/lp_ticker because TMR2 is used for TF-M NSPE test
15. Support cmake

NOTE: Export(uvision6) doesn't support TF-M target. To enable it for partial compile on Keil, force below function to return true.
      is_target_supported(tools/export/uvision/__init__.py)
2021-05-26 09:35:02 +08:00
Anna Bridge 2ea0386f55
Merge pull request #14691 from adbridge/master
Add GitHub action for issue triaging script
2021-05-25 17:02:50 +01:00
Anna Bridge cb4dd19ad0
Merge pull request #14689 from MubeenHCLite/HighSpeed_Async_SPI_limitation
Information on Asynchronous SPI limitation on High Speeds
2021-05-25 14:05:41 +01:00
Anna Bridge 891805b42e
Merge pull request #14662 from AGlass0fMilk/can-message-comparison-operators
Add CANMessage deep comparison operators
2021-05-25 14:05:03 +01:00
Anna Bridge ef0b31ab53
Merge pull request #14629 from artokin/phy_mode_and_channel_plan_master
Mesh api: Added PHY mode, channel plan IDs and configuration functions
2021-05-25 14:04:32 +01:00
jeromecoutant c69654f82c STM32WL astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 4181aad209 STM32WB astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 49f8ddd456 STM32L5 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 1694acd7ac STM32L4 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 8b0f3582a8 STM32L1 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant b363359d68 STM32L0 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant cfd86882d3 STM32H7 astyle 2021-05-25 14:45:52 +02:00
jeromecoutant 9cadad3dcf STM32G4 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant 4b75eb8d26 STM32G0 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant 798057d07b STM32F4 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant f4d8c8a746 STM32F3 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant cedb1043f1 STM32F0 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant c02cb71b35 STM32 common filess astyle 2021-05-25 14:45:30 +02:00
reme 00d6093ed6 STM32H7 update drivers version to CUBE V1.9.0 2021-05-25 13:38:23 +01:00
reme 884b35af79 README update STM32H7 to CUBE V1.9.0 2021-05-25 13:38:20 +01:00
Affrin Pinhero 67a38341b4 STM32: Fixed I2C Bug reported in ARMmbed#14696
Modified HAL_I2C_ErrorCallback function to solve bug reported in I2C Driver.
This commit solves compilation error occured when DEVICE_I2CSLAVE is not defined.

fix #14696

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-25 17:54:39 +05:30
Anna Bridge 8b1cd98a8e
Merge pull request #14574 from noonfom/string-buffer-length
Fix string buffer length in UUID trace helper
2021-05-25 12:38:06 +01:00
Anna Bridge e5c79edf34
Merge pull request #14665 from LDong-Arm/frozen_tools_end
Travis: Move frozen tools check to the end
2021-05-25 12:26:58 +01:00
jeromecoutant 645fed5393 STM32WB HCI driver: Add check for code size configuration 2021-05-25 12:06:55 +02:00
pennam d317dfccbb make i2c_salve_read return the number of bytes read to let mbed-os read API return an error if less bytes are readed 2021-05-25 08:46:02 +02:00
Qinghao Shi 8301854be1 TESTS: rename variable interface to fix broken tests 2021-05-24 19:52:51 +00:00
Affrin Pinhero 72138269d3 Merge branch 'ARMmbed:master' into adcBank 2021-05-24 23:50:22 +05:30
Affrin Pinhero 0c9523a2a6 STM32L152: Added ADC Bank_B functionality.
Modified analogin_init function to take correct value for ChannelsBank depends on ADC pin.
This commit adds ADC Bank_B usablity to STm32L152RE. With this commit PB_2 can also woak as ADC_IN.
2021-05-24 23:44:02 +05:30
Yahya Tawil ae31d20904
Merge branch 'master' into master 2021-05-24 20:04:41 +03:00
Lingkai Dong f9a0501263 Travis: Move frozen tools check to the end
When the scripts for the old tools are modified (e.g. when a new
target is added), the frozen tools check fails but we allow the change
if it's really needed. By moving the frozen tools check to the end,
Travis doesn't terminate early and the other tests get to run.
2021-05-24 14:39:56 +01:00
Werner Lewis c97dcd0bae CMSIS: Modify M0/M0+ GCC asm to support ARMC6 2021-05-24 13:56:19 +01:00
Werner Lewis bef020b0c7 cmake: Remove armasm workaround for Cortex M55 2021-05-24 13:56:19 +01:00
Werner Lewis 204dd5b1a8 cmake: Use GCC CMSIS assembly with ARM toolchain
CMSIS provides both GNU and legacy ARM assembly files. Instead of using
armasm and legacy asm with ARM Compiler 6, CMakeLists is modified to
use the GNU format with both GCC_ARM and ARM C6.
2021-05-24 13:56:19 +01:00
adbridge 1684b9c647 Add GitHub action for issue triaging script
Improve comments
2021-05-24 13:55:19 +01:00
Werner Lewis 046fa78319 Update GCC except.S to support ARMC6
ARM Compiler 6 supports GNU-style assembly with armclang. Instead of
relying on armasm with the legacy syntax, GCC except.S is updated so
that it can be used with ARM as well as GCC_ARM toolchains. CMake is
updated to use this version.
2021-05-24 13:54:57 +01:00
jeromecoutant 81dc8f8605 STM32: correct __cplusplus brackets in ci2c_device.h 2021-05-24 14:47:05 +02:00
jeromecoutant 073c82e568 STM32: correct __cplusplus brackets in can_device.h 2021-05-24 14:39:32 +02:00
Anna Bridge 77927d0c7a
Merge pull request #14684 from AGlass0fMilk/fix-kvstore-security-db
Fix missing `as_entry` method in KVStoreSecurityDb
2021-05-24 13:22:31 +01:00
Anna Bridge 39922228d6
Merge pull request #14683 from jeromecoutant/PR_WBBARE
Baremetal tests: enable BLE tests with NUCLEO_WB55RG
2021-05-24 13:20:55 +01:00
Anna Bridge e0069d8b9a
Merge pull request #14678 from ghseb/uartserial-shadowing-2
Serial: remove shadowing member variables
2021-05-24 13:20:11 +01:00
Anna Bridge ae62f9d02c
Merge pull request #14674 from anttiylitokola/master
Update mbed-coap to version v5.1.10
2021-05-24 13:18:53 +01:00
Anna Bridge 12025a107f
Merge pull request #14671 from saheerb/master
enable aws example test in CI
2021-05-24 13:17:24 +01:00
Anna Bridge 10a2da9b5e
Merge pull request #14668 from ikmdani/fix_i2c_read_13967
Driver: I2C: STM32F2/STM32F4/STM32L1: Fix alternate i2c read.
2021-05-24 13:14:36 +01:00