Commit Graph

24362 Commits (b2b2fcea7be2c203488627496b26aa27fdbd2a06)

Author SHA1 Message Date
Cruz Monrreal 0d47e23ed6
Merge pull request #10280 from davidsaada/david_remove_cfstore_version
Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file)
2019-04-01 17:03:31 -05:00
Cruz Monrreal cf4118f4ae
Merge pull request #10056 from jarvte/context_act_ppp_retry_logic
Cellular: retry logic for CellularContext connect
2019-04-01 17:03:17 -05:00
Brian Daniels 57cfa0bfa2 Revert "Only enable ARMC6 for a few targets"
These targets appear to run fine with ARMC5.

This reverts commit 2b75dfda0f.
2019-04-01 15:20:29 -05:00
Mahesh Mahadevan 1b9531d1af LPC55S69: Update Flash driver to set clock frequency
This is to ensure the flash access time is set correctly

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-01 12:10:24 -05:00
Ashok Rao 1f572f987e SPDX license identifier changed to Apache-2.0 2019-04-01 15:17:06 +01:00
Martin Kojtal 333da46815
Merge pull request #10275 from cmonr/switch-aws-bucket
Updated AWS url for astyle.
2019-04-01 15:28:23 +02:00
Ashok Rao 5cb1c64d59 Adding SPDX identifier 2019-04-01 11:21:45 +01:00
Ashok Rao 479bcfdbfe Incorporating review comments
Removing USBDEVICE since USB pins are NOT brought out on the MTB/MCB.
2019-04-01 11:16:16 +01:00
Martin Kojtal 040388370f
Merge pull request #10171 from offirko/offir_qspi_bus_mask_fix
Fix QSPIF Bus mode mask and quad enable write SR size
2019-04-01 11:17:23 +02:00
Ashok Rao d2af702ed9 Incorporating review comments 2019-04-01 10:06:30 +01:00
Martin Kojtal 1b4f6ae3c4
Merge pull request #10270 from marcemmers/advertising-builder
BLE SimpleAdvertisingBuilder moved functions out of mbed_assert calls
2019-04-01 11:03:43 +02:00
Martin Kojtal fe9beaecc0
Merge pull request #10240 from fkjagodzinski/docs_update-license_py_modules
Add Python modules to LICENSE file
2019-04-01 10:51:47 +02:00
Kimmo Vaisanen aff3815790 Cellular: Improve ATHandler AT traces
Original AT traces had several issue:
- Can be overwritten by other traces (printf/mbed-trace)
- No way to know which direction message was going (TX or RX)
- <cr> and <ln> characters were not visible in trace
etc.

This commit addresses those issues using mbed-trace and showing separately
each filehandle write and read.
2019-04-01 11:40:04 +03:00
Ashok Rao 83ad921196 Resolving merge conflicts from my remote 2019-04-01 07:49:37 +01:00
Ashok Rao d4c83fc056 Adding STM32_F429 + S2_LP (WiSUN) as a new MTB target 2019-04-01 07:31:01 +01:00
mudassar-ublox 3d960ac272 wait increased for all cases 2019-04-01 10:36:49 +05:00
David Saada 50b2f20172 Remove CFSTORE VERSION file (colliding with an ARM 6.12 C++ header file) 2019-03-31 18:15:12 +03:00
Cruz Monrreal 594a1d180b
Merge pull request #10218 from kfnta/tfm_auto_src_gen
PSA - TFM manfiest scan
2019-03-29 17:59:44 -05:00
Teppo Järvelin c6e5595cec Cellular: retry logic for CellularContext connect
State machine has retry logic until device is attached to network.
After this CellularContext does the context activation e.g. connect.
There was no retry logic for context activation. Added logic to
CellularContext level so it's available for at and (upcoming)ril layers.
2019-03-29 14:12:23 -05:00
Cruz Monrreal 2d9c4946ca
Merge pull request #10265 from cmonr/astyle-scrub
Applied astyle to files missed during repair of astyle Travis CI job
2019-03-29 13:52:24 -05:00
Cruz Monrreal II‰ 6c9c7f1483 Updated AWS url for astyle.
The original one is no longer appropriate
2019-03-29 12:18:39 -05:00
Jimmy Brisson 992cb26209 Parse errors and warnings with ARMC6 2019-03-29 12:00:44 -05:00
Anna Bridge f7c289b8b4
Merge pull request #10244 from michalpasztamobica/esp8266_interruptin
Add the INTERRUPTIN compilation guard for ESP8266
2019-03-29 16:41:50 +00:00
Cruz Monrreal f552f9db24
Merge pull request #10146 from kjbracey-arm/CellularInterface_tidy
CellularBase -> CellularInterface tidy
2019-03-29 10:22:32 -05:00
Laurent Meunier b0f4815261 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-03-29 16:21:46 +01:00
Laurent Meunier c6277988c6 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-03-29 16:21:46 +01:00
Laurent Meunier a744343931 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-03-29 16:21:46 +01:00
Laurent Meunier 718b16545c 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-03-29 16:21:45 +01:00
Laurent Meunier b21110d6b8 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-03-29 16:21:45 +01:00
Laurent Meunier 14ee4a1c7b 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-03-29 16:21:45 +01:00
Laurent Meunier 71c396cab1 STM32WB: update GCC linker script to match with master 2019-03-29 16:21:45 +01:00
Laurent Meunier 6336e4bee7 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-03-29 16:21:44 +01:00
Laurent Meunier c72b0e7ca4 STM32WB: fix some styling in HCI driver 2019-03-29 16:21:44 +01:00
Laurent Meunier 9b2acb25a3 STM32WB: handle extended reset
as suggested during review, apply same sequence as in:
b96c0ac986
2019-03-29 16:21:44 +01:00
Laurent Meunier fd6f12f8a4 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-03-29 16:21:44 +01:00
Laurent Meunier 6caa4d487f STM32WB: Add SPDX identifier to new files
also update the copyright year when needed
2019-03-29 16:21:44 +01:00
Laurent Meunier 740e296f6b STM32WB: fix compilation issue with ARMC6 2019-03-29 16:21:43 +01:00
Laurent Meunier 3ebf7c9db3 STM32WB: remove duplicate file 2019-03-29 16:21:43 +01:00
Laurent Meunier c53021b77f STM32WB: Update headers 2019-03-29 16:21:43 +01:00
Laurent Meunier 536c37f58b 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-03-29 16:21:42 +01:00
Laurent Meunier 7afad64886 STM32WB55RG: Add board declaration in tools
In travis build and in SW4STM32 exporter
2019-03-29 16:21:42 +01:00
Laurent Meunier 002f40dd3a 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-03-29 16:21:42 +01:00
Laurent Meunier e925bd711b STM32WB: Set a random static address during init 2019-03-29 16:21:42 +01:00
Laurent Meunier 08965e1190 STM32WB: add debug trace group in BLE Transport Layer 2019-03-29 16:21:42 +01:00
Laurent Meunier f2580c1c4a 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-03-29 16:21:41 +01:00
Laurent Meunier f9b4f11507 STM32WB: Adapt I2C timings
for now based on L4+ cubeMX inputs
2019-03-29 16:21:41 +01:00
Laurent Meunier bb2aea41f8 fixup! NUCLEO_WB55RG: add SDK files 2019-03-29 16:21:41 +01:00
Laurent Meunier e2cdb19e7f STM32WB: Add missing analogin_pinmap
This is required since PR #9449
commit
"Add HAL API for analog in pinmap"
2019-03-29 16:21:41 +01:00
Laurent Meunier d9c17addd7 Add WB support and CUBE FW version in readme.md 2019-03-29 16:21:40 +01:00
Laurent Meunier 5aa609b4db STM: fix minor warnings 2019-03-29 16:21:40 +01:00