Page 1 of 1

STM32F4 EFL driver fixes

Posted: Sat Dec 10, 2022 2:48 am
by tzarc
My last patch was due to being unaware of 128kB and 384kB variants of STM32F401.

Attached patch should rectify matters -- tested against stable-21.11.x branch.

Re: STM32F4 EFL driver fixes

Posted: Sun Dec 11, 2022 4:00 pm
by Giovanni
Hi,

Committed.

Giovanni

Re: STM32F4 EFL driver fixes

Posted: Sat Mar 11, 2023 1:39 pm
by tzarc
It seems I forgot to post a follow-up fix:

in os/hal/ports/STM32/STM32F4xx/hal_efl_lld.h

Code: Select all

#define STM32_FLASH1_SIZE                   128U
#define STM32_FLASH2_SIZE                   512U
#define STM32_FLASH3_SIZE                   384U
#define STM32_FLASH4_SIZE                   512U

should be:

Code: Select all

#define STM32_FLASH1_SIZE                   128U
#define STM32_FLASH2_SIZE                   256U
#define STM32_FLASH3_SIZE                   384U
#define STM32_FLASH4_SIZE                   512U


FLASH2 size should be 256, not 512.

Re: STM32F4 EFL driver fixes

Posted: Tue Apr 11, 2023 9:23 am
by Giovanni
Hi,

Committed, thanks.

Giovanni