cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to write 32 bytes in flash without affecting the other memory elements?

Mkuma.7
Associate III

Is there any way to erase 32bytes in flash?

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief II
17 REPLIES 17
KnarfB
Principal III

What chip exactly?

MM..1
Chief II

Based on flash type and ECC support you can once write into one empty element . Size may differ and is based on bits ...

STM32WB55VGY6TR

Mkuma.7
Associate III

Is there any way to erase 32bytes in flash?

MM..1
Chief II

no

Mkuma.7
Associate III

ok thank you

Mkuma.7
Associate III

Is there any way where we can write a bin file without affecting other memory locations?

Yes. Given that the space for the binary is already erased.

Is there any way to write 32 bytes in flash without affecting the other memory elements? Yes.

Is there any way to erase 32bytes in flash? No.

WojtekP1
Associate III

No you can not do it. You can erase sector. This is how every flash memory works.

With internal flash you can only write each 8 bytes once because there are error correcting code.

With external flash you may write many times the same place. Write basically turns ones to zeros, not otherwise (AND operation). This is very useful feature often.