Commit Graph

24193 Commits (mbed-os-5.12)

Author SHA1 Message Date
Ashok Rao a07dbd7445 SPDX license identifier changed to Apache-2.0 2019-04-05 13:59:51 +01:00
Ashok Rao 731cd1633f Adding SPDX identifier 2019-04-05 13:59:49 +01:00
Ashok Rao 76cde7702a Incorporating review comments Removing USBDEVICE since USB pins are NOT brought out on the MTB/MCB. 2019-04-05 13:59:48 +01:00
Ashok Rao 438cf8ce17 Incorporating review comments 2019-04-05 13:59:47 +01:00
Ashok Rao f3f2cedbbf Adding STM32_F429 + S2_LP (WiSUN) as a new MTB target 2019-04-05 13:59:45 +01:00
Ashok Rao aa4803f9d6 Removing all content related to EMAC 2019-04-05 13:59:44 +01:00
Ashok Rao d7347ccc6d Adding STM S2_LP as a new target 2019-04-05 13:59:42 +01:00
Ashok Rao a71a08cbf5 Changing SPI flash's CS ine, Errata on SCH 2019-04-05 13:59:40 +01:00
Ashok Rao 997ad6c766 Pin map changes
Based on v1.1.0 of S2_LP MCB using STM32F429ZIT6.
2019-04-05 13:59:38 +01:00
Ashok Rao 0455ff45c4 Removing all content related to EMAC 2019-04-05 13:59:37 +01:00
Ashok Rao 00a1c93f89 Adding MTB aliases to PinNames 2019-04-05 13:59:35 +01:00
Ashok Rao 7632c9784d Adding STM S2_LP as a new target 2019-04-05 13:59:32 +01:00
Oren Cohen fe931cd85a Add {# End of file #} for TF-M templates 2019-04-05 13:59:30 +01:00
Oren Cohen 3acedd3c2d Run autogen 2019-04-05 13:59:26 +01:00
Oren Cohen 2d12cc0b14 TFM autogen scan the entire tree 2019-04-05 13:59:24 +01:00
Leszek Rusinowicz 60b1413be2 FUTURE_SEQUANA: Fixed LP ticker for M0 core
Fixed interrupt vector settings on M0 core. Wrong vector settings prevented
LP_TICKER from working, resulting in deep sleep tests failing on M0
or PSA variant.
2019-04-05 12:47:01 +01:00
Martin Kojtal 40d8143cdf Update Mbed version block 2019-04-05 12:27:08 +01:00
Mahesh Mahadevan b7c2a7459f MIMXRT1050: Fix ENET issues
This is a fix for Issue 10239. The change aligns
the receive buffer lengths

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-05 12:27:07 +01:00
Laurent Meunier c5b277f880 STM32WB: ADC INTERNAL CHANNEL reset after read
Internal channels use is enabling ADC "internal path" which needs
to be disabled after measurement.

Same applied here for WB family as was done for others in #10143.
2019-04-05 12:27:07 +01:00
Laurent Meunier defa75ae17 STM32WB: Only configure default peripherals in SetSysClock
Typically the RTC clock is configured by RTC driver itself.

RNG on the other hand is shared with M0+ core and it is expected that
M4 turns it on at boot time.
2019-04-05 12:27:07 +01:00
Laurent Meunier fee3faea3f STM32WB: disable debug lines when not needed
When doing so, do not disbale GPIO clocks as they may be used by other
drivers !

As a result, debug will be disabled by default, but can be enabled by
either modifying code or selecting MBED debug profile.
2019-04-05 12:27:07 +01:00
Laurent Meunier c0bfcec6d3 STM32WB: update deep sleep sequence
Review HSE clock initialization to match with latest CUBE firmware.
Also there is no need to set the full clock tree again after deep sleep exit.

With this change we get a stable deep sleep mode (when allowed by CORDIO stack).
2019-04-05 12:27:06 +01:00
Laurent Meunier 9cf03e3438 STM32WB: update GCC linker script to match with master 2019-04-05 12:27:06 +01:00
Laurent Meunier 5da83a2617 STM32WB: Add FLASH HW Semaphore
Because FLASH is a shared resource between the 2 STM32WB cores, SW needs
to acquire HW Semaphore before using the resource.
2019-04-05 12:27:06 +01:00
Laurent Meunier 92ef812e42 STM32WB: Add TRNG HW Semaphore
Because TRNG is a shared resource between the 2 STM32WB cores, SW needs
to acquire HW Semaphore before using the resource.
2019-04-05 12:27:06 +01:00
Laurent Meunier e6cecda33b STM32WB: Handle re-init case of transport layer
Issue was seen when running BLE_GAP example from
mbed-os-example-ble.

In STM32WB, the M0 core cannot be reset except if the whole target
is reset. So in case of re-initialization of the BLE stack, the
transport layer should not be initialized again. The HCI reset
command will do the job.
2019-04-05 12:27:06 +01:00
Laurent Meunier d50f6e2690 STM32WB: fix some styling in HCI driver 2019-04-05 12:27:06 +01:00
Laurent Meunier 9c32d31a07 STM32WB: handle extended reset
as suggested during review, apply same sequence as in:
b96c0ac986
2019-04-05 12:27:06 +01:00
Laurent Meunier 0251c2b332 STM32WB: move HCI driver to target specific folder
Need to move stm32wb_HCIDriver.cpp to target specific folder otherwise
it could mess up with other STM targets.
2019-04-05 12:27:06 +01:00
Laurent Meunier 07545a20d6 STM32WB: Add SPDX identifier to new files
also update the copyright year when needed
2019-04-05 12:27:06 +01:00
Laurent Meunier 71d5daae34 STM32WB: fix compilation issue with ARMC6 2019-04-05 12:27:05 +01:00
Laurent Meunier 9992e14715 STM32WB: remove duplicate file 2019-04-05 12:27:05 +01:00
Laurent Meunier 615a9f6548 STM32WB: Update headers 2019-04-05 12:27:05 +01:00
Laurent Meunier 8cc84044ce STM32WB55RG: temporarily remove device_name property in targets.json
Until the CMSIS pack device name is officially deployed.

then we'll the name as can be found in Keil CMSIS pack

       <!-- *************************  Device 'STM32WB55RG'  ***************************** -->
        <device Dname="STM32WB55RGVx">
          <memory id="IROM1"                           start="0x08000000" size="0x001000000" startup="1" default="1" />
          <memory id="IRAM1"                           start="0x20000000" size="0x000040000" init="0"    default="1" />
          <algorithm name="CMSIS/Flash/STM32WB_M4.FLM" start="0x08000000" size="0x001000000"             default="1" />

          <feature type="QFP" n="68"/>
        </device>
2019-04-05 12:27:05 +01:00
Laurent Meunier 09db2253eb STM32WB55RG: Add board declaration in tools
In travis build and in SW4STM32 exporter
2019-04-05 12:27:05 +01:00
Laurent Meunier 96f88c5022 STM32WB: ARM linker script update
There is no need to add FIRST attribute to MAPPING_TABLE as the default
ordering is alphabetical order.

With this change, we don't have any warning with MBED2 and the sections
are properly ordered anyway in BLE cases.
2019-04-05 12:27:05 +01:00
Laurent Meunier 79568dbe6d STM32WB: Set a random static address during init 2019-04-05 12:27:05 +01:00
Laurent Meunier dbfe97d649 STM32WB: add debug trace group in BLE Transport Layer 2019-04-05 12:27:05 +01:00
Laurent Meunier f903920f47 STM32WB: Fix ARM link error in mbed2
In case of mbed2, BLE feature is not built.

As there is a MAPPING_TABLE in BLE feature which is not compiled in case
of mbed2, the linker reported the below error

[ERROR] "C:/Data/Workspace/mbed/BUILD/test/NUCLEO_WB55RG/ARM/MBED_2/
.link_script.sct", line 65 (column 6): Error: L6236E:
No section matches selector - no section to be FIRST/LAST.

Solution is to check whether BLE is enabled.
2019-04-05 12:27:04 +01:00
Laurent Meunier 0dcddcea9b STM32WB: Adapt I2C timings
for now based on L4+ cubeMX inputs
2019-04-05 12:27:04 +01:00
Laurent Meunier 9e3d52d701 fixup! NUCLEO_WB55RG: add SDK files 2019-04-05 12:27:04 +01:00
Laurent Meunier 9345e5cbcb STM32WB: Add missing analogin_pinmap
This is required since PR #9449
commit
"Add HAL API for analog in pinmap"
2019-04-05 12:27:04 +01:00
Laurent Meunier 86c84050be Add WB support and CUBE FW version in readme.md 2019-04-05 12:27:04 +01:00
Laurent Meunier 91c08e3914 STM: fix minor warnings 2019-04-05 12:27:04 +01:00
Laurent Meunier 1a6cdf849f STM32WB: FIX LL RTC warning 2019-04-05 12:27:04 +01:00
Laurent Meunier e57771f375 STM32WB: Move STM32WB utilies from FEATURE_BLE to targets folder
These files are not BLE specific, but also needed for some clock setting
for instance.

In order to compile an MBED2 application, we need to move the files.
2019-04-05 12:27:04 +01:00
Laurent Meunier ee64f1543f NUCLEO_WB55RG: Rework Clock and sleep support
- move hw_conf.h file to targets/TARGET_STM/TARGET_STM32WB directory as
this is used also out of BLE feature.
- create a dedicated hal_deepsleep function as the behavior in WB is a lot
different from other existing STM32 targets
- update clock tree configuration to directly clock the entire tree @ 32MHz
out of HSE. This is needed as we want to let the M0 core running without
any change on M0-side of clocks when M4 enters /exits deep sleep.
2019-04-05 12:27:04 +01:00
Laurent Meunier 879ca1db24 NUCLEO_WB55RG: add Cordio HCI and Transport Layer driver
The STM32WB Coridio driver includes:
- the Cordio HCI driver handling the reset sequence. During reset sequence
the TX POWER level is set and the BD address is defined if found in OTP
or option bytes. The rest of the sequence is based on the standard CORDIO
HCI driver example.
- The Transport Layer part handles sending and receiving messages to the
WB controller running on cortex-M0 of the STM32WB target. The messages
are shared through shared memory and mailboxes system based on IPCC HW.
2019-04-05 12:27:03 +01:00
Laurent Meunier e26eaa1c9d NUCLEO_WB55RG: WB Transport Layer Cube files modifications
- Need to force ARM packed redefinition
- Configure LL stack in LL mode only
- Remove warning in shci_tl.c (PLACE_IN_SECTION)
2019-04-05 12:27:03 +01:00
bcostm be1e80512e NUCLEO_WB55RG: add WB Cube files reused for BLE transport layer 2019-04-05 12:27:03 +01:00