-
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] Add utility to flash to STM32 data EEPROM area #333
Comments
A related feature would be the capability to erase the EEPROM space, the bulk erase presently only clears the main FLASH. |
Had a similar requirement for an STM32L051 device. While searching for methods to do the same, came across the following.. Based on the approach mentioned in that page, made some modifications in order to use the existing flash write functions to program the EEPROM. What I did was,
I was able to successfully write to the EEPROM of the following STM32L0 devices The changes are available in the fork I created. If someone can review the same to verify if this is the right approach to the problem, it will be helpful. Possible improvements are
|
@manuvelayudhan your fork works for me to allow for eeprom writing, would be nice to see it pulled into mainline. |
Not sure if the current implementation is the best possible / correct one.. Any suggestions to improve it? Or should I just create a pull request from the current state? |
@manuvelayudhan ... I haven't looked too deeply but it seems a fairly minor tweak for useful functionality, all I'd suggest is merging in master and making sure nothing breaks in the latest (didn't see anything obvious). |
@dflogeras @manuvelayudhan @niallp: I believe this feature is still missing. What is the current state of this for all of you? |
I agree this is unimplemented, but I have no opinion on how to proceed. In recent times, when I've needed said function, I've had access to a windows computer and just used ST's utility to do so. |
I see, but it may be useful for others. This makes me feel like we should leave this open, but of course can keep you out of the topic for the ongoing conversation. |
On 2020-03-20 9:02 a.m., Nightwalker-87 wrote:
I see, but it may be useful for others. This makes me feel like we
should leave this open, but of course can keep you out of the topic
for the ongoing conversation.
I've used the patch by Manu when I've needed it though haven't touched
it for a while. It would be nice to see the functionality in the mainline.
... Niall
|
This should better go into the code. I'm not so happy if such workarounds remain present for too long. As it reads, this could also be an ordinary feature. |
@Ant-ON: Is there still a reasonable way of implementing this after the recent contributions to the |
@Nightwalker-87 Doesn't look like a good implementation manuvelayudhan@fc1b5fb |
Hm, ok. Thanks for the feedback. Maybe someone else has a better idea then. |
Closing this issue due to inactivity and in relation to the given feedback above. |
It would be great to have a command line utility to flash a binary file directly to the data EEPROM in STM32 devices (ie address starting 0x8080000 on the STM32Lxx devices). I use this to store things like a device serial number, which is separate and distinct from the program EEPROM version. Currently I write a small program to store what I need in the data EEPROM, then replace it with the real firmware, but it would be good to eliminate this step and just use stlink to do it.
The text was updated successfully, but these errors were encountered: