Repository navigation
SPI NOR: -uu clears QE as well; CI builds on pushes to main only - #56
Conversation
-u keeps QE (quad enable), which protects nothing. -uu clears the protection and then QE: bit 1 of status register 2, with WRSR2 or the two-byte WRSR for the chips that do not know it, bit 6 of status register 1 on Macronix chips. A QE that stays set is told. Command line only. Version 1.21.0. [skip ci]
A push to the branch of a pull request started the Build workflow twice, on push and on pull_request, and every run takes GitHub's minutes. Pull requests and workflow_dispatch still build any branch, and main still publishes.
PR Summary by QodoAdd SPI NOR -uu QE clearing and limit CI push builds to main
AI Description
Diagram
High-Level Assessment
Files changed (13)
|
Code Review by Qodo
1. Protected older chips cannot clear QE
|
|
Qodo finding "Protected older chips cannot clear QE" is left for now: on a chip without WRSR2, a set CMP or SRP1 stops |
-ukeeps QE (quad enable), which protects nothing but turns WP# and HOLD# into data lines.-uuclears the protection as-udoes, and then QE.-uubefore QE.-uuuis an error. SPI NOR on the command line only: not in the web mode or the Android app. Not with SPI NAND or the EZP programmers.Tests:
norsimcovers the kinds of chip above,stubthe options.Hardware: CH341A + W25Q64 (
ef 40 17, SR00 02 60):-uureports that QE stays by both ways of writing it, so on this part it is fixed at the factory; registers and data unchanged. Clearing QE on a real chip is not checked yet, only in the simulator.CI:
build.ymlbuilds on pushes tomainonly, as a push to a branch with a pull request started it twice. Pull requests andworkflow_dispatchstill build any branch.