Hi,
We use the F2812 with DSP/BIOS and program all code into the internal FLASH, no data is stored in the FLASH. Our project has grown so I need to update the tfc and cmd files for more FLASH space.
I see that most example code has the FLASH in sector pairs, AB, CD, EF, GH, IJ but spra958g uses all the sectors together, FLASH_ABCDEFGHIJ. In the .tcf file it's defined as one large memory block:
bios.MEM.create("FLASH_ABCDEFGHIJ");
bios.MEM.instance("FLASH_ABCDEFGHIJ").base = 0x3d8000;
bios.MEM.instance("FLASH_ABCDEFGHIJ").len = 0x1ff80;
bios.MEM.instance("FLASH_ABCDEFGHIJ").createHeap = 0;
bios.MEM.instance("FLASH_ABCDEFGHIJ").comment = "On-Chip Flash Memory";
bios.MEM.instance("FLASH_ABCDEFGHIJ").space = "code";
Other than not allowing erase of some sectors or reprogramming the FLASH from the running program are there any disadvantages of configuring the FLASH as one large sector? Is there any risk of code crossing a boundary of say sector B and C?
Thanks
Simon