Commit Graph

34607 Commits (e3d2c560e4da2c836dffc902924ba8aaa8948831)

Author SHA1 Message Date
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
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
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
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
Martin Kojtal 61ab4f7f76
Merge pull request #15472 from jtmyz9/jmcloud/STM32-use-more-than-one-fifo
Don't overlap STM32 FDCAN RAM sections
2023-12-19 16:33:14 +01:00
Martin Kojtal 6403ec75c7
Merge pull request #15473 from cyliangtw/master
USBCDC support ZLP
2023-12-19 16:31:04 +01:00
Martin Kojtal dd99580cc5
Merge pull request #15475 from OpenNuvoton/nvt_usbd_zlp
Nuvoton: Bug fix of Nuvoton HUSBD driver's endpoint write
2023-12-14 13:42:15 +01:00
cyliang tw 772c5d3eec Fix NUC472 wrong define of set-zero-packet 2023-12-14 11:18:31 +08:00
cyliang tw 126d767a59 Avoid USBCDC send_nb break the continuation use case 2023-12-13 13:53:27 +08:00
Chris Liang c30af6a7df To judge send ZLP or not in USBCDC::AsyncWrite 2023-12-08 19:39:16 +08:00
cyliang tw 0ecb9bd268 Nuvoton HUSBD support endpoint write ZLP 2023-12-05 19:44:43 +08:00
Chris Liang ca616c865a
Move "send ZLP write start" after last alignment packet sent 2023-12-05 19:31:17 +08:00
Chris Liang e2aed1824c
Update USBCDC.cpp to fulfill A style 2023-12-01 20:43:12 +08:00
Chris Liang 1cccc7e14d
Update USBCDC.cpp to support ZLP 2023-12-01 20:22:47 +08:00
Chris Liang 794ee9704f
Update USBCDC.h to support ZLP 2023-12-01 20:17:06 +08:00
jmcloud 9859c60751 Don't overlap STM32 FDCAN RAM sections 2023-11-30 13:19:29 -08:00
Charles deb09a3a9c allow to override antenna gain 2023-11-30 14:52:19 +01:00
Martin Kojtal 30c2ea2cbc
Merge pull request #15469 from cyliangtw/master
TARGET_M480: Update targets.json to enable IAR support
2023-11-30 10:35:50 +01:00