Skip to content
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

[FL-3446] Dynamic lock bytes and CMD_WRITE adjustments #3101

Conversation

RebornedBrain
Copy link
Contributor

What's new

  • Added dynamic lock support to write commands
  • Compatibility counter page now writes properly
  • CMD_WRITE now works with all I2c ntags

Verification

//I2C_2K:
hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac 30E0 //read dynamic lock

hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac A2E001400000 //lock pages 16-47(sector 0) and pages 464-479 (sector 1 pages 208-223)

hf 14a raw -sc A210DEADBEAF //try write to sector 0, page 16 -> NAK
hf 14a raw -sc A22FDEADBEAF //try write to sector 0, page 47 -> NAK
hf 14a raw -sc A230DEADBEAF //try write to sector 0, page 48 -> ok

hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac A2CFDEADBEAF //try write to sector 1, page 207 -> ok

hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac A2D0DEADBEAF //try write to sector 1, page 208 -> NAK

hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac A2DFDEADBEAF //try write to sector 1, page 223 -> NAK

hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac A2E000004100 //set BL_400-463 and BL_16-79 -> ok

hf 14a raw -sck C2FF //Select
hf 14a raw -ack 01000000 //sector 1
hf 14a raw -ac A2E003700000 //try to set lock page 48-79 and 400-463 and pages 464-479 -> only 464-479 left

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

RebornedBrain and others added 30 commits August 31, 2023 14:46
Both cmds now work through one function
NtagI2C support added
Conflicts:
	firmware/targets/f7/api_symbols.csv
@gornekich gornekich merged commit f466cfa into flipperdevices:gornek/nfc_refactoring_v1 Sep 26, 2023
@RebornedBrain RebornedBrain deleted the berezhnoy/mfu_lb branch August 19, 2024 10:47
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