A Graphics application program typically consist of executable code stored in flash, and constant data that is also stored in flash memory.
In a graphics application, constant data typically store Font data, Images and Icons.
Font data, images and icons, may be larger than executable code.
Are you really sure that Executable code without font data, images and icons, will be more than 1 Megabyte?
With careful structuring of the image file, using a tailored linker file,
it may be possible to move all constant data containing font data, images and icons to DDRAM storage,
while the prgram is running.
It may be easier to move data, creating a copy of font data, images and icons,
and access those by pointer, rather than trying to move executable code to a another location.
PIC32MZ2064DAG169 have 2 Flash panels, each 1 Megabyte, 640 kByte of Static RAM in the PIC32 chip,
and 32 MByte Dynamic RAM.
The dynamic RAM is a separate DDR2 SDRAM chip inside the same package.
Boot Flash Memory (BFM) are parts of the same 2 flash panels as Program Flash Memory(PFM),
so if you cannot store persistent updates in the other Flash panel without stalling, then messing with BFM will not help.
post edited by Mysil - 2019/04/18 16:16:06