1.1.5.2.1 How the Library Works

The SST39VF040 driver library is a single-client, single-instance based driver interface.

Abstraction Model

The SST39VF040 driver interface provides read, write and erase functions that abstract out the Hardened External Memory Controller (HEMC) and the SST39VF040 erase and write specific sequences. It writes on the memory data bus the commands sequence that are needed for erase and write operations.

drv_sst39_abstraction_model

Working flow

  • The SST39 Driver performs initialization and puts the driver to ready state. This status of the driver can be checked using DRV_SST39_Status()

  • DRV_SST39_Open() is called to get a valid handle on the driver instance.

  • The SST39 driver library performs a chip erase using DRV_SST39_ChipErase().

  • The SST39 driver library performs a sector erase using DRV_SST39_SectorErase().

  • The SST39 driver library performs a page write using DRV_SST39_PageWrite().