I am new to ChibiOS and was trying to configure an STM32F767ZI (dual bank) to use MFS (Managed Flash Storage). I came across this descriptor for the driver `testhal/STM32/multi/EFL-MFS/main.c` about which I am a bit confused.
Code: Select all
const MFSConfig mfscfg1 = {
.flashp = (BaseFlash *)&EFLD1,
.erased = 0xFFFFFFFFU,
.bank_size = 4096U,
.bank0_start = 128U,
.bank0_sectors = 2U,
.bank1_start = 130U,
.bank1_sectors = 2U
};
What does .bank_size, bank0_start, .bank0_sectors, .bank1_start and .bank1_sectors mean and how do we arrive at the values ? The parent structure does not provide much information about how to arrive at the values hence the forum post.
Any help is appreciated