2025-02-05 07:00 AM
Hi,
We are trying to write some key values directly into a particular address of NVM from STM32Cubeprogrammer, but rest of the sector are also getting erased. Is there any way to prevent it? Tested with Cubeprogrammer CLI also, but facing the same issue.
2025-02-05 07:08 AM
By "NVM", do you mean Flash?
If so, that is the expected behaviour - you can only write to erased Flash.
2025-02-05 08:07 AM
Yes, I mean flash.
Is there any other way to do it? So that other flash contents remain as it is. Only a particular selected area gets erased and written.
2025-02-05 08:14 AM
No.
As noted, that is the nature of Flash.
You'd have to do it in 3 steps:
If you explain what you're actually trying to achieve, people may be able to suggest other ways to achieve that goal...
(you haven't said what chip you're using)
2025-02-05 08:31 AM
Recently ST released M95 EEPROMs, very suitable for this purpose. Please consider.