2018-02-19 12:57 AM
hello! i am working with stm32 cortex-M0? IN FACT i want to know how to modify bytes from the internal flash without erasing the whole page , in addition i don't have RAM space to copy code there and modify bytes there !! is there anyone who can help ?
Note: this post was migrated and contained many threaded conversations, some content may be missing.2018-02-19 04:05 AM
See:
https://community.st.com/0D50X00009XkWg8SAF
OK, so I should have spelled it out to you at that point.
2018-02-19 04:07 AM
Because thing are a bit more difficult.
With a single bank device, you cannot execute code from Flash while you erase or program, no matter which sector.
And check the number of guaranteed erase/write cycles for the Flash of your (still undisclosed) MCU.
Depending on your application, it might hold up much less than you think.
2018-02-19 04:08 AM
ST also have some application notes on emulating 'EEPROM' in Flash ...
2018-02-19 04:11 AM
where are the list of possible option you are talking about sir ? i told you i should work with sm32f030 cortex-M0 it's not a choice so am searching for techniques to do this task , and am not doing it wrong the problem is that i don't have enough space in RAM to copy data there ! thank you for your time
2018-02-19 05:13 AM
hamzaoui hamza wrote:
where are the list of possible option you are talking about sir ?
Go on - have you actually read any of the replies in this thread?
See:
https://community.st.com/0D70X000006SjHWSA0
i told you i should work with sm32f030
No, you did not mention any part number, or even family neither here nor in the original Keil thread.
2018-02-19 05:14 AM
,
,
Alan Chambers wrote:
Perhaps you should explain what exactly are you trying to achieve.
Absolutely!
,2018-02-19 05:33 AM
thanks Alain for asking, i want just to store some bytes on one page on the internal flash without dammaging other bytes on the same page
2018-02-19 05:37 AM
That's a description of the step - not the goal.
What is the data that you are trying to store? Why does it need to be stored?
2018-02-19 05:43 AM
I am sorry but you have to save the entire page into RAM. I don't see any other solution. And for you chip you need 1K buffer.
2018-02-19 05:43 AM
i want to type
string of characters
in a specefic adress !