Is there any way to write 32 bytes in flash without affecting the other memory elements?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-17 1:30 AM
Is there any way to erase 32bytes in flash?
Solved! Go to Solution.
- Labels:
-
Flash
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-07 6:43 AM
Depends on where that other memory is, and how it falls on the page/block boundaries of the flash device.
For settings, configuration, calibration or serial number type stuff you can leave a region unwritten. Write to it once, or journal entries across it, using your code to locate the last valid record.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-07 9:46 PM
Is there any way to write 32 bytes in flash without affecting the other memory elements? Yes.
Can you tell me the command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-07 9:50 PM
Yes. Given that the space for the binary is already erased.
If you tell me the command it will be helpful for me.
Can you please share the command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 12:02 AM
How to erase protected sectors? (When I tried to erase this warning was showed Protected sectors are not erased)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-14 3:47 AM
How to erase protected sectors? (When I tried to erase this warning was showed Protected sectors are not erased)
Can anyone here help me with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-14 5:46 AM
Sorry I don't know how to do this with external tool like cube programmer. Maybe just prepare a suitable hex file that contains the 32 bytes, and disable erase.
For embedded STM32 program - just call HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, Address, DATA_64) 4 times (8*4=32). Please see this example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-14 5:49 AM
Protected sectors are called protected because they cannot be erased easily.
First, remove write protection from these sectors. The protected sectors are defined in the "option bytes". See the CubeProgrammer user manual for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-14 7:48 AM
Try read appnote and use X-CUBE-EEPROM - EEPROM emulation expansion software for STM32Cube - STMicroelectronics

- « Previous
-
- 1
- 2
- Next »