Skip to content
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

Bulk endpoint compile error for stm32f103xb project for v0257 #1021

Open
zhyjason opened this issue Mar 29, 2023 · 2 comments
Open

Bulk endpoint compile error for stm32f103xb project for v0257 #1021

zhyjason opened this issue Mar 29, 2023 · 2 comments

Comments

@zhyjason
Copy link

when I enable BULK_ENDPOINT macro definition with the project of stm32f103xb for v0257, it happened error, like this :
image
is there anyone how to fix it, thanks.

@mbrossard
Copy link
Contributor

Defining BULK_ENDPOINT (which is what I assume you did) is not enough. The proper way is to include records/usb/usb-bulk.yaml in the project or the HIC. You should try something like:

diff --git a/projects.yaml b/projects.yaml
index 06c818f4..adae90f1 100644
--- a/projects.yaml
+++ b/projects.yaml
@@ -569,6 +569,7 @@ projects:
     stm32f103xb_stm32f103rb_if:
         - *module_if
         - *module_hic_stm32f103xb
+        - records/usb/usb-bulk.yaml
         - records/board/stm32f103rb.yaml
     stm32f103xb_stm32f207zg_if:
         - *module_if

@zhyjason
Copy link
Author

Hi, I just change HID_ENDPOINT to BULK_ENDPOINT in keil MDK, like this :
image
but I compile the porject with HID_ENDPOINT, that is ok.

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

2 participants