Patch attached.
I didn't test with MFS, just the functions:
Code: Select all
flashStartEraseSector
flashWaitErase
flashProgram
flashRead
I'll try MFS as soon as I set up a test case.
Code: Select all
flashStartEraseSector
flashWaitErase
flashProgram
flashRead
This programming manual describes how to program the Flash memory of STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx microcontrollers.
Code: Select all
const MFSConfig mfscfg1 = {
.flashp = (BaseFlash *)&EFLD1,
.erased = 0xFFFFFFFFU,
.bank_size = 2048U,
.bank0_start = 25U,
.bank0_sectors = 2U,
.bank1_start = 27U,
.bank1_sectors = 2U
};
value because I did not find it in the reference manual.STM32_FLASH_WAIT_TIME_MS
Return to “Development and Feedback”
Users browsing this forum: No registered users and 60 guests