cancel
Showing results for 
Search instead for 
Did you mean: 

H5 Cubenmx does not allow setting EDATA number of sectors.

dvescovi
Associate III

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??? 

1 REPLY 1
dvescovi
Associate III

see attached