Page 1 of 1

STM32F4 EFL sector bug, support for F405 (maybe more?)

Posted: Sun May 24, 2020 9:47 pm
by aport
The EFL driver for STM32F4 has a repeated typo where 16k is represented as 16834 instead of 16384. I made this mistake myself in my calculator when trying to debug this issue... very subtle!

I've attached a patch for it.

Also I've added support for the F405... it probably works for other chips too but I don't have them nor the time to test them. On some of the older F4 chips a few FLASH_SR bits are either still reserved or named differently in the header.


As a small aside, submitting zipped patch files on a message board is a painful way to contribute. Reviewing the patches is a PITA and there's no visibility to changes between patch versions.

Please consider accepting pull requests on your official github mirror. I understand it's read-only but you can still use it for patch reviews and even download the patch straight from the pull request page.

Re: STM32F4 EFL sector bug, support for F405 (maybe more?)

Posted: Thu May 28, 2020 5:01 am
by FXCoder
Fixed in trunk and backported to 20.3.x
Updated so F4x5/F4x7 allowed.

Re: STM32F4 EFL sector bug, support for F405 (maybe more?)

Posted: Sun May 31, 2020 8:24 am
by Giovanni
Fixed as bug #1102.

Giovanni