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
Martin Kojtal
5db6bcc0a8
Merge pull request #15402 from IVOES/fix-new-array-delete-mismatch
...
Fix 'new[]' array freed with 'delete'
2023-04-19 13:50:21 +01:00
Martin Kojtal
fe56b43372
Merge pull request #15400 from OpenNuvoton/nuvoton_m467_can
...
M467: Support CAN bus
2023-04-19 13:50:11 +01:00
Martin Kojtal
8628604392
Merge pull request #15399 from MaximIntegrated/dev-update_max32670_sdk
...
Update max32670 sdk files
2023-04-19 13:50:00 +01:00
Mingjie Shen
3a466307d2
Define default parameters of functions of derived class the same as the base class
...
The member function bringup() of class ThreadInterface redefines
parameter stack's default value to IPV6_STACK from the inherited default value
DEFAULT_STACK (in Interface).
The default value will be resolved statically, not by dispatch, so this
can cause confusion.
Similar arguments apply to LoWPANNDInterface and WisunInterface.
2023-04-19 01:35:19 -04:00
Mingjie Shen
65b14f7181
Fix 'new[]' array freed with 'delete'
...
The array _scratch_buf is allocated using new[] in line 761 of
mbed-os/storage/kvstore/securestore/source/SecureStore.cpp.
But it was freed using delete.
2023-04-18 23:59:00 -04:00
Mingjie Shen
4c3928ecf4
Avoid calling virtual functions from constructors and destructors
...
Virtual functions are resolved statically (not dynamically) in
constructors and destructors for the same class. The call should be made
explicitly static by qualifying it using the scope resolution operator.
2023-04-18 23:18:27 -04:00
Sadik.Ozer
a50a44403b
MAX32670 apply mbed required changes on peripheral drivers
...
Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2023-04-13 12:49:10 +03:00
Chun-Chieh Li
d3b7a07597
M467: Support CAN bus
...
1. Update BSP CANFD driver
2. Notes for implementation
(1) Each CANFD instance supports two IRQ lines. Use only line 0. Line 1 is not used.
(2) For Rx disabling multiple filter handles,
1) Map all filter handles to filter handle 0
2) Use Rx FIFO 0 for filter handle 0
(3) For Rx enabling multiple filter handles,
1) Use Rx FIFO 0 for filter handle 0
2) Use Rx FIFO 1 for filter handle through first invoking can_filter()
3) Use dedicated Rx Buffer for other filter handles
NOTE: H/W supports mask on Rx FIFO 0/1 but not on dedicated Rx Buffer.
(4) For Tx, use only dedicated Tx Buffer. BSP CANFD driver doesn't support Tx FIFO/Queue.
(5) Support no CAN FD.
2023-04-13 17:28:48 +08:00
Martin Kojtal
975dfcf968
Merge pull request #15396 from jtmyz9/target-Nucleo-h745
...
Target: buildable target for Nucleo-h745 board
2023-04-12 15:08:48 +01:00
jmcloud
fba9f98950
add support for Nucleo-H745ZI
2023-04-11 09:46:05 -07:00
Martin Kojtal
ce13e1cb6c
Merge pull request #15392 from augustozanellato/stm32g4_hw_crc
...
Add hardware CRC support to STM32G4
2023-04-11 14:55:43 +01:00
Martin Kojtal
65f45cd383
Merge pull request #15394 from mbed-ce/upstreamed/stm32-i2c-repeated-start-fix
...
Fix repeated start for transactional I2C API on STM32 devices with I2C v2
2023-04-11 14:55:18 +01:00
Martin Kojtal
3aab43fb8f
Merge pull request #15398 from jtmyz9/STMH7-FDCAN-RX-IRQ
...
force FIFO IRQ for FDCan RX on H7
2023-04-06 15:36:05 +02:00
jmcloud
1bb10362dd
force FIFO IRQ for FDCan RX on H7
2023-04-05 12:47:54 -07:00
Jamie Smith
e7fb3b8076
Fix repeated start for transactional I2C API on STM32 devices with I2C v2
2023-03-21 22:43:10 -07:00
Augusto Zanellato
75513154d2
Add hardware CRC support to STM32G4
2023-03-15 16:48:39 +01:00
Saheer Babu
5801b1677d
Merge pull request #15388 from OpenNuvoton/nuvoton_remove_unused_variable
...
M487: Remove unused variable 'u32EscapeFrame'
2023-03-15 11:29:49 +00:00
Chun-Chieh Li
e638da4a69
M487: Remove unused variable 'u32EscapeFrame'
...
Remove unused variable 'u32EscapeFrame' in BSP m480_ccap.h to avoid warnings
2023-03-09 11:29:57 +08:00
Martin Kojtal
7e3ea686fb
Merge pull request #15385 from UNSW-Sunswift/master
...
Added extra HSE Values for STM32G431xB
2023-03-08 13:08:04 +00:00