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 01:20 AM
When cross-posting (ie, posting the same question to multiple forums), always include links between the threads.
Otherwise you waste people's time as they give an answer in one thread - not knowing that it has already been given in another.
See:
on the Keil forum.2018-02-19 02:43 AM
you told me to ask on ST forum !!
2018-02-19 02:56 AM
Looking at the Keil forum link, it seems rather like re-direction than cross-posting ...
is there anyone who can help ?
First, you.
The specific part is nowhere mentioned, you could be a tad more specific.
IN FACT i want to know how to modify bytes from the internal flash without erasing the whole page ...
That's usually the way it is, microcontroller must be cheap.
The datasheet/ref.manual tells you what your part has implemented.
If you can't live with it, select a (more expensive) dual-bank variant, or add external NVRAM (Flash, EEPROM, MRAM, ...).
2018-02-19 03:05 AM
AvaTar wrote:
it seems rather like re-direction than cross-posting ...
Yes, it is.
But the point remains:
2018-02-19 03:07 AM
AvaTar wrote:
If you can't live with it, select a (more expensive) dual-bank variant, or add external NVRAM (Flash, EEPROM, MRAM, ...).
Or look for a (possibly more expensive) microcontroller with internal NV memory (EEPROM, FRAM, ... )
2018-02-19 03:18 AM
The datasheet/ref.manual tells that i can only erase page , i tried to copy data to stack buffer then modify them there but it doesn't work so that's why am asking is there an other solution !!
2018-02-19 03:34 AM
Or that, yes.
But with the few information we got up to now, all this amounts to crystal-ball-gazing.
Yet again ...
2018-02-19 03:49 AM
Perhaps you should explain what exactly are you trying to achieve. What are you using the flash to store? How big is the data structure? How often does it change?
2018-02-19 04:03 AM
hamzaoui hamza wrote:
The datasheet/ref.manual tells that i can only erase page
So where's the doubt, then? That seems pretty clear!
i tried to copy data to stack buffer then modify them there but it doesn't work
So you must have been doing it wrong, then.
so that's why am asking is there an other solution !!
And you have been given a list of possible options