configs: am65x_evm: Define the maximum file size for DFU
authorAswath Govindraju <a-govindraju@ti.com>
Tue, 24 Nov 2020 10:29:34 +0000 (15:59 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 12 Jan 2021 04:51:41 +0000 (10:21 +0530)
commitba904727690532b21b4be886831cb259a34f27ca
tree18145d854752010599f6705dcf48c4e279b025c2
parent62be2367f5f8f2e83cedbe2189263b73d5f57834
configs: am65x_evm: Define the maximum file size for DFU

In include/dfu.h, if CONFIG_SYS_DFU_MAX_FILE_SIZE is not defined then it is
defined as CONFIG_SYS_DFU_DATA_BUF_SIZE. This is 128 KiB for a53 core and
20 KiB for r5 core. If a larger file is transferred using dfu then it
fails.

CONFIG_SYS_DFU_DATA_BUF_SIZE can not be increased as there is not enough
heap memory to be allocated for the buffer in case of R5 spl.

Fix this by defining CONFIG_SYS_DFU_MAX_FILE_SIZE as the default
CONFIG_SYS_DFU_DATA_BUF_SIZE value.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
include/configs/am65x_evm.h