Skip to content

STM32F429IIT issue #30

@rrouterr

Description

@rrouterr

I have a problem with this library on the STM32F429IIT processor. When trying to erase the last, 23rd sector, nothing happens (the erasure does not occur). So far, I've discovered that the problem lies in calculating the last sector. When I replace:

#else
    flashErase.TypeErase = FLASH_TYPEERASE_SECTORS;
    flashErase.Sector = EE_PAGE_SECTOR + FLASH_F4_OFFSET;
    flashErase.NbSectors = 1;
#endif
#ifdef EE_BANK_SELECT
    flashErase.Banks = EE_BANK_SELECT;

with

    #else
    flashErase.TypeErase = FLASH_TYPEERASE_SECTORS;
    flashErase.Sector = 23;  // EE_PAGE_SECTOR + FLASH_F4_OFFSET;
    flashErase.NbSectors = 1;
#endif
#ifdef EE_BANK_SELECT
    // flashErase.Banks = EE_BANK_SELECT;

The last, 23rd sector is erased, and the write operation can proceed correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions