From f0421aa779bab235a6298b6bd6535956884965ab Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 30 Oct 2015 09:16:59 +0000 Subject: Fixed bug #656. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8406 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/USBv1/usb_lld.c | 2 +- readme.txt | 4 +++- 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) -- cgit v1.2.3