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

[feature] Read protect bits #346

Closed
AntonLytkinIwdel opened this issue Nov 8, 2015 · 6 comments · Fixed by #1112
Closed

[feature] Read protect bits #346

AntonLytkinIwdel opened this issue Nov 8, 2015 · 6 comments · Fixed by #1112

Comments

@AntonLytkinIwdel
Copy link

Do you plan to make this functional?

@texane
Copy link
Collaborator

texane commented Nov 8, 2015

no plan yet, but any contribution welcome !

2015-11-08 7:20 GMT+01:00 Anton Lytkin [email protected]:

Do you plan to make this functional?


Reply to this email directly or view it on GitHub
#346.

@xor-gate xor-gate added this to the Unplanned (Contributions Welcome) milestone May 21, 2016
@xor-gate xor-gate modified the milestones: v1.3.0, Unplanned (Contributions Welcome) Dec 30, 2016
@xor-gate xor-gate modified the milestones: Unplanned (Contributions Welcome), v1.3.0 Jan 14, 2017
@aric1987
Copy link

aric1987 commented Jul 23, 2017

https://github.com/aric1987/stlink/
add read proctection
test ok! for stm32f103c8t6
@AntonLytkinIwdel

@ceremcem
Copy link
Contributor

@aric1987 Why don't you create a PR for this?

@Nightwalker-87 Nightwalker-87 modified the milestones: Unplanned (Contributions Welcome), Next Feb 19, 2020
@Nightwalker-87 Nightwalker-87 modified the milestones: General, v1.7.0, Feedback required Mar 14, 2020
@Nightwalker-87 Nightwalker-87 modified the milestones: Feedback required, v1.6.2 Mar 24, 2020
@Nightwalker-87 Nightwalker-87 changed the title Read protect bits [feature] Read protect bits Mar 24, 2020
@Nightwalker-87 Nightwalker-87 modified the milestones: v1.6.2, v1.6.3 Mar 10, 2021
@Nightwalker-87 Nightwalker-87 modified the milestones: v1.8.0, v1.7.1 Apr 25, 2021
@Nightwalker-87
Copy link
Member

@ceremcem: @aric1987 seem to be inactive by now.
I don't know yet, if his patch is still compatible with the current codebase. One needs to check.

@Nightwalker-87
Copy link
Member

@Ant-ON: As I believe to read from the code that these protect bits are also included in the option bytes, as the whole area is written at once. Is this correct?

@Ant-ON
Copy link
Collaborator

Ant-ON commented May 4, 2021

@Nightwalker-87 Yes, on F0/F1/F3:

  /* Retrieve current values */
  ret = stlink_read_debug32(sl, FLASH_OBR, &optiondata);
  if (ret) {
    return ret;
  }
  ret = stlink_read_debug32(sl, FLASH_WRPR, &protection);
  if (ret) {
    return ret;
  }

@stlink-org stlink-org locked as resolved and limited conversation to collaborators May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

7 participants