MPLAB® Harmony SST25 Flash Driver Block Write Function Doubles the Address and Data

The SST25 flash driver DRV_SST25_BlockWrite() function may write twice as much data than you expect (e.g., write 8 bytes to address 0x200 instead of 4 bytes to address 0x100).

The write block size is defined as 2 bytes by the SST25 driver. This is because the driver makes use of the AAI feature through which 2 bytes can be programmed at a time instead of one byte. The read/write/erase block's address range and size in bytes of each block are stored as part of the geometry table within the driver.

You can use the DRV_SST25_GeomteryGet () function to fetch this information and determine the block size in bytes of each region and the also the region's address range.

© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.