-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] Writing option bytes of STM32F091RCT6 #458
Comments
I'm not 100% sure, but writing outside the flash/ram region is currently not supported and untested. |
@vladiks: I believe this feature is still missing. Any update on this? |
@Nightwalker-87 I am sorry, but I can not give you any feedback, cause the project for which i needed this, is already outside my reach. |
@vladiks: Thanks for coming back to this. Never mind, it was an answer to expect though due to the long timespan. That's ok. Likely it wasn't very clever not to stick to it when it was relevant for you in earlier days. I'm sorry to see that, but just got to know about this recently during maintenance tasks. I'm one of the new main contributors of this project. Anyway I'll leave this open for now, until someone else is able to verify or I hopefully run across a commit that directly resolves this issue (but I think it is still missing). |
@grevaillot: Would it be possible to add that to the current commit? Since your rewrite this should only be a few lines or am I wrong here? I assume though you may not be able to test on real hardware... |
yeah, i've got some f091 from a project somewhere, but i think the flash option stuff is the same for all f0 and f1, Adding read is easy, adding write need a slight more complicated logic : apparently, write accesses are to be done 16bit wide, and option flash need to be erased first, so need to backed up and patched if we want to write only the first option reg. I'll have a look. |
@grevaillot |
I have hardware I can test this with if needed. Unfortunately I don't have time ATM to look into the code and potentially fix it. Would be happy to help test it if there is a branch/commit/patch that can be used to test with. I have an STM32F205RG of which I want to write the option bytes, readout protection (RDP) specifically. I have found that I can write the option bytes from the embedded software so it isn't something that is essential, but as said happy to help test this feature! |
On Wed, Sep 02, 2020 at 02:40:18AM -0700, Jeroen de Bruijn wrote:
Would be happy to help test it
if there is a branch/commit/patch
that can be used to test with.
"git fork" and reproduce the problem ...
|
In an effort to not create duplicate tickets, I too would like to be able to set and read option bytes. Specifically the RDP byte. Specifically STM32F4 parts. |
@ApiumJacob |
Please refer to the now linked PR for a proposed solution. |
Hello, I am trying to write option bytes of STM32F091RCT6 using Stlink/v2. Bytes start at address 0x1FFF F800 and occupie 1024bytes. I need to write just first four bytes, but writing 1024 would not be problem.
I thought, I could do this using command:
but the output is:
So I guess nothing is written which I could verify by reading the same content as before (I can read proper default values using read at this address).
St-flash version is 1.2.0. OS Linux raspberry 4.1.7+ armv6l
Basic question - is it even possible to write option bytes using this tool?
Thanks for help
The text was updated successfully, but these errors were encountered: