Add support for Puya PY25Q128HA flash chip #11166
Merged
+4
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Summary
Adds detection and support for the Puya PY25Q128HA flash chip, a W25Q128-compatible 128Mbit (16MB) SPI NOR flash commonly found on flight controllers.
Changes
Driver Support (flash_m25p16.c:102-104)
m25p16FlashConfig[]array for automatic chip detectionDocumentation (Blackbox.md:123)
Technical Details
Testing
The PY25Q128HA uses an identical command set to the W25Q128 and other supported flash chips. The existing M25P16-compatible driver already supports all necessary operations:
Compatibility
This is a backwards-compatible change:
Files Changed
src/main/drivers/flash_m25p16.c- Added JEDEC ID entrydocs/Blackbox.md- Updated documentationPR Type
Enhancement
Description
Adds JEDEC ID detection for Puya PY25Q128HA flash chip
Enables automatic chip recognition during initialization
Updates documentation with new supported flash chip
Diagram Walkthrough
File Walkthrough
flash_m25p16.c
Add Puya PY25Q128HA JEDEC ID to flash configsrc/main/drivers/flash_m25p16.c
m25p16FlashConfig[]array
Blackbox.md
Document Puya PY25Q128HA supportdocs/Blackbox.md