Skip to content

STM Compile (3bef7bd) Fails: 'USB_WritePacket' #4024

Closed
@diginfo

Description

@diginfo

Hi;

Just tried a clean build (first for 2 months) and got the error below, tried this twice always fails at the same point:

........
........
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c
../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c: In function 'USB_WritePacket':
../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c:888:7: error: 'packed' attribute ignored for type 'uint32_t *' {aka 'long unsigned int *'} [-Werror=attributes]
       USBx_DFIFO(ch_ep_num) = *((__packed uint32_t *)src);
       ^~~~~~~~~~
../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c: In function 'USB_ReadPacket':
../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c:914:5: error: 'packed' attribute ignored for type 'uint32_t *' {aka 'long unsigned int *'} [-Werror=attributes]
     *(__packed uint32_t *)dest = USBx_DFIFO(0U);
     ^
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:47: build-PYBV11/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o] Error 1

I can overcome it with:

CFLAGS += -Wno-error

in my GNUmakefile, but not sure if anything will be broken ??

Activity

changed the title [-]STM Compile Fails: 'USB_WritePacket'[/-] [+]STM Compile (3bef7bd) Fails: 'USB_WritePacket'[/+] on Aug 5, 2018
dpgeorge

dpgeorge commented on Aug 10, 2018

@dpgeorge
Member

This should have been fixed by f6f6452 . Does the Makefile you have include this fix? What is the output of make V=1. What compiler are you using?

dpgeorge

dpgeorge commented on Dec 4, 2018

@dpgeorge
Member

I assume this was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @diginfo@dpgeorge

        Issue actions

          STM Compile (3bef7bd) Fails: 'USB_WritePacket' · Issue #4024 · micropython/micropython