Skip to content

Commit

Permalink
Temporary build fix for STM32F407VE_black
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 4, 2020
1 parent 3cade62 commit 04eab38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ monitor_speed = 250000
[env:STM32F407VE_black]
platform = ststm32
board = blackSTM32F407VET6
platform_packages = framework-arduinoststm32@>=3.10700.191028
platform_packages = [email protected]
build_flags = ${common.build_flags}
-DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
Expand Down

3 comments on commit 04eab38

@tpruvot
Copy link
Contributor

@tpruvot tpruvot commented on 04eab38 Jan 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BIGTREE_SKR_PRO test env need the same...

@gordo3di
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed works. Thanks

@GhostlyCrowd
Copy link
Contributor

@GhostlyCrowd GhostlyCrowd commented on 04eab38 Apr 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just had to make this change for a fresh pull today as it was erroring on USB CDC

C:\Users\Jeff\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\cdc\usbd_cdc.c: In function 'USBD_CDC_DataIn':

C:\Users\Jeff\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\cdc\usbd_cdc.c:650:3: error: unknown type name 'PCD_HandleTypeDef'; did you mean 'USBD_HandleTypeDef'?

   PCD_HandleTypeDef *hpcd = pdev->pData;

   ^~~~~~~~~~~~~~~~~

   USBD_HandleTypeDef

C:\Users\Jeff\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\cdc\usbd_cdc.c:654:65: error: request for member 'IN_ep' in something not a structure or union

     if ((hcdc->TxLastLength > 0U) && ((hcdc->TxLastLength % hpcd->IN_ep[epnum].maxpacket) == 0U)) {

                                                                 ^~

Compiling .pio\build\BIGTREE_SKR_PRO\FrameworkArduino\stm32\usb\hid\usbd_hid_composite_if.c.o

*** [.pio\build\BIGTREE_SKR_PRO\FrameworkArduino\stm32\usb\cdc\usbd_cdc.c.o] Error 1

Please sign in to comment.