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
STM32F4 EFL driver fixes Topic is solved
- Attachments
-
- chibios-f4-efl.zip
- (1.19 KiB) Downloaded 92 times
- 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
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 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.
- 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:
Who is online
Users browsing this forum: No registered users and 10 guests