cancel
Showing results for 
Search instead for 
Did you mean: 

internal flash

ham10za
Associate II
Posted on February 19, 2018 at 09:57

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.
29 REPLIES 29
Posted on February 19, 2018 at 12:05

See:

https://community.st.com/0D50X00009XkWg8SAF

OK, so I should have spelled it out to you at that point.

Posted on February 19, 2018 at 12:07

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.

Posted on February 19, 2018 at 12:08

ST also have some application notes on emulating 'EEPROM' in Flash ...

Posted on February 19, 2018 at 12:11

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

Posted on February 19, 2018 at 13:13

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.

Posted on February 19, 2018 at 13:14

 ,

 ,

Alan Chambers wrote:

Perhaps you should explain what exactly are you trying to achieve.

Absolutely!

http://www.catb.org/~esr/faqs/smart-questions.html ♯ goal

 ,
Posted on February 19, 2018 at 13:33

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

Posted on February 19, 2018 at 13:37

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?

Posted on February 19, 2018 at 13:43

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.

Posted on February 19, 2018 at 13:43

i want to type

string of characters

in a specefic adress !