Commit Graph

34621 Commits (master)

Author SHA1 Message Date
Martin Kojtal 170aea5932
Merge pull request #15240 from OpenNuvoton/nuvoton_esp8266_flow_control_reconnect
ESP8266: Fix serial flow control inconsistency on reconnect
2022-03-09 11:33:07 +01:00
Chun-Chieh Li 0d2de99778 ESP8266: Fix serial flow control inconsistency on reconnect
The commit will address the test failure of connectivity-netsocket-tests-tests-network-interface.
In the test, serial channel will break with the sequence: ESP8266Interface::connect() > disconnect() > connect()
In the first connect, both board's and ESP8266's serial flow control default to disabled, and then enabled.
In the second connect, board's serial flow control keeps enabled but ESP8266's resets to disabled, causing inconsistency between two ends.

The approach: Explicitly disable board's serial flow control on re-power or reset in (re-)connect
2022-03-07 18:30:36 +08:00
Martin Kojtal c37cd51abc
Merge pull request #15239 from pilotak/master
STM32G4: enable QSPI for custom boards
2022-03-03 12:10:55 +01:00
Pavel S 5c2f103b73
enable QSPI for STM32G4 2022-03-02 20:26:43 +01:00
Martin Kojtal dcb71e20e6
Merge pull request #15238 from deepak-shreshti/master
Updated I2C pin names in PinNames.h header
2022-03-01 11:06:37 +01:00
Deepak V. Shreshti ae0fcefd17 Updated I2C pin names in PinNames.h header 2022-02-28 14:46:11 +05:30
Martin Kojtal 48b1b8ec78
Merge pull request #15221 from amcnicoll/amcnicoll/shared_uart_isr
Add ability to use multiple UARTs on STM32L0, STM32G0 when IRQ is shared
2022-02-22 10:36:28 +01:00
Anthony Mcnicoll fe698ea13b Missed matching #endif 2022-02-20 16:43:44 -05:00
Martin Kojtal a58f8ddae7
Merge pull request #15232 from jeromecoutant/PR_H753
STM32H7: add MCU_STM32H753xI support
2022-02-16 16:44:52 +01:00
Martin Kojtal 3b86e1f4b9
Merge pull request #15230 from jeromecoutant/PR_G4
STM32G4: corrections for STM32G491xE, STM32G4A1xE and STM32G471xE
2022-02-16 16:36:48 +01:00
Martin Kojtal 2d59c759bd
Merge pull request #15227 from zul00/fix/lora_timing/join_req_retransmission/call_in
lorawan: Fix Join Request retransmission timing (Interop test)
2022-02-16 16:36:30 +01:00
Martin Kojtal bf05317384
Merge pull request #15231 from jeromecoutant/PR_L1
STM32L1: build error with STM32L151xB MCU
2022-02-16 14:34:43 +01:00
Anthony Mcnicoll 41275f7e0d Refactor missing #defs for multiple UART support 2022-02-15 21:46:12 -05:00
Jerome Coutant 90cbc89532 STM32H7: add MCU_STM32H753xI support 2022-02-15 16:40:04 +01:00
Jerome Coutant c594d6ee95 STM32L1: build error with STM32L151xB MCU 2022-02-15 15:39:04 +01:00
Jerome Coutant 661c5c17af STM32G4: missing files for STM32G491xE and STM32G4A1xE 2022-02-15 14:03:26 +01:00
Jerome Coutant 071cffafc5 STM32G4 : STM32G471xx CMSIS file 2022-02-15 11:20:20 +01:00
Martin Kojtal 03252690d9
Merge pull request #15229 from jeromecoutant/PR_H7_I2C55
STM32H7 : fix I2C5 build error
2022-02-15 10:55:06 +01:00
Jerome Coutant 03e51c164c STM32H7 : fix I2C5 build error 2022-02-14 13:39:19 +01:00
zul 61f83741b0 Fixed Join Request retransmission timing (Interop test)
On interop test 1.2.2.4, Join Request retransmission is expected to be 6
s + worst case air transmission. This delay is to accommodate for
JoinAccept through RX2.

The `call_in` in process_reception_timeout of RX2-window adds 500 ms
delay between RX2 symbol-interrupt-timeout and the next join request
retransmission. This is an isolated change and only affect the
retransmission of Join Request.

Adding this delay improves the chance of succeeding test
1.2.2.4 (subset of 1.2.2)
2022-02-14 12:07:29 +01:00
Martin Kojtal c50f490cf4
Merge pull request #15225 from zul00/fix/unconfirmed_retransmission/stop_on_downlink
Fixed issue in unconfirmed_retransmission behavior
2022-02-14 09:48:24 +01:00
Martin Kojtal 3b3b30799f
Merge pull request #15223 from OpenNuvoton/nuvoton_fix_cmake_ninja_armclang
CMake: Fix command line too long with Ninja/ARMClang on Windows
2022-02-14 09:48:04 +01:00
Anthony Mcnicoll f004f09b0b Consistency fixes for multiple UART support commit 2022-02-12 12:35:49 -05:00
Zulkarnaen 1e9254387e Fixed issue in unconfirmed_retransmission behavior
Fixed issue on LoRaWANStack based on lorawan v1.0.2 specification page
24 line 25-27. The specification mentioned that that end-device shall
stop retransmission when receiving ANY downlink on RX1 or RX2 window.

- Removed conflicting behavior in
  LoRaWANStack::post_process_tx_with_reception()
- Updated comment section of nb_trials at lorawan_data_structures.h
2022-02-11 15:04:23 +01:00
Chun-Chieh Li 15579bdf0c CMake: Fix command line too long with Ninja/ARMClang on Windows
The issue is reported in:
https://github.com/ARMmbed/mbed-os/issues/14533

And relies on bugfix in newer cmake version:
https://gitlab.kitware.com/cmake/cmake/-/issues/21093
2022-02-11 17:59:33 +08:00
Martin Kojtal c6d814e68c
Merge pull request #15215 from jeromecoutant/PR_STM32L4_ADD
STM32 : add MCU_STM32L4P5xG and MCU_STM32L412xB support
2022-02-09 16:57:53 +01:00
Martin Kojtal f5156087ba
Merge pull request #15222 from OpenNuvoton/nuvoton_iar_strrchr
Fix strrchr() not declared for IAR
2022-02-07 12:04:37 +01:00
Martin Kojtal 835b2741b4
Merge pull request #15217 from LukaB/fix-STM32WL-radio-driver
Fix STM32 radio driver when bandwidth is 0
2022-02-07 12:03:58 +01:00
Chun-Chieh Li 9e49cabb2c Fix strrchr() not declared for IAR
For IAR, strrchr() is used in MBED_FILENAME macro definition. Declare it via string.h to fix compile error when MBED_FILENAME is expanded.
2022-02-07 16:04:23 +08:00
Anthony Mcnicoll 8f9b1153ef Add ability to use multiple UARTs on STM32L0, STM32G0 when IRQ is shared 2022-02-05 12:00:23 -05:00
LukaB d503495189 Fix STM32 radio driver when bandwith is 0
A bug was detected when the uint8_t SUBGRF_GetFskBandwidthRegValue( uint32_t bandwidth )
is called and the bandwith argument has a value of 0.

Comparing the code to the STMCubeWL 1.1 we can see that an if statement is missing to
address the condition where bandwith is equal to 0.

Added the if statement to the radio driver to account for this edge case.
2022-02-03 08:24:21 +13:00
Martin Kojtal 9bdbe9cb85
Merge pull request #15219 from mikrodust-henrikp/filename_mbed_assert
Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
2022-02-02 10:24:06 +01:00
Martin Kojtal c4fd338adc
Merge pull request #15212 from mothacehe/master
STM32H7: increase i2c slave rx limit.
2022-02-01 16:40:26 +01:00
Henrik Persson 6ff504ceb4 Use MBED_FILENAME instead of __FILE__ in MBED_ASSERT
To actually get the filename in the error reporting struct instead of
the start of the path, let's use the MBED_FILENAME macro that MBED_ERROR
et al uses.
2022-02-01 09:25:33 +01:00
Martin Kojtal 26876c0b91
Merge pull request #15190 from hazzlim/make_gpio_irq_api_portable
Make gpio irq api portable
2022-01-31 10:27:18 +01:00
Martin Kojtal 9e2c9498cc
Merge pull request #15214 from ladislas/ladislas/bugfix/mbed_assert_no_throw
Allow unit tests to be compiled with -fno-exception
2022-01-31 10:24:51 +01:00
Jerome Coutant 12757de057 STM32L4 : add MCU_STM32L412xB support 2022-01-28 13:49:49 +01:00
Mathieu Othacehe 3c0c9c2b33
STM32: increase i2c slave rx limit.
Use uint16_t variables for i2c slave_rx_buffer_size and slave_rx_count
variables. This allows to receive more than 255 bytes in slave mode. The
bytes are received one by one in slave mode so there are no hardware
limitations forcing a 1 byte rx count limit.
2022-01-28 11:58:52 +01:00
Jerome Coutant 4ecbf935ce STM32L4 : add MCU_STM32L4P5xG support 2022-01-28 11:46:39 +01:00
Ladislas de Toldi 568ffbf22a
Allow unit tests to be compiled with -fno-exception 2022-01-28 11:11:08 +01:00
Martin Kojtal f75ff22714
Merge pull request #15207 from wally0258/master
Add Nuvoton NuMaker-IoT-M263A CAN bus support
2022-01-28 10:58:34 +01:00
wally0258 4a0df44ec9
Resolve compiler warning and disable CAN0 IRQ 2022-01-27 09:40:55 +08:00
Hari Limaye f4e5359710 GPIO: Use uintptr_t for gpio_irq_api context
The HAL gpio_irq_api stores object IDs, which serve as a form of context
for the dispatch of the interrupt handler in the drivers level
InterruptIn Class. The way this is achieved is that the InterruptIn
Class casts its address to uint32_t, which is stored as the ID.
This results in compilation failure when the size of an object pointer
is greater than uint32_t, for example when building on a PC for unit
testing.

In order to allow Unit Testing of the InterruptIn Class, we replace the
use of uint32_t with uintptr_t (type capable of holding a pointer),
which allows portability and expresses intentions more clearly.
In aid of this latter goal, we also replace the use of the name "id"
with "context", to improve clarity - these are addresses of the context
related to that callback.
2022-01-26 18:12:52 +00:00
Hari Limaye a580c418cc HAL: Remove duplication in TARGET_NRF52 gpio_api 2022-01-26 11:14:30 +00:00
Martin Kojtal 4095c65e31
Merge pull request #15210 from jeromecoutant/PR_DISCO_L562
ST: correct LED pins for DISCO_L562QE
2022-01-26 11:47:26 +01:00
wally0258 94833a0ba6
Update can_api.c
Update Copyright
2022-01-25 09:05:31 +08:00
Jerome Coutant b9d51b6255 ST: correct LED pins for DISCO_L562QE 2022-01-21 09:41:21 +01:00
Martin Kojtal 1443257e40
Merge pull request #15206 from vznncv/iss_stm32_spi_16_bit
STM32: fix SPI 16 bit mode
2022-01-17 16:39:01 +01:00
Martin Kojtal d234b35aee
Merge pull request #15205 from mikrodust-henrikp/add_usbdevice_to_nucleo_f722ze
Add USBDEVICE to NUCLEO_F722ZE target
2022-01-17 16:10:06 +01:00
Martin Kojtal de5b459715
Merge pull request #15199 from majcher/feature/stm32g0b1
Support for the NUCLEO_G0B1RE board
2022-01-17 12:02:24 +01:00