can't flash image big than 508K bytes

2 posts / 0 new
Last post
fbfans
Offline
Last seen:3 weeks 3 days ago
Joined:2015-10-22 04:01
can't flash image big than 508K bytes

Hi:
I can't burn bin image big than 0x7F000 to qspi flash, the limitation was defined at cli_programmer/cli/src/cmd_handlers.c:
#define MAX_IMAGE_SIZE 0x7F000

So, how to solve this?

Thanks for you reply.

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi fbfans,

Hi fbfans,

Never needed to program a file larger that the limitation, but i suppose that by changing the MAX_IMAGE_SIZE you will be able to use either JTAG or UART in order to program your device over the existing limitation. The problem is that, if you surpass the 0x7F000 limitation, a part of the image will lay over the place where the partition table should be located (that is why the limitation is there) if you would like to program that large file, you will have to move the partition table location from the 0x7F000 address by the PARTITION_TABLE_ADDR definition.

Thanks MT_dialog