hal_mfs compatible with page size > 8?

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

hal_mfs compatible with page size > 8?

Postby faisal » Mon Dec 20, 2021 11:01 pm

Is hal_mfs compatible with page sizes > 8 bytes? Asking because I noticed H7 series has up to 32 byte page size.

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

Re: hal_mfs compatible with page size > 8?

Postby Giovanni » Tue Dec 21, 2021 6:05 am

Hi,

It should be fine, it ignores pages. The assumption is that you can rewrite pages, so no ECC flashes.

You can enforce an alignment using MFS_CFG_MEMORY_ALIGNMENT (it would be useful to use the underlying page_size implicitly) .

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 2 guests