STM32F4 EFL driver fixes Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
tzarc
Posts: 12
Joined: Thu Feb 20, 2020 7:08 am
Has thanked: 2 times
Been thanked: 5 times

STM32F4 EFL driver fixes  Topic is solved

Postby tzarc » Sat Dec 10, 2022 2:48 am

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.
Attachments
chibios-f4-efl.zip
(1.19 KiB) Downloaded 92 times

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4 EFL driver fixes

Postby Giovanni » Sun Dec 11, 2022 4:00 pm

Hi,

Committed.

Giovanni

tzarc
Posts: 12
Joined: Thu Feb 20, 2020 7:08 am
Has thanked: 2 times
Been thanked: 5 times

Re: STM32F4 EFL driver fixes

Postby tzarc » Sat Mar 11, 2023 1:39 pm

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.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32F4 EFL driver fixes

Postby Giovanni » Tue Apr 11, 2023 9:23 am

Hi,

Committed, thanks.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 10 guests