Commit Graph

34206 Commits (9e1444f88d7be73c6d8275881dfc014ee9e9f135)

Author SHA1 Message Date
ATmobica 9e1444f88d Add <"CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and common PSOC6 cmake files 2021-12-15 21:37:14 +01:00
Martin Kojtal 7a6262c3bc
Merge pull request #15189 from boraozgen/nrf52-gpio-assert-init
nRF52: GPIO: Assert that init succeeds
2021-12-15 14:42:47 +00:00
Martin Kojtal fe5e648147
Merge pull request #15192 from ATmobica/master
Add option to disable WHD component for Cypress targets
2021-12-15 11:59:33 +00:00
Martin Kojtal 35050f02e6
Merge pull request #15193 from jeromecoutant/PR_WARNING
STM32 : remove several warnings
2021-12-15 11:50:32 +00:00
Bora Özgen 352beffedf nRF52: GPIO: Assert that init succeeds 2021-12-14 10:01:08 +01:00
Martin Kojtal ff061e8cf2
Merge pull request #15187 from artokin/nanostack_release_v15_1_0
Nanostack release v15.1.0 to master
2021-12-13 09:46:45 +00:00
Jerome Coutant de3f9efb67 STM32H7 : remove warning
[Warning] stm32h7xx_hal_hrtim.c@1621,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@1625,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@2238,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@2242,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5332,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5767,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5771,21: equality comparison with extraneous parentheses [-Wparentheses-equality]

[Warning] analogin_device.c@63,30: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
2021-12-10 17:16:47 +01:00
Jerome Coutant 3237bff990 STM32F7 : remove warning
[Warning] flash_api.c@191,14: unused variable 'tmp' [-Wunused-variable]
2021-12-10 17:16:47 +01:00
Jerome Coutant 4d63929898 STM32L5 : remove warning
[Warning] serial_device.c@657,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@666,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@675,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@676,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
2021-12-10 17:16:47 +01:00
Jerome Coutant 1bf801a4f7 STM32G4 : remove warning
[Warning] serial_device.c@644,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@644,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@653,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@653,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@662,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@662,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@663,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@663,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]

[Warning] stm32g4xx_hal_hrtim.c@1817,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@1821,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@2461,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@2465,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@6600,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@7162,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@7166,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
2021-12-10 17:16:47 +01:00
Jerome Coutant 999d98a3d7 STM32L4 : remove warning
This is the MBED current implementation, no need to warn
2021-12-10 17:16:47 +01:00
Jerome Coutant b5e28baf45 STM32 CAN : remove warning [-Wsign-compare]
Detected with NUCLEO_G474RE build:
[Warning] stm32g4xx_hal_fdcan.h@1325,84: comparison is always true due to limited range of data type [-Wtype-limits]
[Warning] stm32g4xx_hal_fdcan.h@1331,46: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1331,65: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1325,61: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1325,84: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
2021-12-10 17:16:35 +01:00
ATmobica 78a7859fa8 Add <"WHD" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and wifi driver cmake files 2021-12-10 13:14:29 +01:00
Martin Kojtal 810662bd77
Merge pull request #15176 from marcemmers/rename_mstd_span_size_type
mstd::span rename index_type to size_type according to spec
2021-12-09 10:29:07 +00:00
Martin Kojtal 1c5813b33c
Merge pull request #15181 from hallard/LoRa_sx1276_LowPower_fix
Fix LoRa sx1276 Low Power sleep, now 3uA
2021-12-08 14:55:52 +00:00
Arto Kinnunen 357dbec020 Merge commit '1d440bc3adfe6afbd60ff8c39dd267aa925716c3' into nanostack_v15_1_0
* commit '1d440bc3adfe6afbd60ff8c39dd267aa925716c3':
  Squashed 'connectivity/nanostack/sal-stack-nanostack-eventloop/' changes from fb20d3f32c..60c1fb61af
2021-12-08 13:54:43 +02:00
Arto Kinnunen 1d440bc3ad Squashed 'connectivity/nanostack/sal-stack-nanostack-eventloop/' changes from fb20d3f32c..60c1fb61af
60c1fb61af Merge remote-tracking branch 'origin/master' into release_for_mbed_os
6c8166d77b Sync from Mbed OS (#50)
b8e6ed9def Update copyright (#48)

git-subtree-dir: connectivity/nanostack/sal-stack-nanostack-eventloop
git-subtree-split: 60c1fb61afb5825fd6eac150eadded9fdc3047a8
2021-12-08 13:54:42 +02:00
Arto Kinnunen d64e8f6878 Merge commit '89eb48fe1a3ba68057029c7e475f1ec78eb95abc' into nanostack_v15_1_0
* commit '89eb48fe1a3ba68057029c7e475f1ec78eb95abc':
  Squashed 'connectivity/drivers/802.15.4_RF/mcr20a-rf-driver/' changes from 61de9be6dc..7a1bfec754
2021-12-08 13:48:16 +02:00
Arto Kinnunen 89eb48fe1a Squashed 'connectivity/drivers/802.15.4_RF/mcr20a-rf-driver/' changes from 61de9be6dc..7a1bfec754
7a1bfec754 Merge pull request #41 from PelionIoT/synch_from_mbed_os
d0c36ea67d Update copyright
0831ad21c8 Sync from Mbed OS

git-subtree-dir: connectivity/drivers/802.15.4_RF/mcr20a-rf-driver
git-subtree-split: 7a1bfec7547676baf1ec91ed46eb07da6f0970cb
2021-12-08 13:48:01 +02:00
Arto Kinnunen 9daf4300e3 Merge commit '75c79ac616fce0b36ca047e676069e12e1bb30c1' into nanostack_v15_1_0
* commit '75c79ac616fce0b36ca047e676069e12e1bb30c1':
  Squashed 'connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver/' changes from 7d12478914..089ca0eed7
2021-12-08 13:47:47 +02:00
Arto Kinnunen 75c79ac616 Squashed 'connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver/' changes from 7d12478914..089ca0eed7
089ca0eed7 Merge pull request #78 from PelionIoT/sync_from_mbedos
f61d52dc77 Update copyright
36f14ee53a Sync from Mbed OS

git-subtree-dir: connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver
git-subtree-split: 089ca0eed7a6208fd7fe3e54e425d6669515ebf0
2021-12-08 13:47:30 +02:00
Arto Kinnunen a947f4845c Merge commit '233ec783c1b902af25f1376d6fcdc9f4b0bccf53' into nanostack_v15_1_0
* commit '233ec783c1b902af25f1376d6fcdc9f4b0bccf53':
  Squashed 'connectivity/drivers/802.15.4_RF/atmel-rf-driver/' changes from 834c5357c6..ccba775217
2021-12-08 13:47:18 +02:00
Arto Kinnunen 233ec783c1 Squashed 'connectivity/drivers/802.15.4_RF/atmel-rf-driver/' changes from 834c5357c6..ccba775217
ccba775217 Merge pull request #110 from PelionIoT/sync_from_mbed_os
301b184ba4 Update copyright
3c9927a4e8 Sync from Mbed OS
68a243c432 Merge pull request #109 from PelionIoT/IOTTHD-4839
55004765bd Read received packet length in RX done callback

git-subtree-dir: connectivity/drivers/802.15.4_RF/atmel-rf-driver
git-subtree-split: ccba7752172988f2c50a646af09dd0c1e91d4fc8
2021-12-08 13:47:01 +02:00
Arto Kinnunen 0dfb79e28b Merge commit '00253cb11629fab6f753682d89faa2ce7b4a213a' into nanostack_v15_1_0
* commit '00253cb11629fab6f753682d89faa2ce7b4a213a':
  Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 225a4af94f..154db5425e
2021-12-08 13:41:33 +02:00
Arto Kinnunen 00253cb116 Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 225a4af94f..154db5425e
154db5425e Merge branch 'release_internal' into release_external
dca258c3f0 Updated unit test
89df990e6d Set EAPOL relay state function to LLC as a callback
47d8f42bf5 Removed extra call to supplicant delete callback
00ebfd905f Added new configuration options for Border router
421f6a8191 Move RPL code to the 6lr state machine
e1e43b8ac2 Corrected pae controller BR EUI-64 flagging
aaefdaebab Refactored pae controller (#2707)
b82e0ee19a Update copyright text in CMakeLists.txt files (#2706)
5791a22d37 Renamed bootstrap files and separated pae controller callback functions (#2703)
4e3ec07caf MAC beacon payload max MTU allocation limited to for support MTU size 127.
a997ab6653 Iotthd 4698 (#2702)
e64b057bff Adjusted security protocols timeouts (#2701)
cb3db6419f Return invalid values from old API if new configuration is used
6872401f8d RPL address registration update
90a434d318 RPL DAO lifetime update
e39f6432eb Forward RPL configuration unmodified
58da4d6c93 Sync Cmake updates from Mbed OS (#2697)
4c229b46c9 Adjust Wi-SUN host/router config - HAVE_RPL (#2696)
40bd2320ba Update release v15.0.0 details to CHANGELOG (#2694)

git-subtree-dir: connectivity/nanostack/sal-stack-nanostack
git-subtree-split: 154db5425eb9f0df82ee081cb05e7d80cda11415
2021-12-08 13:39:38 +02:00
Martin Kojtal b129f6ebad
Merge pull request #15184 from ihf-uk-team/master
Fix initialisation sequence of RTC
2021-12-07 13:57:32 +00:00
Martin Kojtal a82ee22e99
Merge pull request #15183 from jeromecoutant/STM32WL_UPDATE
STM32WL : add robustness
2021-12-07 09:11:56 +00:00
Jerome Coutant e49036dd56 STM32WL : update readme 2021-12-06 17:48:35 +01:00
Jerome Coutant fb07b7ac4c STM32WL : add LORA robustness
Improvment to support extensive tests
2021-12-06 17:48:35 +01:00
Marc Emmers 0fb88f8521 Deprecate instead of remove index_type 2021-11-30 10:56:05 +01:00
Marc Emmers ed3ad1ca9f mstd::span rename index_type to size_type according to spec 2021-11-30 10:56:05 +01:00
Martin Kojtal f609a5234e
Merge pull request #15177 from danluck/master
Fix overflow at extremely low RSSI
2021-11-29 16:54:11 +00:00
Martin Kojtal c08be76aa9
Merge pull request #15178 from ATmobica/master
Add netbuf-recvinfo-enabled config to LWIP settings
2021-11-29 16:53:57 +00:00
Michael Hasling dc30b7afe9 Fix initialisation sequence of RTC
Initialisation of RTC was wrong for boot from sysreset, and resulted
in RTOS with nothing to do in its main thread. This fixes the bug.
2021-11-29 16:45:22 +00:00
Charles ccc34b9134 Fix Low Power sleep, now 3uA 2021-11-29 17:16:09 +01:00
ATmobica 784f17b26c Add netbuf-recvinfo-enabled config to LWIP mbed_lib.json 2021-11-25 17:18:35 +01:00
Mikhail Isaev 352e6fbd23 Fix overflow at extremely low RSSI
Some LoRaWAN modem like SX1272 can receive downlink packets with RSSI level less than -127. So "int8_t" is not enough for store all possible RSSI values. For example, SX1272 has sensitivity at -137 dBm.
Problem was manifested in the file "SX1272_LoRaRadio.cpp" at SX1272_LoRaRadio::handle_dio0_irq() method.
When value of _rf_settings.lora_packet_handler.rssi_value calculated incorrect RSSI will be stored. Example case:

Value readen from register REG_LR_PKTSNRVALUE _rf_settings.lora_packet_handler.snr_value equals -47.
Value readen from register REG_LR_PKTRSSIVALUE equals 17.
RSSI_OFFSET equals "-139", snr equals "-11".

For case MODEM_LORA value calculated by formula:
_rf_settings.lora_packet_handler.rssi_value = RSSI_OFFSET + rssi + (rssi >> 4) + snr;
and result value will be "124" because of int8_t overflow so it's not correct value (too high).

Correct value must be:
-139 + 17 + (1) + (-11) = -132.

Another motivation: at all other places int16_t type used to store RSSI value.
2021-11-24 21:56:42 +03:00
mbedmain 2eb06e7620 Update Mbed version block 2021-11-22 16:23:38 +00:00
Martin Kojtal 01ef431f88
Merge pull request #15174 from OpenNuvoton/nuvoton_m2354_tfm_sram-bank_sector-map_scratch
M2354: Fix potential issues in TF-M
2021-11-22 10:48:21 +00:00
Martin Kojtal ae2bef48cf
Merge pull request #15169 from jeromecoutant/OSPI_U5
B_U585I_IOT02A supports OSPI
2021-11-22 09:29:06 +00:00
Chun-Chieh Li d0f72015c0 M2354: Fix potential issues in TF-M
Fix the following issues in TF-M to avoid emergence in the future:
1.  Enable initial stack not located in SRAM bank0
    On reset, only SRAM bank0 is enabled. And SRAM bank1/2 will be enabled in immediately following SystemInit().
    When initial stack is located in SRAM bank1/2, we will meet trouble because SystemInit() itself needs to use initial stack.
    To conquer the dilemma, we add preceding code in front of original Systeminit(), which is responsible for enabling SRAM bank1/2 and guarantees no using initial stack.
2.  Fix sector maps of internal/external (SDH) Flash are incompatible, caused by TF-M's MCUboot port.
    This is done by adapting external (SDH) Flash sector size to internal Flash's.
3.  Enlarge firmware upgrade scratch size. There are two advantages:
    (1) Get around MCUboot limit which requires scratch size not smaller than image trailer size
    (2) Improve wear leveling for the scratch area
2021-11-22 13:57:22 +08:00
Jerome Coutant be6e9a16a5 B_U585I_IOT02A supports OSPI 2021-11-18 12:26:21 +01:00
Martin Kojtal 0db0445a97
Merge pull request #15111 from world-direct/feature/dtlserror
DTLSSocket - destruction while handshaking lead to error
2021-11-17 15:25:29 +00:00
Martin Kojtal ae5c9ec70e
Merge pull request #15153 from bakatrouble/master
STM32F722ZE port
2021-11-17 15:22:30 +00:00
Martin Kojtal e5dcd7ed3a
Merge pull request #15164 from jeromecoutant/PR_L151CB
STM32L1: add support of MCU_STM32L151xB
2021-11-17 15:18:30 +00:00
Martin Kojtal ac0fa10640
Merge pull request #15166 from world-direct/feature/googletestversion
Change google test git tag to main
2021-11-16 10:59:54 +00:00
Lukas 05b5b4095d
Change google test git tag to main
google test changed from master to main branch
2021-11-16 10:35:49 +01:00
Jerome Coutant 9675b6ccb6 STM32L1: add support of MCU_STM32L151xB
for custom boards like RAK811
2021-11-10 10:12:28 +01:00
Martin Kojtal d4c6b37cad
Merge pull request #14610 from jeromecoutant/DEV_SLEEP_TRACE
Power management stat : add verbosity level for MBED_SLEEP_TRACING_ENABLED
2021-11-08 15:11:18 +00:00
Martin Kojtal 41744c7fee
Merge pull request #15152 from sytsereitsma/minimal_printf_float_rounding
Fix rounding bug when formatting floats with minimal_printf
2021-11-08 09:37:31 +00:00