Commit Graph

8764 Commits (master)

Author SHA1 Message Date
Chun-Chieh Li dbc0f5b2b3 Nuvoton: I2C: Fix potential role switch failure
Fix in i2c_do_trsn(), interrupt doesn't change back to enabled due to premature return.

Fix targets:
-   NUMAKER_PFM_NANO130
-   NUMAKER_PFM_NUC472
-   NUMAKER_PFM_M453
-   NUMAKER_PFM_M487/NUMAKER_IOT_M487
-   NUMAKER_IOT_M252
-   NUMAKER_IOT_M263A
-   NU_M2354
2022-09-23 09:45:56 +08:00
Chun-Chieh Li 5ba8afbd99 M467: Support NuMaker-IoT-M467 board
Pinout comparison between NuMaker-M467HJ and NuMaker-IoT-M467 boards:
1.  UNO are unchanged
2.  LEDs are unchanged
3.  Buttons are unchanged, except button names
4.  NuMaker-M467HJ has HBI but NuMaker-IoT-M467 does
5.  NuMaker-M467HJ doesn't have ESP8266 but NuMaker-IoT-M467 does
6.  SDHC are unchanged
2022-09-22 19:03:41 +08:00
Chun-Chieh Li eaaec1c730 M467: Adjust UART pinmap to pass FPGA CI Test Shield test 2022-09-22 19:03:41 +08:00
Chun-Chieh Li a0a50865e9 M467: Exclude UNO SPI pins from FPGA CI Test Shield test
UNO D8/D9/D10/D11/D12/D13 can wire to on-board SPI flash.
Exclude these pins from FPGA CI Test Shield test.
2022-09-22 19:03:40 +08:00
Chun-Chieh Li 42cfb84119 M467: I2C: Fix potential role switch failure
Fix in i2c_do_trsn(), interrupt doesn't change back to enabled due to premature return.
2022-09-22 19:00:38 +08:00
Deepak V. Shreshti c5ca907042 Removed UTF8 Chars 2022-09-09 17:46:40 +05:30
Deepak V. Shreshti 2a72a7079b Added TMPM4NR Platform
New Platform for Toshiba Added
2022-09-08 18:57:09 +05:30
Chun-Chieh Li e8dd9f43fa M467: Make mbedtls H/W port removable
Some M460 chips don't support AES/SHA/ECC/RSA H/W.
Make them removable from mbedtls H/W port through '"target.macros_remove": ["MBEDTLS_CONFIG_HW_SUPPORT"]'.
2022-09-01 10:02:19 +08:00
cyliangtw 2f8b60d501 M467: support fullspeed usb device 2022-09-01 10:02:19 +08:00
Chun-Chieh Li 88a529180f M467: Support Crypto RSA H/W
1.  Crypto RSA H/W supports 1024/2048/3072/4096 key bits. Fall back to software implementation for other key bits.
2.  For decrypt, if MBEDTLS_RSA_NO_CRT isn't defined, go CRT, or normal.
3.  For decrypt, when blinding (f_rng != NULL), enable SCAP mode.
4.  Recover from Crypto RSA H/W failure:
    (1) Enable timed-out wait to escape from RSA H/W trap
    (2) On RSA H/W timeout, stop this RSA H/W operation
    (3) Fall back to S/W implementation on failure

NOTE: RSA 4096 key bits can fail with default mbedtls configuration MBEDTLS_MPI_MAX_SIZE.
      Enlarge MBEDTLS_MPI_MAX_SIZE to 1024 or larger if this feature is required.
NOTE: Fixed in BSP RSA driver, for non-CRT+SCAP mode, temporary buffer for MADDR6 requires to be key length plus 128 bits.
NOTE: Fixed in BSP RSA driver, DMA buffer must be 4-word aligned, or RSA H/W will trap.
2022-09-01 10:02:18 +08:00
Chun-Chieh Li 21970e30f1 M467: Seed PRNG with TRNG for SCAP
According to TRM, it is suggested PRNG be seeded by TRNG on every Crypto H/W reset.
2022-09-01 10:02:17 +08:00
Chun-Chieh Li d92d75e9ac M467: Improve Crypto H/W wait helper routine
Add crypto_xxx_wait2 helper routine to replace crypto_xxx_wait for Crypto H/W control
2022-09-01 10:02:17 +08:00
Chun-Chieh Li 24b0feb17f M467: Support Crypto SHA/ECC H/W
1.  Prepare crypto common code
2.  Support list
    -   SHA
    -   ECC
    NOTE: AES/RSA are to support in other works
    NOTE: Compared to M487, M467's SHA supports context save & restore (DMA Cascade mode) and so no software fallback is needed.
    NOTE: M467's ECC, following M487, goes partial-module replacement and it can just improve primitives e.g. point addition/doubling by 2X,
          and cannot improve high level point multiplication because MbedTLS doesn’t open it.
          To improve performance best, full-module replacement is needed.
    NOTE: Continuing above, add support for Montgomery curve
2022-09-01 10:02:16 +08:00
cyliangtw 501aa00fa0 Config for M460 EMAC 2022-09-01 10:02:15 +08:00
Chun-Chieh Li 0494866f5f M467: Support HyperRAM
1.  For GCC, support multi-block .data/.bss initialization
2.  HyperRAM is mapped to two regions: 0x0A000000 and 0x80000000
    According to default system address map, 0x0A000000 is located at 'Code' region and 0x80000000 at 'RAM' region.
    With MPU enabled on Mbed OS, 'Code' region is write-never and 'RAM' region execute-never.
    0x80000000 is chosen because 'RAM' regioin is naturally for HyperRAM.
3.  Configurable multi-function pins for HBI
4.  To locate code/data at external HyperRAM:
    -   Specify __attribute__((section(".text.nu.exthyperram"))) for RO/.text/readonly section type
        Invoke mbed_mpu_manager_lock_ram_execution()/mbed_mpu_manager_unlock_ram_execution() to run HyperRAM code
    -   Specify __attribute__((section(".data.nu.exthyperram"))) for RW/.data/readwrite section type
    -   Specify __attribute__((section(".bss.nu.exthyperram"))) for ZI/.bss/zeroinit section type
5.  Add readme
2022-09-01 10:02:15 +08:00
Chun-Chieh Li 8da2e31336 M467: Fix Greentea reset_reason test failure
HRESETRF is combined reset flag. Filter it out to avoid interference with reset reason check.
2022-09-01 10:02:15 +08:00
Chun-Chieh Li df77485f02 Support Nuvoton target NUMAKER_IOT_M467
1.  Based on alpha version BSP (85564a2716548e7b6d6a79a490c6d94a24cf9bcf)
2.  Continuing above, tweak BSP:
    (1) Add EPWM_ConfigOutputChannel2() to enable below 1Hz and below 1% duty cycle for PWM output (m460_epwm.h/c).
    (2) Add dummy RTC_WaitAccessEnable() for consistency with previous ports (m460_rtc.h).
3.  Target NuMaker-M467HJ V0.1 board temporarily
4.  Support Arduino UNO form factor for NUMAKER_IOT_M467 target
5.  Enable export to Keil/IAR project
    -   tools/arm_pack_manager/index.json
    -   tools/export/iar/iar_definitions.json
2022-09-01 10:02:14 +08:00
Deepak V. Shreshti 61e5a61e34 Removed UTF-8 Chars 2022-08-24 18:31:42 +05:30
Deepak V. Shreshti adadcf3171 Updated System file and Scatter file 2022-08-23 18:26:51 +05:30
chdelfs 581cd80943
Fix for calculating CAN timing settings.
NominalPrescaler value needs to be as high as possible to ensure a good approximation of the target CAN speed.
Previous usage of macro IS_FDCAN_DATA_TSEG1 refers to (unsupported by Mbed ) FDCAN CAN controller settings and leads to too low prescaler values.
Usage Macro IS_FDCAN_NOMINAL_TSEG1 yields optimum results.
See also correct macro usage in line #158.
2022-08-04 18:48:22 +02:00
Henrik Persson 684181c40b Add targets.json definition for STM32F412xE 2022-06-20 17:09:02 +02:00
Henrik Persson bdaa4a457d Make STM32F412xE targets build
Trying to inherit the STM32F412xE target makes the linker fail, since
__CRASH_DATA_RAM_START__ is not present. Comparing LD scripts with the
STM32F412xG (which has active targets) it seems that the xE variant has
missed some updates somewhere. Since the LD scripts are otherwise
identical, copying the (working) ones from STM32F412xG seems to do the
trick.

Also added flash_data.h which was missing and needed here and there
(copied from xG and updated to fit the xE flash layout).
2022-06-16 16:05:34 +02:00
Jason Reiss 4d616ccc70 MTS002: update MTS_MDOT_F411RE usb clock setting for 8MHz output 2022-06-08 08:42:22 -05:00
Jason Reiss 0905a2e672 MTS001 - add custom clock configuration for MTS_MDOT_F411RE to use 26MHz XTAL 2022-06-08 08:42:22 -05:00
Martin Kojtal 1ab98dec9a
Merge pull request #15286 from pilotak/master
STM32G4: Fix serial port at low speed baud
2022-05-13 14:47:44 +02:00
Pavel S 58e6bf7520
Fix serial low speed baud 2022-05-13 11:16:15 +02:00
Rami Elkhatib fdf37c3217 MPS2 CM3DS ethernet words instead of bytes
The functions smsc9220_receive_by_chunks and smsc9220_send_by_chunks are
supposed to implement receiving and sending packets by chunks. However,
the functions SMSC9220_EMAC::low_level_input and SMSC9220_EMAC::link_out,
which call them respectively, already require or assemble the full packet.
Also, smsc9220_receive_by_chunks doesn't implement the "chunks" part.

This commit renames the functions to smsc9220_receive_packet and
smsc9220_send_packet. The functions now do their operations by word
instead of by bytes. The functions SMSC9220_EMAC::low_level_input and
SMSC9220_EMAC::link_out already handle allocation, continuity and word
alignment of the packet buffer.
2022-05-12 18:27:49 -04:00
Rami Elkhatib f7aca62865 MPS2 CM3DS ethernet fix packet bug
The function smsc9220_receive_by_chunks loads data from the Ethernet port.
It is expected to return the Ethernet frame without the 4 CRC bytes.
However, it is required to call the Ethernet data port register (32-bit)
an amount equal to the number of frame words (including the 4 CRC bytes)
to pop all frame words. The current code doesn't call the register for the
last word (which has CRC data). This causes subsequent calls to have this
missed word at the beginning. The impact of this is huge as the high level
API is getting fed wrong data. The fix adds one additional call to the data
port register.
2022-05-12 18:25:15 -04:00
YahyaTawil 7a108087ed Add default SWO pin number and config if not defined in Ambiq target 2022-05-06 17:24:59 +03:00
YahyaTawil fabe70c0fc Enable ITM (SWO) tracing support to Ambiq Apollo3 targets 2022-05-05 15:47:35 +03:00
YahyaTawil 6467f77125 add ITM (SWO) tracing support to Ambiq Apollo3 targets 2022-05-05 15:45:09 +03:00
Jerome Coutant de4ea6ecd2 STM32F334xx wrong RAM size 2022-05-04 10:43:41 +02:00
Jerome Coutant 6a8a52acf6 STM32L0: add MCU_STM32L071xB support 2022-04-29 09:47:25 +02:00
Martin Kojtal 88b6bb0d85
Merge pull request #15269 from jeromecoutant/PR_G4_UART_ASYNC
STM32G4 : enable UART ASYNC
2022-04-26 11:57:21 +02:00
Jerome Coutant 1985e77dae STM32G4 : enable SERIAL_ASYNCH in default configuration 2022-04-25 16:59:41 +02:00
Jerome Coutant 9b1d4ee62e STM32G4 : add UART5 in IRQ init 2022-04-25 16:59:30 +02:00
Jerome Coutant 271ed686f3 STM32L0 : I2C2 was missing 2022-04-20 14:27:49 +02:00
Sadik.Ozer 4dd01440c4 utf-8 check
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-14 10:27:17 +03:00
Sadik.Ozer 8323e9a7f5 Fix GCC_ARM warnings
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 11:23:39 -05:00
Sadik.Ozer 2f813fcbaa Update system files and mbed wrappers
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 11:22:45 -05:00
Sadik.Ozer 7826582e44 Update LP API
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:07 -05:00
Sadik.Ozer 92983653ed Leave last page of flash
It is used by rom bootloader

Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:07 -05:00
Sadik.Ozer 24f4738f24 Provide option to user to drive SS pin too
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:06 -05:00
Sadik.Ozer f1bce7389f Provide all uart mapping
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:06 -05:00
Sadik.Ozer 65e6595d7b Fix rtc read issue
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:05 -05:00
Sadik.Ozer 8a2681bf6e Add peripheral driver files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:05 -05:00
Sadik.Ozer 704bfc786a Add peripheral interface files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:02 -05:00
Sadik.Ozer f40887acdd Remove __R because of confliction
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:00 -05:00
Sadik.Ozer fc90e9a64e Update cmsis files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:40:59 -05:00
Sadik.Ozer 028a85c0b7 Add initial version of files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:40:57 -05:00
Martin Kojtal ddaceccf5a
Merge pull request #15258 from Nantis-GmbH/stm32-uart-num-fix
STM32F0: Fix target codes for number of UARTs
2022-04-05 10:24:13 +02:00
Bora Özgen 9ff358724f STM32F0: Fix target codes for number of UARTs 2022-04-04 16:22:51 +02:00
Jerome Coutant 1cd6bf1399 STM32F1: add MCU_STM32F103xC support 2022-03-31 15:31:47 +02:00
Ahmet Alincak 751d0cf98b Correct heap region calculation for Maxim targets 2022-03-21 00:02:59 +03:00
Pavel S bf599a2438
STM32G4: Fix I2C timing 2022-03-16 08:32:39 +01:00
Pavel S 5c2f103b73
enable QSPI for STM32G4 2022-03-02 20:26:43 +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
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
Jerome Coutant 03e51c164c STM32H7 : fix I2C5 build error 2022-02-14 13:39:19 +01:00
Anthony Mcnicoll f004f09b0b Consistency fixes for multiple UART support commit 2022-02-12 12:35:49 -05: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
Anthony Mcnicoll 8f9b1153ef Add ability to use multiple UARTs on STM32L0, STM32G0 when IRQ is shared 2022-02-05 12:00:23 -05: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
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
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
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
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
Wally 6e09135b58 Add Nuvoton NuMaker-IoT-M263A CAN bus support 2022-01-17 14:32:42 +08:00
Konstantin Kochin 0c9d5b0605 Fix STM32 SPI async API for STM32H7 (SPI_IP_VERSION_V2)
By default, HAL functions (HAL_SPI_TransmitReceive_IT/HAL_SPI_Transmit_IT/HAL_SPI_Receive_IT) assume that SPI is disabled between function invocation.
It's needed to set transfer size (CR2 register), that can be modified only if SPI disabled. But `stm32_spi_api.c` keeps SPI enabled after initialization.

This commit adds helper code for STM32H7 (SPI_IP_VERSION_V2) that disables SPI before HAL_SPI_TransmitReceive_IT/HAL_SPI_Transmit_IT/HAL_SPI_Receive_IT
and after end of transaction for HAL API compatibility.
2022-01-15 14:51:41 +03:00
Konstantin Kochin 756f6f5199 Fix STM32 SPI 16-bit logic
Update SPI logic to process 16 bit words in the same way by sync/async,
3/4 wires modes:
- fix 3-wire synchronous transmission to move 2 or more bytes between buffer and
  SPI register per word tarnsmission
- fix 4-wire synchronous transmission to move 2 or more bytes between buffer and
  SPI register per word tarnsmission
2022-01-15 14:51:41 +03:00
Michal Majcherski 6263af9aff Support for the NUCLEO_G0B1RE board 2022-01-14 12:11:47 +01:00
Henrik Persson 6f73f5deb3 Add USBDEVICE to NUCLEO_F722ZE target
USB was missing from NUCLEO_F722ZE but is present and working on the
board.
2022-01-14 11:46:44 +01:00
Jerome Coutant 5e5d2ab9a5 STM32G0 FLASH : support MCU with dual bank 2022-01-13 11:44:21 +01:00
Martin Kojtal 6bb606f62d
Merge pull request #15194 from deepak-shreshti/master
Add Toshiba M4KN Platform
2022-01-10 13:49:32 +01:00
Chun-Chieh Li 926cda5e8f M487: Fix UART 6/7 base address encoding
Fix UART 6/7 base addresses are incorrectly encoded into peripheral names
2022-01-07 16:39:59 +08:00
Deepak V. Shreshti 5bc3aa18c0 Updated code to remove float symbols 2021-12-23 19:19:57 +05:30
Deepak V. Shreshti cd4ee72979 Added SPDX Header
Updated PIN Names
Added M4KN MCU Deatils in index.json
Removed Special Chars
2021-12-23 19:19:57 +05:30
Deepak V. Shreshti 44249f0d40 Added M4KN Platform
New Platform M4KN for Toshiba has been added
2021-12-23 19:19:56 +05:30
ATmobica 6a5cc40182 Fix mbed-cy8cproto-062s3-4343w target 2021-12-15 22:16:14 +01:00
ATmobica 9e1444f88d Add <"CM0P_SLEEP" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and common PSOC6 cmake files 2021-12-15 21:37:14 +01:00
Martin Kojtal 7a6262c3bc
Merge pull request #15189 from boraozgen/nrf52-gpio-assert-init
nRF52: GPIO: Assert that init succeeds
2021-12-15 14:42:47 +00:00
Martin Kojtal fe5e648147
Merge pull request #15192 from ATmobica/master
Add option to disable WHD component for Cypress targets
2021-12-15 11:59:33 +00:00
Bora Özgen 352beffedf nRF52: GPIO: Assert that init succeeds 2021-12-14 10:01:08 +01:00
Jerome Coutant de3f9efb67 STM32H7 : remove warning
[Warning] stm32h7xx_hal_hrtim.c@1621,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@1625,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@2238,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@2242,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5332,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5767,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32h7xx_hal_hrtim.c@5771,21: equality comparison with extraneous parentheses [-Wparentheses-equality]

[Warning] analogin_device.c@63,30: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
2021-12-10 17:16:47 +01:00
Jerome Coutant 3237bff990 STM32F7 : remove warning
[Warning] flash_api.c@191,14: unused variable 'tmp' [-Wunused-variable]
2021-12-10 17:16:47 +01:00
Jerome Coutant 4d63929898 STM32L5 : remove warning
[Warning] serial_device.c@657,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@666,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@675,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
[Warning] serial_device.c@676,41: comparison of different enumeration types ('PinName' and 'UARTName') [-Wenum-compare]
2021-12-10 17:16:47 +01:00
Jerome Coutant 1bf801a4f7 STM32G4 : remove warning
[Warning] serial_device.c@644,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@644,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@653,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@653,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@662,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@662,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]
[Warning] serial_device.c@663,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare]
[Warning] serial_device.c@663,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]

[Warning] stm32g4xx_hal_hrtim.c@1817,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@1821,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@2461,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@2465,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@6600,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@7162,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
[Warning] stm32g4xx_hal_hrtim.c@7166,21: equality comparison with extraneous parentheses [-Wparentheses-equality]
2021-12-10 17:16:47 +01:00
Jerome Coutant 999d98a3d7 STM32L4 : remove warning
This is the MBED current implementation, no need to warn
2021-12-10 17:16:47 +01:00
Jerome Coutant b5e28baf45 STM32 CAN : remove warning [-Wsign-compare]
Detected with NUCLEO_G474RE build:
[Warning] stm32g4xx_hal_fdcan.h@1325,84: comparison is always true due to limited range of data type [-Wtype-limits]
[Warning] stm32g4xx_hal_fdcan.h@1331,46: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1331,65: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1325,61: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
[Warning] stm32g4xx_hal_fdcan.h@1325,84: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
2021-12-10 17:16:35 +01:00
ATmobica 78a7859fa8 Add <"WHD" IN_LIST MBED_TARGET_LABELS> condition to Cypress boards and wifi driver cmake files 2021-12-10 13:14:29 +01: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
Jerome Coutant e49036dd56 STM32WL : update readme 2021-12-06 17:48:35 +01: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
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
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 ae5c9ec70e
Merge pull request #15153 from bakatrouble/master
STM32F722ZE port
2021-11-17 15:22:30 +00:00
Jerome Coutant 9675b6ccb6 STM32L1: add support of MCU_STM32L151xB
for custom boards like RAK811
2021-11-10 10:12:28 +01:00
Jerome Coutant 8e26a05f50 STM32: readme update for MBED_SLEEP_TRACING_ENABLED 2021-11-08 09:46:20 +01: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
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
Bill Waters a2e46525ac Fix for PWM resume issue, SWINTEGRATION-57 2021-10-21 09:22:45 -07: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
Jerome Coutant 0ef6dd5ad5 STM32WB remove non-UTF characters 2021-10-12 17:52:08 +02:00
Jerome Coutant 2b8c37ac8e STM32L5 remove non-UTF characters 2021-10-12 17:52:08 +02:00
Jerome Coutant eb8d8547ed STM32L4 remove non-UTF characters 2021-10-12 17:52:07 +02:00
Jerome Coutant 52f8760062 STM32L1 remove non-UTF characters 2021-10-12 17:52:07 +02:00
Jerome Coutant 95640b9ef1 STM32L0 remove non-UTF characters 2021-10-12 17:52:07 +02:00
Jerome Coutant 9319d2ace2 STM32H7 remove non-UTF characters 2021-10-12 17:52:06 +02:00
Jerome Coutant 2f9ba5b4da STM32G4 remove non-UTF characters 2021-10-12 17:52:06 +02:00
Jerome Coutant c5b6347ccb STM32G0 remove non-UTF characters 2021-10-12 17:52:06 +02:00
Jerome Coutant 39f8924f07 STM32F7 remove non-UTF characters 2021-10-12 17:52:06 +02:00
Jerome Coutant bb9952e0eb STM32F4 remove non-UTF characters 2021-10-12 17:52:06 +02:00
Jerome Coutant f103713a96 STM32F3 remove non-UTF characters 2021-10-12 17:52:05 +02:00
Jerome Coutant 7f15a2802e STM32F2 remove non-UTF characters 2021-10-12 17:52:05 +02:00
Jerome Coutant 66fa2dd0c2 STM32F1 remove non-UTF characters 2021-10-12 17:52:05 +02:00
Jerome Coutant aab80387f2 STM32F0 remove non-UTF characters 2021-10-12 17:52:05 +02:00
Jerome Coutant 5e7a7f4b4e STM32WL remove non-UTF characters 2021-10-12 16:37:03 +02:00
Martin Kojtal 3167a1fd5d
Merge pull request #15133 from jeromecoutant/PR_I2C
STM32WB/STM32WL: I2C issue
2021-10-12 15:31:31 +02:00
Martin Kojtal 34bbc75aa9
Merge pull request #15109 from MaximIntegrated/add-MAX32660
Add MAX32660EVSYS
2021-10-12 14:51:57 +02:00
Jerome Coutant 8ae3e19676 STM32WL : STM32Cube_FW_WL_V1.1.0 2021-10-12 12:20:27 +02:00
Jerome Coutant bfa78005c0 STM32WL file alignment before cube update 2021-10-12 12:20:27 +02:00
Jerome Coutant 035b7871bf STM32Wx: I2C issue
a "else" was missing for

uint32_t i2c_get_pclk(I2CName i2c)
    if (i2c == I2C_1) {
    else if (i2c == I2C_2) {
    else if (i2c == I2C_3) {
    else {
        error("I2C: unknown instance");
2021-10-12 12:01:23 +02:00
Martin Kojtal b7c2dd01bb
Merge pull request #15132 from douardda/fix-usb-stm32
STM32: fix USB_reenumerate() for STM32F3
2021-10-11 12:33:42 +02:00
Jerome Coutant 4c5093c7e9 STM32WL: UART2 was missing 2021-10-08 14:01:13 +02:00
David Douard d5d93a4ef1 STM32: fix USB_reenumerate() for STM32F3
for which the DP pin remained forced low after the reenumerate sequence
(low for 10ms) instead of being reconfigured as an input (PullNone).

Signed-off-by: David Douard <david.douard@sdfa3.org>
2021-10-07 21:00:11 +02:00
Sadik.Ozer 196008205d Add missing file in CMakeList.txt
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-07 17:58:13 +03:00
Sadik.Ozer b8bef044dd Use lower case
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-07 17:13:19 +03:00
Martin Kojtal 76c37204e0
Merge pull request #15128 from Jookia/RFC_usbfix
Fix USB on DISCO_F769NI
2021-10-07 16:12:19 +02:00
Sadik.Ozer 4db4364e91 Remove device folder as subdir
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-07 12:45:44 +03:00