EFL sectors are 16134 bytes instead of 16K on some STM32F4xx Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Dron_Gus
Posts: 8
Joined: Wed Apr 22, 2020 1:03 am
Has thanked: 1 time
Been thanked: 3 times

EFL sectors are 16134 bytes instead of 16K on some STM32F4xx  Topic is solved

Postby Dron_Gus » Wed Apr 22, 2020 1:11 am

Hi
Looks like ad typo inos/hal/ports/STM32/STM32F4xx/hal_efl_lld.c:
static const flash_sector_descriptor_t efl_lld_sect1[STM32_FLASH1_SECTORS_TOTAL] = {
{ 0, 16134}, /* Sector 0. */
{ 1 * 16134, 16134}, /* Sector 1. */
...

While 16K = 16384.

Don't know how to attach patch.

User avatar
FXCoder
Posts: 384
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 180 times
Been thanked: 130 times

Re: EFL sectors are 16134 bytes instead of 16K on some STM32F4xx

Postby FXCoder » Wed Apr 22, 2020 3:27 am

Hi DRon.
Thanks for picking that up.
Will fix in trunk ASAP.
BTW you will note only limited F4xx types are supported by that EFL ATM.
Just didn't have time to trawl through them all as I just needed F413.

If you want to do it go ahead, follow the pattern and then just attach the patch as a ZIP
--
Bob
Last edited by FXCoder on Wed Apr 22, 2020 3:56 am, edited 2 times in total.

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

Re: EFL sectors are 16134 bytes instead of 16K on some STM32F4xx

Postby russian » Wed Apr 22, 2020 3:51 am

FXCoder wrote:Hi Don.

it's "DRon", it's a nickname for Andrey like Bob to Robert. Ask me how I know.
http://rusefi.com/ - electronic fuel injection

User avatar
FXCoder
Posts: 384
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 180 times
Been thanked: 130 times

Re: EFL sectors are 16134 bytes instead of 16K on some STM32F4xx

Postby FXCoder » Wed Apr 22, 2020 3:55 am

Fixed in trunk as bug #1084.
Back ported to 20.3.x.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 11 guests