2025-12-02 2:54 PM
In the H562 CubeMx setting the flash option bytes only allows flash number of sectors up to 7.
If you look at the FLASH_EDATA_EraseProgram example in the H5 firmware bundle you will see it sets the number of sectors to 8 before calling FLASH_OB_EDATAConfig function. this function decrements by one before ORing the sector enable bits.
Because CubeMx only allows up to seven when it generates code you do not get the full EDATA range.
And if you set 1 in cubemx I guess you do not get any???
2025-12-02 2:55 PM