EFL Flash Sectors on STM32G0 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
aport
Posts: 36
Joined: Sat May 10, 2014 7:35 pm
Has thanked: 2 times
Been thanked: 4 times

EFL Flash Sectors on STM32G0

Post by aport »

Hi there,

I've been trying to use the EFL driver on an stm32g071 and I was running into some problems. I think the number of pages is incorrectly assigned which leads to sectors_size being 512 bytes instead of 2k.

As the datasheet specifies 32 or 64 pages of 2k, I changed the lines:

#define STM32_FLASH_SECTORS_TOTAL_64K 128
#define STM32_FLASH_SECTORS_TOTAL_128K 256

to

#define STM32_FLASH_SECTORS_TOTAL_64K 32
#define STM32_FLASH_SECTORS_TOTAL_128K 64

And everything started working as I expected.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: EFL Flash Sectors on STM32G0

Post by Giovanni »

Hi,

Moving this topic to bug reports.

Giovanni
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: EFL Flash Sectors on STM32G0

Post by FXCoder »

Fixed in trunk as bug #1085
Back ported to 20.3.x
aport
Posts: 36
Joined: Sat May 10, 2014 7:35 pm
Has thanked: 2 times
Been thanked: 4 times

Re: EFL Flash Sectors on STM32G0

Post by aport »

Awesome, thank you so much!
Post Reply