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.
STM32F4 EFL driver fixes Topic is solved
- 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
It seems I forgot to post a follow-up fix:
in os/hal/ports/STM32/STM32F4xx/hal_efl_lld.h
should be:
FLASH2 size should be 256, not 512.
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 512Ushould be:
Code: Select all
#define STM32_FLASH1_SIZE 128U
#define STM32_FLASH2_SIZE 256U
#define STM32_FLASH3_SIZE 384U
#define STM32_FLASH4_SIZE 512UFLASH2 size should be 256, not 512.
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times