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

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
aport
Posts: 36
Joined: Sat May 10, 2014 7:35 pm
Has thanked: 2 times
Been thanked: 4 times

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

Post 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.
Attachments
stm32f4_efl.zip
(1.21 KiB) Downloaded 423 times
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

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

Post by FXCoder »

Fixed in trunk and backported to 20.3.x
Updated so F4x5/F4x7 allowed.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

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

Post by Giovanni »

Fixed as bug #1102.

Giovanni
Post Reply