Page 1 of 1

Determine the Minimum Size of QFlash Enough for DFU

Posted: Fri Sep 01, 2017 4:17 pm
by dkybchoi
HI ,
If only one factory image and one upgrade image are required and no data partition, Is the minimum size of QFlash must be greater than the boot partition size calculated by below equation?

boot partition size = loader size + maximum size of factory image + maximum size of upgrade images + padding to sector boundaries

Where
maximum size of factory image = number of xCORE tiles * xCORE SRAM size
maximum size of upgrade images = (number of xCORE tiles * xCORE SRAM size) * number of images to be held in flash concurrently

We are using XU224-1024-XXX which xCORE SRAM size is 256KB . It means "maximum size of factory image" and "maximum size of upgrade images" are both 4 * 256KB = 1MB

Actually, the factory image size will be always less than 1MB , so is it possible to adjust the sector boundary of factory Image to be less than 1MB and so we can use a smaller size QFlash ?

Thanks


Image

Re: Determine the Minimum Size of QFlash Enough for DFU

Posted: Fri Sep 01, 2017 9:48 pm
by mbruno
Hi dkybchoi,

I believe that when xflash creates the flash image for you, it assigns the image boundaries addresses dynamically based on the actual size of your binaries. It should not allocate each image a full 1 MiB if the images are smaller than that. The sector boundaries, however, are a function of the flash chip itself - 4 KiB is a typical sector size. Therefore expect the starting address of each image (factory and upgrade) to be at a multiple of 4 KiB or whatever the sector size of your flash is.

That said, I am unable to find any quad SPI flash chips that are smaller than 4 MiB. Or are you planning on using a traditional SPI flash (not quad SPI)?

Mike

Re: Determine the Minimum Size of QFlash Enough for DFU

Posted: Mon Sep 04, 2017 3:53 pm
by dkybchoi
Hi Mike,

Thanks for your answer.