Skip to content

USB Pins not defined on Core 4.0.10 #786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MoveElectricMobility opened this issue Dec 1, 2023 · 0 comments
Closed

USB Pins not defined on Core 4.0.10 #786

MoveElectricMobility opened this issue Dec 1, 2023 · 0 comments

Comments

@MoveElectricMobility
Copy link

After update from 4.0.8 to 4.0.10 it has broken the USB library for the Giga. The following error dump during compilation is generated:

In file included from c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:33:0: c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:137:2: error: #error "USB power pin is not configured !" #error "USB power pin is not configured !" ^~~~~ In file included from c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:33:0: c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:336:2: error: #error "USB pins are not configured !" #error "USB pins are not configured !" ^~~~~ In file included from c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:33:0: c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h: In function 'void usb_vbus(uint8_t)': c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:145:40: error: 'USB_POWER_OFF' was not declared in this scope gpio_write(&gpio_powerpin, USB_POWER_OFF); ^~~~~~~~~~~~~ c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:145:40: note: suggested alternative: 'USB_TYPE_OK' gpio_write(&gpio_powerpin, USB_POWER_OFF); ^~~~~~~~~~~~~ USB_TYPE_OK c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:147:40: error: 'USB_POWER_ON' was not declared in this scope gpio_write(&gpio_powerpin, USB_POWER_ON); ^~~~~~~~~~~~ c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:147:40: note: suggested alternative: 'USB_TYPE_OK' gpio_write(&gpio_powerpin, USB_POWER_ON); ^~~~~~~~~~~~ USB_TYPE_OK In file included from c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp:33:0: c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h: In constructor 'USBHALHost::USBHALHost()': c:\Users\chris\OneDrive\Documents\Arduino\libraries\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.h:342:5: error: 'USB_POWERPIN_CONFIG' was not declared in this scope USB_POWERPIN_CONFIG;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant