STM32F4 EFL sector bug, support for F405 (maybe more?)
Posted: Sun May 24, 2020 9:47 pm
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.
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.