Skip to content

Add support for BoyaMicroelectronics BY25Q16AW spi flash, Fix errors with -Werror=calloc-transposed-args #134

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

Open
wants to merge 2 commits into
base: sdk-2.0.0
Choose a base branch
from

Conversation

slunk-dot
Copy link

Add support for BY25Q16AW spi flash id 0x00151068, found on a Aliexpress pico w.
Fix errors compiling with -Werror=calloc-transposed-args which now seems to be a default flag on my system.
This seems to be fixed upstream in commit 400cf2 https://sourceforge.net/p/openocd/code/ci/400cf213c05d17cede4dca4787a5533959bd2183/.
Sorry I couldn't find a easy way to split this into separate commits. Its probably better just to patch spi.c and pull the -Werror=calloc-transposed-args fix from upstream.

@lurch
Copy link

lurch commented Jun 10, 2025

See also #126

Sorry I couldn't find a easy way to split this into separate commits.

Sounds like you'll find https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository helpful then 🙂

@slunk-dot
Copy link
Author

I did see the pull request for BYQ16B, it appears to be a similar device but has a different id.

@lurch
Copy link

lurch commented Jun 11, 2025

Yeah, I was just suggesting that if / when support for the BY25Q16AW gets merged, it probably makes sense to merge support for the BYQ16B at the same time.

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

Successfully merging this pull request may close these issues.

2 participants