-
Notifications
You must be signed in to change notification settings - Fork 1k
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
do not apply storage attributes to member of struct #1698
do not apply storage attributes to member of struct #1698
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does not fail with my compiling. This is required for some mcu. Could you provide info on your setup
This is using GCC 12.2.0, st/synopsys port, STM32H7. The attributes (
I don't think it makes sense (regarding memory layout) for some members of a struct to be in a different linker section to the rest of the struct? GCC certainly doesn't like this. The only instance of the struct is (around line 413):
So the struct (and therefore its members) are already in the section denoted by Setting For configuration, I have:
Which, expanded, is:
|
Currently, the So I'm guessing that I'm the first person to try building a UAC2 configuration with interrupt/status endpoint enabled, and the feature currently isn't fully implemented in tinyusb yet. I'm trying to implement it, but not sure if I'll succeed. |
Oh, this is right, please remove the CFG_TUSB_MEM_SECTION but keep the |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, thank you
Describe the PR
Compilation fails when audio interrupt-endpoint is enabled, due to storage attributes on a struct member.
I removed the attributes.
Additional context