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

Enhance fsdev #2739

Merged
merged 26 commits into from
Jul 31, 2024
Merged

Enhance fsdev #2739

merged 26 commits into from
Jul 31, 2024

Conversation

hathach
Copy link
Owner

@hathach hathach commented Jul 25, 2024

Describe the PR
Trying to fix race condition with ch32v203 with windows, still haven't fixed it yet. But fixed a few issue while testing. Also try to improve fsdev driver.
Major rework to fsdev, simplify pma access and ep register manipulation and write (only write 1 as needed).

Note: race condition with windows on -O0/-Og still occur, issue is the setup packet received by v203 is incorrect data, although rx_count = 8 and setup bit is set.

@@ -1199,7 +1201,8 @@
break;

case DCD_EVENT_SETUP_RECEIVED:
_usbd_dev.setup_count++;
// TU_ASSERT(event->setup_received.bRequest != 0,);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Copy link
Owner Author

Choose a reason for hiding this comment

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

this comment for catching ch32v203 issue with windows with -O0/-Og

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c Fixed Show fixed Hide fixed
@hathach hathach marked this pull request as ready for review July 31, 2024 14:09
@hathach hathach merged commit c60934e into master Jul 31, 2024
135 checks passed
@hathach hathach deleted the enhance-fsdev branch July 31, 2024 14:42
@ra1nb0w
Copy link
Contributor

ra1nb0w commented Aug 8, 2024

as follow-up #2755

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

Successfully merging this pull request may close these issues.

2 participants