Commit Graph

34535 Commits (dba734fb70de57c3923f6ff36a7177483b6f514f)

Author SHA1 Message Date
Martin Kojtal dba734fb70
Merge pull request #15446 from mak22223/master
Add fix for STM32G4 hardfault in sleep mode
2023-08-16 15:33:43 +01:00
Martin Kojtal 3c1f0d56d8
Merge pull request #15438 from OpenNuvoton/nvt_m467_emac
connectivity: drivers: Update Nuvoton M467 EMAC DMA_IE ctl
2023-08-16 15:33:21 +01:00
Martin Kojtal 1720397c7f
Merge pull request #15447 from josephduchesne/stm32g473-fdcan3-irq-crash
Fix crash when using FDCAN3 RX IRQ on STM32G473 (and others)
2023-08-16 15:32:33 +01:00
Joseph Duchesne 02b573793a
Fix crash when using FDCAN3 RX IRQ on STM32G473 (and others) 2023-08-14 11:07:23 -04:00
Maxim Markin 555822558e Add workaround for G474 hardfault 2023-08-14 11:35:00 +03:00
cyliang tw 5837179e78 connectivity: drivers: Update Nuvoton M467 EMAC DMA_IE ctl
In IRQ Handler, to disable some interrupt type of DMA error.
It could avoid unexpected repeated interrupt.The masked bit of
DMA_IE could be recovered in next EMAC IRQ event.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2023-07-13 16:21:57 +08:00
Martin Kojtal 13f43cce52
Merge pull request #15435 from chrJost/TCP_reset_flag
add nullpointer check in LWIP::socket_close
2023-07-11 16:32:31 +02:00
Jost, Chris 67d845be32 add nullpointer check in LWIP::socket_close 2023-07-05 11:22:22 +02:00
Martin Kojtal f9c0cd2a94
Merge pull request #15431 from alrvid/patch-1
Handle negative values passed to close()
2023-07-03 16:08:17 +02:00
Saheer Babu 89c1705234
Merge pull request #15433 from saheerb/master
doc: Provide mbed_die example for security considerations
2023-06-30 15:39:46 +01:00
Saheer Babu 564eb05acc doc: Provide mbed_die example for security considerations
Signed-off-by: Saheer Babu <saheer.babu@arm.com>
2023-06-27 15:46:11 +01:00
Martin Kojtal 0b85b72f9b
Merge pull request #15432 from saheerb/master
doc: Update README to include production usage warning
2023-06-27 13:23:16 +02:00
Saheer Babu 9d0f08516f doc: Update README to include production usage warning
Signed-off-by: Saheer Babu <saheer.babu@arm.com>
2023-06-27 09:34:01 +01:00
alrvid 56ca532ef1
Moved a { to the same line as if
Moved a { to the same line as if
2023-06-15 15:38:55 +02:00
alrvid 7e206a90db
Handle negative values passed to close()
Calling close() with negative numbers causes out-of-bounds indexing of the filehandles array. For example, this can happen if open() returns an error and the value is later passed to close().
2023-06-14 23:29:38 +02:00
Saheer Babu f347b89d0d
Merge pull request #15426 from MaximIntegrated/fix_bug_uart
Fix bug uart
2023-06-07 11:56:41 +01:00
Saheer Babu 3b07e5382c
Merge pull request #15427 from OpenNuvoton/nuvoton_m2354_mcuboot_header_sector_boundary
M2354: Fix debug failure in Mbed Studio
2023-06-07 11:56:23 +01:00
Chun-Chieh Li 8b69a94cef M2354: Fix debug failure in Mbed Studio
In Mbed Studio, debugging, based on pyOCD, requires Mbed OS application code starting on the sector boundary.

Modification list:
1.  Update TF-M import assets with MCUboot header padding to sector aligned
2.  Following above, change header size argument (-H) in wrapper.py command line
3.  Following below, fix min-write-size (--align) to 4 (per flash_area_align()) in wrapper.py command line
    https://docs.mcuboot.com/design.html#image-trailer

Related issue:
https://github.com/ARMmbed/mbed-os/issues/15417
2023-06-02 09:15:55 +08:00
Sadik.Ozer bdec190cbb MAX32660, MAX32670 UART performance improvement
Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-06-01 15:50:39 +03:00
Sadik.Ozer 0eac033cf1 Do not clear interrupt flag during initialization
This causes issue for repeaded initialization while using BufferedSerial mode

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-06-01 15:50:39 +03:00
Martin Kojtal 9bff970507
Merge pull request #15430 from ARMmbed/0xc0170-patch-scancode
scancode: version >31.2.4 contains fix for reindexing
2023-06-01 13:38:08 +01:00
Martin Kojtal 633a8335e7
scancode: version >31.2.4 contains fix for reindexing
The workaround is not needed anymore (v32 is breaking this reindexing as they created new command to do that anyway).
2023-06-01 10:11:29 +01:00
Martin Kojtal 95f3f93c19
Merge pull request #15423 from Jookia/RFC_ipv6fix
LWIP::get_ip_addr: Prefer IPv4 over IPv6 link local addresses
2023-05-30 10:25:28 +01:00
Martin Kojtal 3a08a4582c
Merge pull request #15421 from MaximIntegrated/dev-update_max32660_sdk
Update max32660 sdk files
2023-05-25 13:08:46 +01:00
Martin Kojtal 1768ad9e5f
Merge pull request #15406 from IVOES/fix-null-check
Fix null pointer dereferencing
2023-05-22 11:35:15 +01:00
Jookia 06593d3d68 LWIP::get_ip_addr: Prefer IPv4 over IPv6 link local addresses
When IPv6 is prefered it will choose a link local address on a network
that lacks IPv6 over a working IPv4 network, breaking networking.
Change this behaviour to prefer a link local address only as a last
resort.

This also changes LWIP::get_ipv6_addr to not return link local
addresses. Use get_ipv6_link_local_addr instead for this.
2023-05-18 22:09:26 +10:00
Sadik.Ozer d42b9b377b Apply MAX32660 delta
Update mbed hal function as per of SDK update

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-05-17 11:22:56 +03:00
Martin Kojtal b5692fd180
Merge pull request #15420 from jeromecoutant/PR_U5_120
STM32U5: STM32Cube_FW_U5_V1.2.0
2023-05-17 08:36:13 +01:00
Martin Kojtal 8779918cf0
Merge pull request #15422 from OpenNuvoton/nuvoton_eadc_extend_sample_time
Nuvoton: Enable configurability for extending sampling time for ADC/EADC
2023-05-16 16:29:06 +01:00
Ahmet Polat 3f4b177128 Update MAX32660 peripheral drivers with final ones that use by SDK 2023-05-15 13:08:43 +03:00
Chun-Chieh Li 91a1b59c95 Nuvoton: Enable extending sampling time for ADC/EADC
For all Nuvoton targets, enable extending sampling time in ADC/EADC clocks on per-pin basis.
2023-05-15 14:40:10 +08:00
Jerome Coutant 9f0ede486d STM32U5: STM32Cube_FW_U5_V1.2.0 2023-05-10 12:18:24 +02:00
Martin Kojtal cc39261968
Merge pull request #15414 from wdx04/stm32h7_ospi
Add OSPI support for STM32H7
2023-05-08 09:22:22 +01:00
Martin Kojtal 952c286555
Merge pull request #15415 from wdx04/fix_exfat
fix compiling errors of FATFileSystem when exFAT was enabled
2023-05-05 14:35:53 +01:00
Martin Kojtal 48a89f1ed5
Merge pull request #15412 from MultiTechSystems/update-arm-pack-manager
Add MAX32670 to tools/arm-pack-manager/index.json for bootloader support
2023-05-05 14:34:53 +01:00
Martin Kojtal 70dced2225
Merge pull request #15405 from IVOES/fix-stack-address-escape
Change storage-class of secret_buf to static
2023-05-05 14:34:35 +01:00
Martin Kojtal a987273f03
Merge pull request #15416 from thirtythreeforty/fixup-usb
drivers/usb: Add missing dependency on mbed-events
2023-05-05 14:32:03 +01:00
wdx04 3c17881e61 fix compiling errors of FATFileSystem when exFAT was enabled 2023-05-04 08:27:42 +08:00
wdx04 b22d510b47 Add OSPI support for STM32H7 2023-05-03 23:00:45 +08:00
Leon be862ed33a Add MAX32670 to tools/arm-pack-manager/index.json for bootloader support 2023-05-02 16:57:36 -05:00
George Hilliard 4b07fc63f3 drivers/usb: Add missing dependency on mbed-events
The compiler complained:

    In file included from .../mbed-os/drivers/usb/source/USBCDC_ECM.cpp:19:
    .../mbed-os/drivers/usb/include/usb/USBCDC_ECM.h:27:10: fatal error: events/EventQueue.h: No such file or directory
       27 | #include "events/EventQueue.h"
          |          ^~~~~~~~~~~~~~~~~~~~~
2023-05-01 09:02:50 -05:00
Martin Kojtal 00df0a3e25
Merge pull request #15407 from jasperjonker/fix/stm32h723
system_clock.c location for stm32h723xg
2023-04-26 16:48:59 +01:00
Martin Kojtal 0ea5decbb9
Merge pull request #15404 from IVOES/fix-overrunning-write
Fix potentially overrunning write of sprintf
2023-04-26 16:48:49 +01:00
Martin Kojtal 9a82ad670c
Merge pull request #15401 from IVOES/fix-virtual-call-in-constructor
Avoid calling virtual functions from constructors and destructors
2023-04-26 09:58:15 +01:00
Jasper d2fdd6f943
Fix variable name
Signed-off-by: Jasper <jasper.jonker@wingtra.com>
2023-04-22 11:27:13 +02:00
Jasper Jonker 5f9f8f3fe5
Fix system_clock.c location
Signed-off-by: Jasper Jonker <jasper.jonker@wingtra.com>
2023-04-21 16:18:20 +02:00
Mingjie Shen 378f2f579d Fix null pointer dereferencing
Add null check for return values of functions that are mostly (but not
always) checked for null.
E.g., since 98% of calls to protocol_stack_interface_info_get_by_id
check for null, it is likely that the function can return null values in
some cases, and omitting the check could crash the program.
2023-04-20 00:54:47 -04:00
Mingjie Shen 1b77cda621 Change storage-class of secret_buf to static
Storing the address of a local variable (`secret_buf`)
in non-local memory (`prf_ptr->secret`) can cause a
dangling pointer bug if the address is used after the function returns.
2023-04-19 17:07:42 -04:00
Mingjie Shen c958d1d5b9 Fix potentially overrunning write of sprintf
Format string "%d" requires 12 bytes (including the null terminator).
Also, use snprintf instead of sprintf to prevent buffer overflow.
2023-04-19 16:50:00 -04:00
Martin Kojtal d0ca14e4fe
Merge pull request #15403 from IVOES/fix-redefined-default-parameter
Define default parameters of functions of derived class the same as t…
2023-04-19 13:50:32 +01:00