To access the internal flash of STM32F042K6.

This library provides a Partition class used to segment the STM32F042K6 internal flash so that the caller can read/write/erase the partition.

Examples

    FlashPartition config(0x7c00, 0x400);

    uint8_t buf[16];
    config.Read(address, buf, sizeof(buf));

    config.EraseAll();
    config.Write(address, buf, sizeof(buf));

Download repository: zip gz

Files at revision 1:7a490a05943a

Name Size Actions
[up]
f042k6_flash.cpp 1611 Revisions Annotate
f042k6_flash.h 2747 Revisions Annotate