[feature] Read protect bits
AntonLytkinIwdel opened this issue · 6 comments
AntonLytkinIwdel commented
Do you plan to make this functional?
texane commented
no plan yet, but any contribution welcome !
2015-11-08 7:20 GMT+01:00 Anton Lytkin notifications@github.com:
Do you plan to make this functional?
—
Reply to this email directly or view it on GitHub
#346.
aric1987 commented
https://github.com/aric1987/stlink/
add read proctection
test ok! for stm32f103c8t6
@AntonLytkinIwdel
Nightwalker-87 commented
Nightwalker-87 commented
@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 commented
@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;
}