STM32F4 EFL driver fixes Topic is solved

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

STM32F4 EFL driver fixes

Post 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.
Attachments
chibios-f4-efl.zip
(1.19 KiB) Downloaded 352 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4 EFL driver fixes

Post by Giovanni »

Hi,

Committed.

Giovanni
tzarc
Posts: 14
Joined: Thu Feb 20, 2020 7:08 am
Has thanked: 2 times
Been thanked: 6 times

Re: STM32F4 EFL driver fixes

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F4 EFL driver fixes

Post by Giovanni »

Hi,

Committed, thanks.

Giovanni
Post Reply