-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add New Board - Seeeduino XIAO RP2040 #5519
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.
Thank you! Are you still waiting to hear about the flash?
Yes, I did ask this morning that question specifically. With timezone differences, I would expect an answer overnight. They were pretty quick with the PID. How large is the 25x16? Most seems to use the 25x64 or 25x128 which is obviously larger. |
MengDu indicated that it's a P25Q16H-UXH-IR. |
Yup!
Repo is here: https://github.com/adafruit/nvm.toml/tree/main/flash This is a new manufacturer so it'll definitely need to be added. |
Updated the nvm.toml module and lots more boards started to fail... The module brought in a few more new files and I suspect that it's these that are causing the issues. I only tested with my files (puya) Is there a way to get where the toml processor fails? |
The builds are still working on recent PR's. Have you rebased or merged from upstream since the builds started failing? Your toml submodule appears to be out of date now according to the file comparisons. |
I just merged upstream and the builds are still failing. The toml submodule has added new files. See here |
Based on the error message, I tried making the following edit down in nvm.toml and the error seems to be resolved: diff --git a/flash/puya/P25Q16H.toml b/flash/puya/P25Q16H.toml
index e4fd193..d7c6903 100644
--- a/flash/puya/P25Q16H.toml
+++ b/flash/puya/P25Q16H.toml
@@ -3,7 +3,6 @@
# This config is still untested.
total_size = 0x200000 # 2 MiB # Page 17
capacity = 0x15
-manufacturer_id = 0x85 # Page 49
write_status_register_split = false
01_continuous_status_write = true # page 21
e7_quad_word_read = false # couldn't find in page 21/22 It seems that Is there some kind of quality check needed in nvm.toml to detect problems, at least that a script 'like' gen_nvm_devices can succeed. |
@jepler There is already a PR in the other repo that should resolve this: adafruit/nvm.toml#7 |
Apart from testing on the hardware itself, this PR is pretty much ready. There are some out there right now (Zack Freedman's latest keyboard uses one). Do we get it out now and wait for people to load them up and let us know of any issues or do we wait to merge? Let me know and I'll update the WIP title... |
If you can get anyone to see if it loads and runs, with CIRCUITPY working, that would be great. The only failure points I see would be the flash definition, and the pin assignments. The latter can be triple-checked, but the former really needs a test with a real board. |
Thanks Dan. That's my impression too (pins can be triple-checked but testing with flash can only be done on real hardware). I messaged MengDu to see if they have someone who could load it on their side. I'll want to test it myself as this is the same format as the original Xiao and the QT PY(s) and these are all boards that can be used with my basic macropad/encoder. Having the same pin definition helps in keeping the python code to be the same across all boards... |
Brief update on this: Seeed is still waiting on stock before one can be shipped to me for testing. |
I received my board yesterday and it runs this PR fine. Interestingly, the pi pico build also works fine. |
Perhaps you should include the neopixel library? |
@prplz Does it have a neopixel on board? (Guess so: GPIO12) That's something we can add easily. However, it is normal for including it in the frozen libraries? |
I'm unsure, I see some with onboard neopixel that include it, but also some that don't. |
Just checked to be sure, and the flash command |
I don't suggest freezing in libraries unless you need to save RAM later. The RP2040 has plenty, so I'd leave the neopixel library out. |
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.
Thank you! This will be in 7.2.0
Been in contact with MengDu from Seeed on discord.
Preparing new board for their new Seeed Xiao RP2040.
Pending review from Seeed and their PID.
EXTERNAL_FLASH_DEVICES to be confirmed. Seems small (Seeed to confirm)
and not sure if this config is available (build will let us know).This PR will kick-off a GHA job for Seeed to test the UF2 on actual hardware.
Link to Design files: https://www.seeedstudio.com/XIAO-RP2040-v1-0-p-5026.html
Wiki: https://wiki.seeedstudio.com/XIAO-RP2040-with-CircuitPython/