Commit Graph

34175 Commits (0fb88f8521485f6db9a691986110da7310425ec7)

Author SHA1 Message Date
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
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
Martin Kojtal aac66fc225
Merge pull request #15145 from Uruloke/qspif-add-missing-mbed-namespace-prefix
QSPIF: Add missing mbed namespace prefix to header file
2021-10-20 14:27:27 +02:00
Uruloke d95768b38c QSPIF: Add missing mbed namespace prefix to header file 2021-10-19 15:09:34 +02:00
Martin Kojtal f69af599d5
Merge pull request #15126 from multiplemonomials/create-distro-reborn
mbed_create_distro() reborn: a function to make adding multiple targets easy
2021-10-19 14:28:06 +02:00
Martin Kojtal 06f234e3af
Merge pull request #15137 from jeromecoutant/PR_WL_1_1_0
STM32WL update drivers version to CUBE V1.1.0
2021-10-15 10:07:02 +02:00
Martin Kojtal d4c27e006b mergify: fix needs work labels
We have clash with needs work and needs CI labels. If CI fails, we need to be in CI stage. Check for needs: CI label and apply work only if it was CI.

Otherwise we would be in the loop.
2021-10-14 15:01:16 +01:00
Martin Kojtal e4111eaa0d
Merge pull request #15068 from jeromecoutant/PR_INTERFACE
connectivity tests: avoid HardFault with null pointer
2021-10-14 15:43:07 +02:00
Martin Kojtal 2cd6c70c94
Merge pull request #15117 from JojoS62/fix-memap-diff
CLI2: copy mapfile for diff statistics
2021-10-14 14:44:45 +02:00