aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/ports/STM32/LLD/USBv1/usb_lld.c2
-rw-r--r--readme.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/USBv1/usb_lld.c b/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
index c6ccc16da..3a97e123a 100644
--- a/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
+++ b/os/hal/ports/STM32/LLD/USBv1/usb_lld.c
@@ -110,7 +110,7 @@ static uint32_t usb_pm_alloc(USBDriver *usbp, size_t size) {
uint32_t next;
next = usbp->pmnext;
- usbp->pmnext += size;
+ usbp->pmnext += (size + 1) & ~1;
osalDbgAssert(usbp->pmnext <= STM32_USB_PMA_SIZE, "PMA overflow");
return next;
}
diff --git a/readme.txt b/readme.txt
index 3e86fbb55..0c3341dc8 100644
--- a/readme.txt
+++ b/readme.txt
@@ -126,7 +126,9 @@
- HAL: Updated STM32F0xx headers to STM32CubeF0 version 1.3.0. Added support
for STM32F030xC, STM32F070x6, STM32F070xB, STM32F091xC,
STM32F098xx devices.
-- HAL: Fixed Wrong vector name for STM32F3xx EXTI33 (bug #655)(backported
+- HAL: Fixed STM32 USBv1 wrong buffer alignment (bug #656)(backported
+ to 3.0.3 and 2.6.10).
+- HAL: Fixed wrong vector name for STM32F3xx EXTI33 (bug #655)(backported
to 3.0.3 and 2.6.10).
- HAL: Fixed no demo for nucleo STM32F072RB board (bug #652).
- HAL: Fixed missing RCC and ISR definitions for STM32F0xx timers (bug #651)