Commit Graph

34621 Commits (master)

Author SHA1 Message Date
Martin Kojtal d723bf9e55
Merge pull request #15521 from world-direct/feature/cellspam
reduce spam on info log of cellular sockets
2024-10-08 19:44:17 +02:00
Martin Kojtal d84a97a0c1
Merge pull request #15524 from ccli8/nuvoton_m467_gpio_set_debounce_time
M467: Fix invoking GPIO_SET_DEBOUNCE_TIME
2024-10-08 19:43:45 +02:00
Chun-Chieh Li a72075b5ad M467: Fix invoking GPIO_SET_DEBOUNCE_TIME
Fix missing gpio_base on invoking GPIO_SET_DEBOUNCE_TIME()
2024-09-04 16:42:19 +08:00
Martin Kojtal 036ee2c663
Merge pull request #15523 from ARMmbed/dev/hugkam01/add-eof-notice
docs: Add End of Life for Mbed notice
2024-08-26 16:15:12 +02:00
Hugues KAMBA MPIANA d83be9ec09 docs: Add End of Life for Mbed notice
* The Mbed platform and OS will reach end of life in July 2026,
  when the Mbed website will be archived and it will no longer
  be possible to build projects in our online tools.
* The device software - Mbed OS - is open source and will remain
  publicly available, but is no longer actively maintained by Arm
* The Mbed TLS project is unaffected by this announcement and
  continues to be supported as part of the TrustedFirmware
  community project.

Signed-off-by: Hugues KAMBA MPIANA <hugues.kambampiana@arm.com>
2024-08-20 19:12:43 +01:00
Lukas Karel 46e8545b55 reduce spam on info log of cellular sockets 2024-07-11 15:22:48 +02:00
Martin Kojtal 20340d7941
Merge pull request #15477 from davidalo/fix-sms
SMS: Increase timeout for send and get. Fix text SMS parsing when CRLF is contained in the text.
2024-06-08 16:22:54 +01:00
Martin Kojtal 945c3defdb
Merge pull request #15502 from mbed-ce/upstreamed/stm32h7x-clocking-fixes
Rework STM32H7x clocking configuration
2024-06-08 16:16:26 +01:00
Martin Kojtal e3d2c560e4
Merge pull request #15513 from mattgbio/check-rbp-SecureStore
SecureStore: Add missing check for rollback-protection pointer before allocating memory
2024-06-08 16:11:20 +01:00
Martin Kojtal 5cb118be1b
Merge pull request #15514 from mattgbio/skip-initial-crc-TDBStore
TDBSTore: skip data CRC when building RAM table
2024-06-08 16:06:27 +01:00
Martin Kojtal 5249bb995b
Merge pull request #15515 from matkammusic/master
Correct scan parameters types
2024-06-08 16:05:11 +01:00
Martin Kojtal 869f0d708a
Merge pull request #15493 from macronix/macronix_qspi_driver
Add configurable status register number in mbed_lib.json for QSPIBlockDevice driver to support different Flash EPN
2024-05-27 17:16:25 +01:00
Matthias Goebel 3082c28b1e skip CRC when initializing TDBStore
Problem: The build_ram_table() function of TDBStore loops over every entry, calculates the checksum and compares them to the stored checksum in the entry header to ensure integrity. For larger TDBStores (e.g. 8 MiB or more) in external single-SPI flash devices this check can take very long, thus rendering it unusable in some cases.

Solution: The suggested solution skips the time consuming CRC of the data. After reading the key and calculating its CRC, it sets next_offset to the beginning of the next entry, thereby skipping the data. While this skips the integrity check, it significantly reduces the initial building of the RAM table.

The data CRC can be enabled or disabled with a compiler flag.

Contribution is provided on behalf of BIOTRONIK.
2024-05-22 12:05:09 +02:00
Mathieu Camélique 3746f5af68 change type in ScanParameters getters 2024-05-22 08:52:42 +02:00
Martin Kojtal e04a55f32b
Merge pull request #15512 from mattgbio/missing-delete-TDBStore
TDBStore: Add missing delete for _inc_set_handle
2024-05-21 21:35:37 +02:00
Mathieu Camélique 17a03ab8e6 correct scan parameters types 2024-05-16 12:39:40 +02:00
Matthias Goebel 5fc4abe57b Added missing check for replay protection pointer before allocating new variable
Problem: If a key with write-once flag is being set in a SecureStore without rollback-protection store (i.e. _rbp_kv == NULL), additional memory will be allocated for the variable _ih->key. The memory will not be deleted, though, as the delete in line 434 only happens if a rollback-protection store exists (i.e. _rbp_kv != NULL)

Solution: Only allocate the memory if _rbp_kv != NULL

Contribution is provided on behalf of BIOTRONIK.
2024-05-16 10:51:12 +02:00
David Alonso de la Torre 9e7e22dd2c Fix AT_CellularSMS::list_messages breaking in text mode when CRLF is contained in SMS payload text
When parsing SMS, it can happen that we receive CRLF in the SMS payload (happened to me when receiving provider texts).
As an example, we can receive:

"""
Hello <CR><LF>
World!
"""

With previous implementation, second consume_to_stop_tag was stopping in <CR><LF> and rest of the code was failing for obvious reasons.
With this commit we consume the full payload as bytes.
2024-05-11 10:42:46 +02:00
Jamie Smith 45e9efc60d Remove duplicate option for NUCLEO_H723ZG 2024-05-06 21:48:54 -07:00
Jamie Smith a5abf7ca11 Remove Portenta-specific system clock override as this can be done through targets.json now 2024-05-05 16:37:00 -07:00
Martin Kojtal 7e16b0044e
Merge pull request #15496 from szsam/patch-1
ESP8266: Fix accessing uninitialized variable
2024-05-03 19:07:01 +02:00
Martin Kojtal 1060154c19
Merge pull request #15499 from agausmann/i2c-slave-flags
STM: Add separate flags for I2C slave transfer in progress
2024-05-03 19:03:40 +02:00
Matthias Goebel e7db584d82 Added missing delete 2024-05-03 10:34:51 +02:00
Martin Kojtal 95fee2f75a
Merge pull request #15500 from OpenNuvoton/nuvoton_fix_function_undeclare
NUVOTON: Fix undeclared function as error
2024-04-24 19:07:38 +02:00
Martin Kojtal 98853ac59e
Merge pull request #15503 from hallard/nordic_rak4630
RAK4630 LoRaWAN Allow change TCXO control adding it as a parameter
2024-04-23 19:23:09 +02:00
Martin Kojtal 8502c74d9c
Merge pull request #15509 from OpenNuvoton/nuvoton_fix_can_interrupt
NUVOTON: CAN: Fix Rx interrupt and filter mask
2024-04-23 19:20:05 +02:00
Chun-Chieh Li c1c9550539 NUVOTON: CAN: Fix filter mask being zero
On mask being zero, it means any match, not exact match.

NOTE: This fix only targets CAN (M453/M487), not CAN-FD (M467).
NOTE: NUC472 CAN doesn't support filter.
2024-04-18 13:29:24 +08:00
Chun-Chieh Li 989a694c5a NUVOTON: CAN: Fix Message Object number for Tx and recognition of Rx interrupt
1.  The same Message Object number cannot use for both Tx and Rx simultaneously.
    For Tx, Message Object number 31 is reserved instead of 0.
    For Rx, Message Object numbers 0~30 are used and for filters.
2.  NewDat bit (CAN_IsNewDataReceived()) isn't exclusive to Rx.
    Recognize Rx interrupt by Message Object number other than 31.

NOTE: This fix only targets CAN (NUC472/M453/M487), not CAN-FD (M467).
2024-04-18 11:04:15 +08:00
Chun-Chieh Li bfd4ceb20b NUVOTON: CAN: Fix Rx interrupt doesn't work
Major modifications:
1. Handle Rx interrupt based on Message Object interrupt (CAN_IIDR=0x0001~0x0020) instead of CAN_STATUS.RxOK
2. Also handle Tx interrupt following above for consistency

Other related modifications:
1. Fix signature type error in CAN_CLR_INT_PENDING_BIT()
2. Add CAN_CLR_INT_PENDING_ONLY_BIT() which doesn't clear NewDat flag so that user can fetch received message in thread context

NOTE: This fix only targets CAN (NUC472/M453/M487), not CAN-FD (M467).
2024-04-18 11:04:15 +08:00
Chun-Chieh Li 63bdb26915 NUVOTON: CAN: Fix filter mask
NOTE: This fix only targets CAN (M453/M487), not CAN-FD (M467).
NOTE: NUC472 CAN doesn't support filter.
2024-04-18 11:04:15 +08:00
Jamie Smith 7cb61d9edf Rework STM32H7x clocking configuration 2024-04-16 00:24:09 -07:00
Martin Kojtal 7ae592dabe
Merge pull request #15501 from OpenNuvoton/tfm_fix_function_undeclare
TFM: Fix undeclared function tfm_ns_interface_init
2024-04-12 10:42:55 +02:00
Martin Kojtal b5f1d3f95c
Merge pull request #15484 from arunsathiya/master
ci: Use GITHUB_OUTPUT envvar instead of set-output command
2024-04-12 10:41:49 +02:00
David Alonso de la Torre d676084600 Increase AT timeout to 10s in AT_CellularSMS::get_sms
When SMS list is big and baudrate is not fast enough, with default timeout we can suffer from timeout error while getting a sms because method is parsing the full list and this takes long.
2024-04-05 16:46:05 +02:00
David Alonso de la Torre 5c49f161fb Increase AT timeout to 10s in AT_CellularSMS::send_sms
For some devices sending can be slow (as an example see SIM800, it can be up to 60s), command is being run properly but default timeout is returning an invalid error.
See https://www.elecrow.com/wiki/images/2/20/SIM800_Series_AT_Command_Manual_V1.09.pdf
2024-04-05 16:45:59 +02:00
Charles 61522fb297 Allow custom TCXO control parameter
Allow custom TCXO control parameter
2024-04-04 11:43:02 +02:00
Adam Gausmann dc49c2b5f5 Add separate flags for I2C slave transfer in progress
Fixes ARMmbed/mbed-os#15498

Adds 2 boolean flags to the STM32 `i2c_s` object
to indicate whether a transfer is in progress,
separate from the existing "transfer pending" flags.

`i2c_slave_write`, `i2c_slave_read` and their associated callbacks
are modified to use these flags in addition to the pending flags.
The original behavior of the pending flags is preserved.
2024-03-28 10:47:59 -05:00
Chun-Chieh Li 7c43c6d906 TFM: Fix undeclared function tfm_ns_interface_init
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-19 10:20:37 +08:00
Chun-Chieh Li 11d99971c8 NUVOTON: Serial: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:55:16 +08:00
Chun-Chieh Li 25c0491284 NUVOTON: I2C: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:54:58 +08:00
Chun-Chieh Li 4366b6811d NUVOTON: SPI: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:54:45 +08:00
Chun-Chieh Li cf7a07f106 NUVOTON: AnalogOut: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-18 09:53:55 +08:00
Chun-Chieh Li 1be9ff0b5e NUVOTON: CAN: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-15 13:26:03 +08:00
Chun-Chieh Li 5a4a4fd970 NUVOTON: AnalogIn: Fix undeclared function gpio_set
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-15 13:18:55 +08:00
Chun-Chieh Li 4712f9d62e NUVOTON: EMAC: Fix undeclared function mbed_error_printf
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-03-15 10:10:52 +08:00
Mingjie Shen c7ea9c1550
ESP8266: Fix accessing uninitialized variable 2024-03-07 20:36:17 -05:00
danielzhang 9385ec8791 add status register number config 2024-02-27 20:16:41 +08:00
Arun 8c0bc50180
Quote envvar to match documentation 2024-01-22 17:21:12 -08:00
Arun 7f62c06b65
ci: Use GITHUB_OUTPUT envvar instead of set-output command 2024-01-11 20:19:34 -08:00
Martin Kojtal baf6a3022a
Merge pull request #15471 from hallard/LoRaWAN_set_antenna_gain
LoRaWAN allow to adapt antenna gain
2023-12-20 12:43:00 +01:00