Commit Graph

310 Commits (master)

Author SHA1 Message Date
Martin Kojtal 06f234e3af
Merge pull request #15137 from jeromecoutant/PR_WL_1_1_0
STM32WL update drivers version to CUBE V1.1.0
2021-10-15 10:07:02 +02:00
Jerome Coutant 5a1e864003 STM32WL CMakeLists update 2021-10-12 12:20:27 +02:00
Jerome Coutant f42b3e41bf STM32WL LORA radio: add a critical section in IRQ process 2021-10-12 11:01:22 +02:00
Jerome Coutant 4b956bbf3d STM32WL LORA driver: add debug print 2021-10-12 10:36:43 +02:00
Jerome Coutant 998f01a722 STM32: new EMW3080B wifi driver 2021-09-30 14:18:58 +02:00
Jerome Coutant fe1adbcc86 Lora drivers: explicit lib requirement 2021-09-10 09:07:15 +02:00
Martin Kojtal 539d1c784f
Merge pull request #15017 from hallard/STM32WL_HP_optimal
STM32WL fixed current consumption for mode RBI_CONF_RFO_HP
2021-08-30 14:17:01 +01:00
Martin Kojtal 43a060fe7c
Merge pull request #14926 from katherrafi/hal_callback_override
Eth: STM32: Overriding HAL callbacks in stm32xx
2021-08-26 09:51:48 +01:00
Kather Rafi Ibrahim a9f51e31fd Eth: STM32: Overriding HAL callbacks in stm32xx
This commit enables the Overriding of HAL callbacks and IRQHandler
in stm32xx_emac.cpp. Hence the user can have their own
implementations of callbacks and IRQHandler functions.

Signed-off-by: Kather Rafi Ibrahim <katherrafi.i@hcl.com>
2021-08-25 14:30:47 +05:30
Charles 6d0747727e added optimal settings for RFO_HP only
fixed wrong help values name

added detailled comments

fix style-check

fix style-check
2021-08-25 10:23:06 +02:00
Martin Kojtal 09eee5881e
Merge pull request #14988 from npal-cy/pr/swintegration-501
CYW43XXX Cordio HCI driver: update BT power up sequences to remove redundant delay (500ms) during HCIDrive initialization
2021-08-17 12:20:17 +01:00
Mika Leppänen 096ce41094 Disabled interrupts on smt32f7 and stm32h7 before calling disable data cache
Interrupts are disabled before calling disable data cache on Ethernet initialization.
2021-08-16 13:29:25 +03:00
nazar.palamar b245445ecb Addressed code review comments: 1. remove bt_power member from HCIDriver class; 2. set PullUp for bt_power in CyH4TransportDriver; 3. cleanup code: replace tabs to 4 spaces 2021-08-13 17:25:14 +03:00
nazar.palamar c2f7a9539b Update of BT power up sequences to remove redundant delay (500ms) in BT_POWER operation during HCIDrive initialization.
Current BT_POWER sequence:
1. BT_POWER=0  ( from CyH4TransportDriver::initialize)
2. delay 1ms   ( from CyH4TransportDriver::initialize)
3. BT_POWER=1  ( from CyH4TransportDriver::initialize)
4. delay 500ms (from HCIDriver::do_initialize)
5. BT_POWER=1  (from HCIDriver::do_initialize)
6. delay 500ms (from HCIDriver::do_initialize)

updates:
1. remove 4) and 5)
2. keep all BT_POWER operations in one place. The best logic place is CyH4TransportDriver::initialize.

So finally the BT_POWER sequences should looks like:
1. BT_POWER=0  ( from CyH4TransportDriver::initialize)
2. delay 1ms   ( from CyH4TransportDriver::initialize)
3. BT_POWER=1  ( from CyH4TransportDriver::initialize)
4. delay 500ms ( from CyH4TransportDriver::initialize)
2021-08-13 17:25:12 +03:00
nazar.palamar 1d6843e538 Fixed MCU deep-sleep locking flow in CYW43XXX Cordio HCI driver. The CYW43XXX Cordio HCI driver incorrect handles lock/unlock deep-sleep entry, as results it allows to put PSoC6 in to deep-sleep when CYW43xx does not expect this (the host_wake_up pin in ACTIVE_LOW state, which means hat host must be in ACTIVE mode ).
Now, CYW43XXX Cordio HCI driver has the following MCU deep-sleep locking scenarios/flows:
a) A BT device or MCU does not support Low Power mode (MBED configuration does not include MBED_TICKLESS, DEVICE_SLEEP, DEVICE_LPTICKER or CYCFG_BT_LP_ENABLED features). In this case, CyH4TransportDriver locks deep-sleep in the initialize() function and unlocks the terminate() function.

b) A BT device and MCU support Low Power mode. In this case, the control of the unlock/lock of the deep-sleep functionality will be done in bt_host_wake_rise_irq_handler and bt_host_wake_fall_irq_handler handlers. Finally, CyH4TransportDriver unlocks the deep-sleep in terminate() function (if it was locked before) by checking the bt_host_wake_active flag.

Fixes #13076, #13700, #13295.
2021-08-06 16:41:24 +03:00
Martin Kojtal b94fe130a3
Merge pull request #14288 from boraozgen/bg96-socket-send-segmentation
BG96: Add segmentation to TCP socket send
2021-07-29 10:31:23 +01:00
Charles d13aaf408c
Allow LoRaWAN STM32WL driver debug led to be inverted (#14910) 2021-07-29 10:29:53 +01:00
Martin Kojtal e060c8c007
Merge pull request #14730 from Ekidna/fix/sx126x-select-pins
Add config macros for device-variant, freq-support and xtal config
2021-07-21 14:52:44 +02:00
Paul Szczepanek a8982ca06e AT command fix - hex string shouldn't be quoted on bc95 2021-07-14 21:43:53 +01:00
Martin Kojtal 0ea3f0cc53
Merge pull request #14787 from dustin-crossman/pr/june-asset-update
Cypress Asset Update
2021-07-13 12:53:26 +02:00
Arto Kinnunen c682e12c7e Merge commit '8a76989b8c269fc68dda3df16315e390ab6a58e4' into stm_rf_driver_fix
* commit '8a76989b8c269fc68dda3df16315e390ab6a58e4':
  Squashed 'connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver/' changes from f491d77de8..7d12478914
2021-07-12 16:40:01 +03:00
Martin Kojtal 0726db09fb
Merge pull request #14888 from arduino/portenta_ble_support
Portenta: Add BLE support using CYW43XXX generic transport layer
2021-07-09 17:22:55 +02:00
Martin Kojtal 57ae146594
Merge pull request #14897 from jeromecoutant/PR_STWIN
ST BLUENRG BLE: STWIN SensorTile board introduction
2021-07-09 09:29:12 +02:00
Martino Facchin 133864a750 PortentaH7: add BLE support 2021-07-08 17:07:06 +02:00
Martin Kojtal 9b0f1907f5
Merge pull request #14227 from arduino/cyw43xxx_transport_layer
CYW43XXX: Add generic transport layer
2021-07-08 16:39:57 +02:00
jeromecoutant b4d80360c0 ST BLUENRG BLE: STWIN SensorTile board introduction
https://www.st.com/en/evaluation-tools/steval-stwinkt1.html
2021-07-08 14:58:00 +02:00
Martin Kojtal 97b9754141
Merge pull request #14838 from katherrafi/set_mac_address
Eth: STM32:  Updating documentation on mbed_otp_mac_address()
2021-07-08 14:20:09 +02:00
pennam dc4fb8d74b Use fixed wait time 2021-07-07 09:24:39 +02:00
pennam c1d33d23ae exclude tx and rx if CYW43XXX_UNBUFFERED_UART is defined 2021-07-07 09:24:39 +02:00
Dustin Crossman ddb92ba877 Fixup license issues. 2021-07-06 15:40:48 -07:00
Kather Rafi Ibrahim a9e9564ced Eth: STM32: Upating documentation on mbed_otp_mac_address()
This commit updates the documentation on how to use
mbed_otp_mac_address() to modify the default MAC address to custom
Mac address.

Signed-off-by: Kather Rafi Ibrahim <katherrafi.i@hcl.com>
2021-07-01 17:07:01 +05:30
Martin Kojtal aa0aa3dc65
Merge pull request #14816 from artokin/nanostack_release_14_0_0_master
Nanostack release v14.0.0
2021-07-01 10:52:18 +02:00
Martin Kojtal 43f1ee7a56
Merge pull request #14814 from boraozgen/bg96-get-ip-address
BG96: Add correct get_ip_address implementation
2021-06-24 16:18:41 +02:00
Arto Kinnunen aacdad8203 Merge commit 'e8bf06aa4c8cd0b9133361c82669a83e53bc61a5' into nanostack_rel_14_0_0_master
* commit 'e8bf06aa4c8cd0b9133361c82669a83e53bc61a5':
  Squashed 'connectivity/drivers/802.15.4_RF/atmel-rf-driver/' changes from b1a8186d75..834c5357c6
2021-06-23 11:10:41 +03:00
Arto Kinnunen fa0fe8a87f Restore CMakeLists.txt to stm-s2lp-rf-driver
Restore CMakeLists.txt to stm-s2lp-rf-driver as it is not available
in the source repository.
2021-06-23 10:27:30 +03:00
Arto Kinnunen 67fc864059 Merge commit '92e35b3a27554765a24703378be012d5b9023d6f' as 'connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver' 2021-06-23 10:24:25 +03:00
Arto Kinnunen d7b347653d Remove existing stm-s2lp-rf-driver 2021-06-23 10:23:56 +03:00
Arto Kinnunen 051f31a2d6 Restore CMakeLists.txt
Original master repository does not have CMakeLists.txt, put it back
as 'git subtree add' does not have it.
2021-06-23 10:11:33 +03:00
Arto Kinnunen 098b06878b Merge commit 'eec3332ef684b2a5a5e5cbbf772cb7d389b6b152' as 'connectivity/drivers/802.15.4_RF/mcr20a-rf-driver' 2021-06-23 10:06:51 +03:00
Arto Kinnunen 6e584ed311 Remove existing mcr20a-rf-driver 2021-06-23 10:04:05 +03:00
Bora Özgen 97362f23ff BG96: Add correct get_ip_address implementation
The default get_ip_address implementation was not working for
BG9x. Furthermore the cellular connect routine tries to get the
address multiple times, which added around 2 seconds of
unnecessary delay to the connection. This commit adds the correct
implementation using the AT+QIACT? command.
2021-06-15 14:20:46 +02:00
Martin Kojtal 2a73d44343
Merge pull request #14750 from tymoteuszblochmobica/size_spi
Increase SPI stack size to 2048 for BlueNrg driver
2021-06-14 10:32:51 +02:00
Martin Kojtal 530d4beea5
Merge pull request #14734 from jeromecoutant/PR_RFSWITCH
STM32WL LORA: HW specific out of STM32WL_LoRaRadio class
2021-06-11 16:09:48 +02:00
Tymoteusz Bloch 39e821db61 Increase SPI stack size to 2048 for BlueNrg driver
This is needed to avoid stack overflow due numerous calls and allocation.
2021-06-09 15:12:45 +02:00
Evan Davey 89789f26e1 Move #if/#else statements inside functions 2021-06-09 08:47:47 +10:00
jeromecoutant 9f0ee46475 STM32WB15xC MCU support 2021-06-07 16:05:41 +02:00
Martin Kojtal 9fbb89e2d1
Merge pull request #14692 from jeromecoutant/PR_WB_HCI
STM32WB: improve FLASH size
2021-06-07 11:18:26 +02:00
Dustin Crossman 7d0f3c7ec1 Fixup CMakeLists after reorg. 2021-06-04 12:46:13 -07:00
jeromecoutant 777b2730bd STM32WL LORA: HW specific out of STM32WL_LoRaRadio class 2021-06-03 13:19:32 +02:00
Dustin Crossman 6a31e07fab Update wifi-host-driver to 1.94.0.6931
Update whd-bsp-integration to 1.1.2.20805
2021-06-02 17:30:59 -07:00
Evan Davey e61a8caabe Add config macros for device-variant, freq-support and xtal config 2021-06-03 10:27:01 +10:00
Martin Kojtal be9850be53
Merge pull request #14701 from donatieng/utf-8-check
Add Travis test to make sure text files are UTF-8 encoded
2021-06-02 15:49:14 +02:00
Donatien Garnier decd7d0167 Convert shci.h from (presumably) latin1 encoding to UTF-8 2021-06-02 12:12:34 +01:00
Martin Kojtal da13755a9f
Merge pull request #14699 from jeromecoutant/PR_ASTYLE
STM32 astyle format
2021-06-01 10:02:34 +02:00
Martin Kojtal bfedc39f7c
Merge pull request #14471 from arduino/whd_patch
COMPONENT_WHD: make reusable code available for other targets
2021-05-31 15:49:25 +02:00
jeromecoutant cfd86882d3 STM32H7 astyle 2021-05-25 14:45:52 +02:00
jeromecoutant 645fed5393 STM32WB HCI driver: Add check for code size configuration 2021-05-25 12:06:55 +02: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
jeromecoutant ba6d664ff2 Baremetal tests: enable BLE tests with NUCLEO_WB55RG 2021-05-19 17:52:48 +02:00
Bora Özgen 35465aee91 BG96: Add segmentation to TCP socket send
Unlike some other cellular modem drivers which use
segmentation, the BG96 driver did not support sending of large
TCP packets, i.e. maximum TCP packet size was restricted to
1400 bytes. This adds segmentation to the send function, so
larger packets can be sent using the TCP socket.
2021-05-19 12:20:52 +02:00
Rajkumar Kanagaraj a88f43f367 CMake: Update mbed os, unittest CMake and add CMAKE_CROSSCOMPILING guard
- Add a new MbedOS project in mbed os root CMake which can be used along with
  BUILD_TESTING conditional check for enabling the unittest build
- Update UNITTEST CMake for setting the CMake configuration like c, cxx flags etc.,
- Add if CMAKE_CROSSCOMPILING conditional check wherever target configuration check
  and toolchain configuration to avoid such configuration gets included for unittest build.
2021-05-11 02:49:03 -07:00
pennam 5475c0995d CMake add network subdirectory 2021-05-06 15:39:57 +02:00
pennam 665c83b3eb Moved targets/TARGET_Cypress/TARGET_PSOC6/common/COMPONENT_WHD in connectivity/drivers/wifi/COMPONENT_WHD/network 2021-05-06 15:39:42 +02:00
pennam 6a4fd9d5e6 CMake add COMPONENT_WHD folder 2021-05-06 15:39:42 +02:00
pennam a29ca0724c COMPONENT_WHD moved into connectivity/drivers/wifi 2021-05-06 15:39:19 +02:00
Martino Facchin 9686fb6ac2 Patch add #include "cy_utlis.h" 2021-05-06 14:45:26 +02:00
Martino Facchin ebbbcabb05 Patch add rtos namespace 2021-05-06 14:45:15 +02:00
pennam 7cdf97492a CMake remove COMPONENT_WHD from emac/TARGET_Cypress 2021-05-06 14:44:58 +02:00
pennam 0db6218dc6 CMake add COMPONENT_WHD in emac 2021-05-06 14:44:41 +02:00
Martino Facchin ead29d6b83 WHD EMAC moved out of TARGET_Cypress 2021-05-06 14:44:23 +02:00
jeromecoutant f904d10bd6 STM32WB : BLE update from STM32Cube_FW_WB_V1.11.1 2021-05-05 17:22:54 +02:00
Martin Kojtal 6330299ac5
Merge pull request #14578 from jeromecoutant/PR_WB55MMG
STM32 : new DISCO_WB5MMG target
2021-05-04 10:48:26 +02:00
Martin Kojtal 1f57702d79
Merge pull request #14571 from boraozgen/bugfix/cmake-stm32-emac-init
CMake: STM32: Add missing emac init files
2021-04-30 15:40:05 +01:00
Martin Kojtal 64eb60e4cc
Merge pull request #14573 from artokin/nanostack_release_13_0_0_for_master
Nanostack release v13.0.0
2021-04-30 15:39:41 +01:00
jeromecoutant ebc0035afd STM32 : new DISCO_WB5MMG target 2021-04-28 16:46:52 +02:00
Martin Kojtal 331473a706
Merge pull request #14589 from plan-do-break-fix/Typo-corrections
fix(docs): corrects various typos in project documentation
2021-04-28 13:36:37 +01:00
plan-do-break-fix 915b45af23 fix(docs): corrects various typos in project documentation 2021-04-23 23:31:11 -05:00
Peter B 40c7914c64
add #include "wsf_os.h" into hci_drv_apollo3.h
Inclusion of wsf_os.h resolves unknown type errors in hci_drv_apollo3.h
2021-04-23 12:19:54 +02:00
Arto Kinnunen 6ad0cff2c8 802.15.4 STM S2LP driver update
Update STM S2LP driver to version v1.0.8
2021-04-21 10:14:04 +03:00
Arto Kinnunen 327ea8fa0f 802.15.4 Atmel RF driver update
Sync with master version v3.3.5
2021-04-21 10:11:52 +03:00
Bora Özgen f365860f3e CMake: STM32: Add missing emac init files 2021-04-20 16:31:02 +02:00
Martin Kojtal 076cf3557a
Merge pull request #14546 from rwalton-arm/dev/rwalton-arm/fix-connectivity-driver
CMake: Fix mbed-802.15.4-rf driver
2021-04-15 11:43:30 +02:00
Martin Kojtal bedd5727af
Merge pull request #14486 from jeromecoutant/PR_CLI2_BLE
CMake COMPONENT_BlueNRG_MS: fix mbed-ble
2021-04-14 16:27:25 +02:00
Robert Walton c7c2580f9e CMake: Fix mbed-802.15.4-rf driver
mbed-nanostack should depend on mbed-802.15.4-rf to avoid a linker error
with an undefined reference to `NanostackRfPhy::get_default_instance()`.
The error occurs when `device_has: 802_15_4_PHY` is defined and the
consumer depends on mbed-nanostack in their CMakeLists.txt. Previously
we linked mbed-nanostack to mbed-802.15.4-rf, so mbed-802.15.4-rf's
usage requirements weren't forwarded to consumers who depended on
mbed-nanostack.

With the previous configuration, the consumer would have to depend on
mbed-802.15.4-rf directly to avoid an issue. This seems like a layering
violation: it appears that mbed-nanostack is "the API" and
mbed-802.15.4-rf is one of several possible implementations which are
selected based on configuration macros.

This commit changes the flow of dependencies so that mbed-nanostack ends
up with the correct symbol definitions.
2021-04-14 12:30:35 +01:00
Martin Kojtal b1e26c6f35
Merge pull request #14435 from LDong-Arm/CRYPTOCELL310_linking
Fix missing linkage of mbed-mbedtls-cryptocell310 to mbed-mbedtls
2021-04-13 16:00:43 +02:00
jeromecoutant 57ce710119 [CMAKE] COMPONENT_BlueNRG_MS: fix mbed-ble 2021-04-12 11:33:57 +02:00
harmut01 8d502d4af3 Ambiq: Fix baremetal build profile using CLI 1
Add mbed_lib.json in the Ambiq target folder of FEATURE_BLE to make sure
the library is excluded in the baremetal build profile unless explicitly
added in `mbed_app.json`.
2021-03-24 09:22:21 +00:00
Martin Kojtal 1fdb1c18e8
Merge pull request #14198 from ARMmbed/feature-bluetooth-traces
Feature bluetooth traces
2021-03-22 10:59:44 +01:00
jeromecoutant eca714c93f [STD-PIN] update tests and components 2021-03-18 17:01:50 +00:00
Lingkai Dong 4c6f8867d4 Make CryptoCell 310 part of mbed-mbedtls on supported targets
The CMake target mbed-mbedtls-cryptocell310 was not linked by
default, resulting in a compilation error on targets that use
Mbed TLS:

    fatal error: mbedtls_device.h: No such file or directory

Other Mbed TLS drivers simply add themselve to mbed-mbedtls, so this
commits does the alignment to fix the build error.

Note: the driver and the core Mbed TLS have mutual dependency, so
they need to be one CMake target.
2021-03-18 12:10:11 +00:00
Paul Szczepanek 7b08388be6 Add traces to HCI, BLE instance, Security DB and WSF cordio traces (#14138)
* ble HCI tracing

* fix typo in SM trace

* add BLE instance tracing

* route wsf traces to mbed tr_debug

* Update connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>

* print hci on cordio side

* trace controller supported features

* log reset sequence

* include config for printing enums

* remove duplicate trace

* add tracing to security db

* workaround for macro error on use outside trace

Co-authored-by: Vincent Coubard <vincent.coubard@arm.com>
2021-03-15 15:35:52 +00:00
Martin Kojtal 1cb25da7ae
Merge pull request #14419 from jeromecoutant/PR_MBEDH
STM32: remove mbed.h include in connectivity
2021-03-12 10:55:32 +00:00
jeromecoutant a7508f70fe STM32WB BLE: remove mbed.h 2021-03-11 17:39:06 +01:00
jeromecoutant d28b875727 STM32 EMAC: remove mbed.h 2021-03-11 17:38:56 +01:00
Martino Facchin c0a8e41719 CYW43XXX: Add generic transport layer 2021-03-11 15:43:28 +01:00
Hugues Kamba 4367305830 CMake: Fix Renesas build error on Linux
The CMake input source file needs to be named
exactly CMakeLists.txt to be detected and used
for the build configuration.
2021-03-11 11:43:37 +00:00
Martin Kojtal 76b2902f48
Merge pull request #14354 from ARMmbed/feature-tf-m-1.2-integration
Update TF-M support to v1.2
2021-03-03 11:08:24 +00:00
Lingkai Dong 0dd43976b8 Import mbedtls_ecp_write_key for Cypress Mbed TLS driver
Mbed TLS 2.24.0 has added a new function mbedtls_ecp_write_key()
which is the reverse of the existing mbedtls_ecp_read_key(). This
function should be platform agnostic, but needs to be copied into
Cypress's hardware-accelerated ECP driver as part of the updated
API.
2021-02-25 14:02:57 +00:00
Arto Kinnunen e4e2f79cc8 Update stm32xx_emac traces
- Make packet trace optional, can be enabled by enabling macro
  STM32xx_DEEP_TRACE
- Shorten traces during driver initialisation to avoid problems with
  driver startup when soft reset is used.
2021-02-24 13:46:58 +02:00
Martin Kojtal 85c2d7a25c CMake: remove IAR references as they are not supported 2021-02-17 09:19:03 +00:00