Commit Graph

34182 Commits (a947f4845cb754cafa2efdb232fb1c706fe8575f)

Author SHA1 Message Date
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
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
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
Jerome Coutant 8e26a05f50 STM32: readme update for MBED_SLEEP_TRACING_ENABLED 2021-11-08 09:46:20 +01:00
jeromecoutant 658e9ae972 Power management stat : add verbosity level for MBED_SLEEP_TRACING_ENABLED
Full verbosity is adding a console line for each lock/unlock API call

- stats can be enabled with json config
- default configuration is full verbosity and add a console line for each lock/unlock command
- for STM32 targets, verbosity is reduced by default
2021-11-08 09:46:06 +01:00
Martin Kojtal c41145c6d8
Merge pull request #15161 from OpenNuvoton/nuvoton_m2354_tfm_aws-iot
M2354: Adjust TF-M configuration to fit AWS IoT application
2021-11-04 14:09:21 +00:00
sytse 43f0c14c9a Code style violation corrected 2021-10-29 13:45:32 +02:00
sytse b99584d16d Fixed floating point formatting
When decimal_prec is 0 and the value is negative and needs rounding subtract 1, instead of adding 1
When decimal_prec > 0 round before printing the integer part, instead of after
2021-10-29 13:40:29 +02:00
Sytse Reitsma 1c6fb3b4c5 Added unit test for floating point formatting
And added a bonus test for string padding
2021-10-29 13:32:46 +02:00
Chun-Chieh Li 5992676276 M2354: Adjust TF-M configuration to fit AWS IoT
1.  In TF-M, enlarge ITS max asset number/size
    NOTE: RSA key size is larger
2.  In TF-M, enlarge mbedtls dedicated heap
    NOTE: RSA algorithm needs more memory.
    NOTE: psa_aead_decrypt() (for mbedtls_ssl_read()) needs memory proportional to data size.
2021-10-29 10:38:27 +08:00
bakatrouble 6c9ae1e9fc Add STM32F722ZE target 2021-10-28 19:18:30 +03:00
bakatrouble 0e64ff9a90 Support missing SPI6 on STM32F7 2021-10-28 19:18:30 +03:00
bakatrouble 469d681bd9 Support different STM32F7 flash configurations 2021-10-28 19:18:30 +03:00
bakatrouble e33088583e Allow STM32F7 targets without Ethernet 2021-10-28 19:18:24 +03:00
Martin Kojtal 07e119b467
Merge pull request #15154 from rardiol/STM32WB55-BLE-HCI_size
STM32WB55 HCI driver: version dependent rom size
2021-10-28 10:09:49 +01:00
Ricardo Ardissone 2a99cf6d19 STM32WB55: update README.md for BLE version 1.12+ 2021-10-27 19:21:22 -03:00
Martin Kojtal 0d54dbc8f6
Merge pull request #15151 from maxgerhardt/patch-1
Update psutil to 5.6.7 and PyElfTools to 0.27
2021-10-26 13:47:37 +02:00
Martin Kojtal 84e0d5d785
Merge pull request #15139 from billwatersiii/pr/pwm_resume_fix
Fix for PWM resume issue, SWINTEGRATION-57
2021-10-25 14:43:26 +02:00
Martin Kojtal d9b2b7d7ce
Merge pull request #15149 from 0xc0170/fix-issue-8188
InterruptIn: add note about enabling interrupts in rise/fall
2021-10-25 11:45:45 +02:00
Martin Kojtal 555f6beceb
Merge pull request #15147 from boraozgen/bugfix/remove-socket-control-stubs
NetworkStack: Remove stub implementations of socket_x_control
2021-10-25 11:41:04 +02:00
Ricardo Ardissone ca28a86d1b STM32WB55 HCI driver: version dependent rom size
stm32wb5x_BLE_HCILayer_fw.bin install address increased from 0x080E0000
to 0x080E1000 in version 1.12.0. Assumes any future bump to major or
minor version will maintain the new install address.
See https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/Release_Notes.html
2021-10-22 18:20:33 -03:00
Maximilian Gerhardt 2b1834be75
Update PyElfTools as well
Fixes "ImportError: cannot import name 'MutableMapping' from 'collections'" for Python 3.10
2021-10-22 14:59:10 +02:00
Maximilian Gerhardt d2b85a64aa
Update psutil to 5.6.7 2021-10-22 13:11:34 +02:00
Bill Waters a2e46525ac Fix for PWM resume issue, SWINTEGRATION-57 2021-10-21 09:22:45 -07:00
Martin Kojtal 0a3b16868f InterruptIn: add note about enabling interrupts in rise/fall
Fixes #8188
Make it obvious, only calling rise/fall methods, IRQ are active. Nothing more needed.
2021-10-21 14:55:37 +01:00
Bora Özgen 7523588035 NetworkStack: Remove stub implementations of socket_x_control
As a default implementation is already provided by
NetworkStack, stub implementations in the child classes
are not required. Furthermore, they return unsupported for
all cases instead of redirecting to the non-control API,
which is plainly wrong.
2021-10-21 10:33:13 +02:00
Martin Kojtal 54a4879801
Merge pull request #15141 from 0xc0170/mergify-fix-review-labels
mergify: fix needs work labels if CI fails
2021-10-20 15:52:42 +02:00