Factory image size

Technical questions regarding the XTC tools and programming with XMOS.
genap
Experienced Member
Posts: 99
Joined: Sat Aug 31, 2013 11:23 pm

Factory image size

Post by genap »

I am using XS1-U8A-64 processor (64kB memory).
Boot partition size is set to 128kB (0x20000).
The boot flash layout is as follows:
- factory image - 64kB
- upgrade image - 64kB
- data partition starting at 0x20000 (128kB)

But according to the diagram in the User Guide there is a Flash loader at the beginning of a boot flash.

The question is:
- does Flash loader shares the first 64kB sector with the factory image ?
- does it mean that factory image size must be less than sector size by the Flash loader size ?

Thank you,
Gennady


colin
Experienced Member
Posts: 74
Joined: Mon Dec 16, 2013 12:14 pm

Post by colin »

Hi Gennady.

Yes the second stage bootloader will share the first sector with the factory image and therefore the factory image must be less than the sector size by the size of the second stage bootloader.

Colin.
genap
Experienced Member
Posts: 99
Joined: Sat Aug 31, 2013 11:23 pm

Post by genap »

Thank you Colin,

so what is the size of a second stage bootloader ?

Gennady
colin
Experienced Member
Posts: 74
Joined: Mon Dec 16, 2013 12:14 pm

Post by colin »

For tools versions upto and including 13.1 the following applies:

In unsecure mode the second stage bootloader occupies 0x1000 bytes.
In secure mode this is increased to 0x4000 bytes.

With tools 13.1 it is possible to increase these sizes if larger networks are defined and the second stage bootloader exceeds the allocated space. It is not possible to decrease these sizes.

Colin.