-
Notifications
You must be signed in to change notification settings - Fork 164
RP2XXX USB - replace rom.memcpy with @memcpy #432
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
Conversation
|
Hmm intresting. @patryk4815 can you tell me if USB CDC example from fresh git clone of microzig and zig build works for you on RP2040? Because for me it doesn't but witch that change from this commit it does. Very bizarre. |
|
I have only rp2350, soo I will test this today or tomorrow |
|
Why do we want to do this? Don't we think that the rom version will be optimized for the device? |
In other place it was already replaced from |
|
Oh I did not know that they are not in the rp2350 rom, though I just checked (they are there but not exported) |
|
At least I needed this change for RP2040 usb-hid example on zig 0.14.0. It would crash without the change. |
|
I tried the CDC example, and it seems to work with this change. Without it I couldn't get the device to enumerate, but when connecting with jtag I don't see anything crashing. |
|
Can someone test this on rp2350? If it works, we can make I don't think we should have |
|
@Grazfather I am very confused right now. Without this change RP2350 is working and RP2040 is not, but with this change it is other way around: RP2350 stops working and RP2040 starts working :D Just tested on both devices. This is very odd issue. |
|
If we move the memcpy to some |
|
@Grazfather I changed solution to use |

In commit 68b5ad1
rom.memcpywas replaced by@memcpyby @patryk4815 but one morerom.memcpyleft.