Commit Graph

70 Commits (fix_lp1114_flash_overflow_issue)

Author SHA1 Message Date
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 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
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
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
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
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
Donatien Garnier decd7d0167 Convert shci.h from (presumably) latin1 encoding to UTF-8 2021-06-02 12:12:34 +01:00
jeromecoutant 645fed5393 STM32WB HCI driver: Add check for code size configuration 2021-05-25 12:06:55 +02:00
jeromecoutant ba6d664ff2 Baremetal tests: enable BLE tests with NUCLEO_WB55RG 2021-05-19 17:52:48 +02:00
jeromecoutant f904d10bd6 STM32WB : BLE update from STM32Cube_FW_WB_V1.11.1 2021-05-05 17:22:54 +02: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
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
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
jeromecoutant a7508f70fe STM32WB BLE: remove mbed.h 2021-03-11 17:39:06 +01:00
Martino Facchin c0a8e41719 CYW43XXX: Add generic transport layer 2021-03-11 15:43:28 +01:00
Hugues Kamba a1e80925af CMake: Fix path to Ambiq BLE source file
Update the hci_drv_apollo3.c listing as the file location was changed.
2021-01-05 13:50:50 +00:00
paul.szczepanek@arm.com 6746573b34 add missing guards for extended advertising feature 2021-01-04 18:05:50 +00:00
Martin Kojtal 24501dffd3
Merge pull request #14042 from hugueskamba/hk_cmake_ambiq_micro_support
CMake: Add support for all Ambiq Micro Mbed targets
2020-12-17 15:07:43 +00:00
Andrea Palmieri ae4a53e74a
Support to BlueNRG_2 BLE component (#13246)
Add support to BlueNRG_2 BLE component

Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>

Co-authored-by: Andrea Palmieri <andrea.palmieri@st.com>
Co-authored-by: Paul Szczeanek <paul.szczepanek@arm.com>
2020-12-17 14:37:21 +00:00
Wenn0101 2e144e83e2 update startup gcc to add back weak definitions and have HciDrvRadioBoot call NVIC_SetVector 2020-12-17 11:21:22 +00:00
Hugues Kamba 7a6bf96998 CMake: Fix Apollo3 BLE driver support 2020-12-17 11:13:03 +00:00
Wheeler Keith (CY CSS ICW Integration) 1e56565692 Clean up from 2 Dec review 2020-12-03 20:33:58 -08:00
Wheeler Keith (CY CSS ICW Integration) 3445eb2cc8 Shifting BT power pin references to mbed style in transport ccriver and cy_bt_cordio_cfg; removing freeing of dev wake pin and changing to deasserting this during terminate 2020-12-03 20:33:56 -08:00
Wheeler Keith (CY CSS ICW Integration) 4d70877b35 Removing 500ms delay inCyH4TransportDriver init; fixing warning about order of BT POWER in declarations 2020-12-03 20:33:54 -08:00
Dustin Crossman 0e6ede86de Convert cyhal_gpio calls to mbed equivalent. 2020-12-03 20:33:52 -08:00
Wheeler Keith (CY CSS ICW Integration) 389ed278c9 Working on changes from code review 2020-12-03 20:33:50 -08:00
Wheeler Keith (CY CSS ICW Integration) 47aab97d16 Moving UART init from construtor to init method; altering init method to reset BT device via regulator control; modifications to terminate method 2020-12-03 20:33:49 -08:00
Keith Wheeler bf7adcf0d2 Adding to BLE terminate method code that releases the UART and disables interrupts and GPIO 2020-12-03 20:33:47 -08:00
Martin Kojtal fad7f344e7
Merge pull request #13870 from rajkan01/feature-cmake-review-comment
CMake: Address review comment from PR#13566
2020-11-18 09:42:09 +00:00
Marc Emmers afc42b8fb7 Update NRF ble configuration options 2020-11-16 16:43:43 +01:00
Rajkumar Kanagaraj 438994ded4 Fix CI issue:
- Added absolute path as cmake failed to find linker file from relative path
- Added the missing MBED_CONF_CRYPTOCELL310_PRESENT
- Added the dependency library to BLE Cordio stack
2020-11-12 14:32:01 +00:00
Rajkumar Kanagaraj 4c05ce874a Remove add subdirectory of TARGET_MCU_NRF52840 as it contains only mbed_lib.json 2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj 766a9a8219 CMake: Remove empty input source files 2020-11-12 11:27:11 +00:00
Rajkumar Kanagaraj a4d8559c08 CMake: Rename input source files from CMakelists.txt to CMakeLists.txt 2020-11-12 11:27:10 +00:00
Hugues Kamba bf84a5b329 CMake: Rename CMake targets
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Hugues Kamba fa98689639 CMake: Componentize Mbed OS into multiple CMake targets (#13732)
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.

Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00