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.
STM32F4 EFL sector bug, support for F405 (maybe more?) Topic is solved
STM32F4 EFL sector bug, support for F405 (maybe more?)
- Attachments
-
- stm32f4_efl.zip
- (1.21 KiB) Downloaded 423 times
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times