hal_mfs compatible with page size > 8?

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

hal_mfs compatible with page size > 8?

Post by faisal »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: hal_mfs compatible with page size > 8?

Post by Giovanni »

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
Post Reply