Skip to content

atmega: Add spi flash example - #1084

Merged
Grazfather merged 1 commit into
mainfrom
atmega_flash
Oct 10, 2026
Merged

Grazfather merged 1 commit into
mainfrom
atmega_flash

Conversation

@Grazfather

@Grazfather Grazfather commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Example is copied from wch/ch32v, but without uart logging support, timeouts, and std formatting.

@Grazfather
Grazfather force-pushed the atmega_flash branch 2 times, most recently from 019ab16 to 3b0cc13 Compare October 10, 2026 16:14
@Grazfather
Grazfather requested a balanced review from Copilot October 10, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Destructive operations can run against an unverified device, and erase polling may terminate before a valid erase completes.

1 open finding
What changed in this PR

Adds a W25Q128 SPI flash validation example for ATmega-based Arduino Pro Mini boards.

Changes:

  • Adds JEDEC, status, erase, write, read, and verification operations.
  • Provides UART diagnostics and hexadecimal formatting.
  • Registers 3.3 V and 5 V Pro Mini build targets.
File Description
examples/​microchip/​atmega/​src/​spi_flash_w25q.zig Implements the SPI flash example.
examples/​microchip/​atmega/​build.zig Registers new example targets.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread examples/microchip/atmega/src/spi_flash_w25q.zig Outdated
@Grazfather
Grazfather merged commit 954c888 into main Oct 10, 2026
37 checks passed
@Grazfather
Grazfather deleted the atmega_flash branch October 10, 2026 16:24
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.

3 participants