Hi Thomas,

Can overlapping regions in the layout file cause problems or lead to ambiguous results. If yes, then I think we should do the checks.

Aarya.

On Tue, Mar 29, 2022 at 2:48 PM Thomas Heijligen <src@posteo.de> wrote:


On 26 March 2022 05:44:56 WET, Aarya Chaumal <aarya.chaumal@gmail.com> wrote:
Hi Aarya,

>I performed (read, write, erase) on specific regions of the flash using the
>layout file. Do the regions in the layout file have to be exclusive or they
>can overlap?
A flashrom layout region is just a name with a start and end address. There are no checks for overlapping regions. The parsing of a layout file is done by layout_from_file() in layout.c

-- Thomas